FDISK Commands (Set and query file operations)


Change the current directory


Syntax


(Command)


:FDISK:CHDIr A
:FDISK:CHDIr "A$"


A = Directory number.
A$ = Directory name.


Details


Changes the current directory to directory number A (or to the directory specified by A$) on the current storage media.
Specify ".." for A$ to change to the parent directory.
Specify "/" for A$ to change to the root directory.


Example


:FDISK:CHDIr 3
(Changes the current directory to directory number 3.)

:FDISK:CHDIr "/ABCDEFG"
(Changes the current directory to the directory named ABCDEFG in the root directory.)


Note


-


Usage
Conditions


When not measuring




Delete a file or directory


Syntax


(Command)


:FDISK:DELEte A
:FDISK:DELEte "A$"


A = File or directory number
A$ = File or directory name


Details


Deletes file or directory number A, or the file or directory specified by A$.


Example


:FDISK:DELEte 1
(Deletes file (or directory) number 1.)

:FDISK:DELEte "ABCDEFG"
(Deletes the file (or directory) named ABCDEFG.)


Note


-


Usage
Conditions


When not measuring




Query the current directory


Syntax


(Query)


:FDISK:DIR?

(Response)

A$
A$ = Directory name (including directory path)


Details


Returns the name of the current directory (including its path) on the storage media as a text string.


Example


:FDISK:DIR?
(Response)  :FDISK:DIR "/ABCDEFG/123456"  (when headers are enabled)


Note


-


Usage
Conditions


When not measuring




Query the number of files and directories


Syntax


(Query)


:FDISK:FILE?

(Response)

A<NR1>
A = Number of files (including directories)


Details


Returns the total number of files (including directories) within the current directory as an NR1 numerical value.


Example


:FDISK:FILE?
(Response)  :FDISK:FILE 100  (when headers are enabled)


Note


-


Usage
Conditions


When not measuring




Format storage media


Syntax


(Command)


:FDISK:FORMat A$

A$ = USB, SD


Details


Formats the storage media specified by A$.


Example


:FDISK:FORMat USB



Note


-


Usage
Conditions


When not measuring




Query information about a file or a directory


Syntax


(Query)


:FDISK:INFOr? A

(Response)

A,"B$","C$","D$",E,F,G,"H$","I$"


Details


Returns information about file number A.

A   (File or directory number)
B$   (File or directory name)
C$   (Date of saving)
D$   (Time of saving)
E   (File size [bytes])
F   WAVE, SET, DIR, OTHER (Measurement contents)
G   (Recording length)
H$   (Year/Month/Day of trigger)
I$   (Time of trigger)


Example


:FDISK:INFOr? 1
(Response)   :FDISK:INFOR 1,"WAVE.MEM","2000/01/01","00:00:00",551150,WAVE,2501,"2000/01/01","00:00:00"  (when headers are enabled)


Note


-


Usage
Conditions


-




Query the loaded file.


Syntax


(Query)


:FDISK:LDNAme?

(Response)

"A$"


Details


The file name will be returned.


Example


:FDISK:LDNAme?
(Response)  :FDISK:LDNAME "File Name"(when headers are enabled)


Note


-


Usage
Conditions


The file must have been read by the main device.




Load a file


Syntax


(Command)


:FDISK:LOAD A(,B,C)
:FDISK:LOAD "A$"(,B,C)

A = File Number
A$ = File Name
B = Position to start reading binary file
C = Length of binary file to read


Details


Loads the data from the file numbered A or specified by A$.


Example


:FDISK:LOAD 5
:FDISK:LOAD "TEST"


Note


B and C can only be specified when the file is a binary waveform file (real-time).


Usage
Conditions


When not measuring




Select or query the storage media type


Syntax


(Command)
(Query)


:FDISK:MEDIa A$
:FDISK:MEDIa?

(Response)

A$
A$ = SD, USB, NONE


Details


Selects the storage media type.
Returns the current storage media type as a text string.

SD  (SD card)
USB  (Storage device connected to USB port)
NONE  (No storage media is selected)


Example


:FDISK:MEDIa USB
:FDISK:MEDIa?
(Response)  :FDISK:MEDIA USB  (when headers are enabled)


Note


Argument A$ cannot be set to NONE.


Usage
Conditions


When not measuring




Query a file or directory name


Syntax


(Query)


:FDISK:NINFor? A

(Response)

A<NR1>,"B$",C$
A = File or directory number
"B$" = File or directory name
C$ = FILE, DIR, NONE


Details


Returns the name of file or directory number NO as a text string.

FILE  (File)
DIR  (Directory)
NONE  (Unkown)


Example


:FDISK:NINFor? 1
(Response)  :FDISK:NINFOR 2,"TEST.MEM",FILE  (when headers are enabled)


Note


-


Usage
Conditions


When not measuring




Rename a file or directory


Syntax


(Command)


:FDISK:RENAme A,"A2$"
:FDISK:RENAme "A1$","A2$"

A = File number
A1$ = Original name
A2$ = New name


Details


Renames the file or directory specified by A or A1$ to A2$.


Example


:FDISK:RENAme 1,"ABC.MEM"
(Changes the name of file or directory number 1 to "ABC.MEM".)

:FDISK:RENAme "TEST.REC","ABC.REC"
(Changes the name of file or directory "TEST.REC" to" ABC.REC".)


Note


-


Usage
Conditions


-




Save data


Syntax


(Command)


:FDISK:SAVE


Details


Saves data to storage media according to settings on the "SAVE" screen.


Example


:FDISK:SAVE


Note


Saves data according to the settings on the "SAVE" screen.
This command is not affected by the SAVE key behavior setting.


Usage
Conditions


When not measuring




Set or query the sort order of the file list


Syntax


(Command)
(Query)


:FDISK:SDIRection A$
:FDISK:SDIRection?

(Response)

A$
A$ = UP, DOWN


Details


Sets the file list sort order (direction).
Returns the current file list sort order as a text string.

UP  (Ascending order)
DOWN  (Decending order)


Example


:FDISK:SDIRection UP
(Sorts the file list in ascending order.)

:FDISK:SDIRection?
(Response)  :FDISK:SDIRECTION UP  (when headers are enabled)


Note


-


Usage
Conditions


When not measuring




Select or query the sort key for the file list


Syntax


(Command)
(Query)


:FDISK:STYPe A$
:FDISK:STYPe?

(Response)

A$
A$ = NAME, TYPE, SIZE, DATE


Details


Sets the file list sort key (sort type).
Returns the file list sort key as a text string.

NAME  (File or directory name)
TYPE  (File type)
SIZE  (Size of file)
DATE  (Date of save)


Example


:FDISK:STYPe SIZE
(Selects file list sorting according to size.)

:FDISK:STYPe?
(Response)  :FDISK:STYPE SIZE  (when headers are enabled)


Note


-


Usage
Conditions


When not measuring




Query the available and total space in the storage media


Syntax


(Query)


:FDISK:VOLUme?

(Response)

A<NR1>,B<NR1>
A = <Available space>
B = <Total space>


Details


Available and total space will be returned as NR1 numbers.


Example


:FDISK:MEDIA SD
(Switch to the SD card as the recording media.)

:FDISK:VOLUme?
(Response)  :FDISK:VOLUME 13385728,14860288  (when headers are enabled)


Note


-


Usage
Conditions


When the :FDISK:MEDIA command is used to select the recording media.