FDISK Commands (Set and query file operations)


Change the current directory

8860, 8861


Syntax


(Command)


:FDISK:CHDIR NO
:FDISK:CHDIR "NAME$"


NO = Directory number.
NAME$ = Directory name.


Details


Changes the current directory to directory number NO (or to the directory specified by NAME$) on the current storage media.
Specify ".." for NAME$ to change to the parent directory.
Specify "\" for NAME$ 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


All functions
When not measuring




Copy a file or directory to the specified media

8860, 8861


Syntax


(Command)


:FDISK:COPY NO,A$
:FDISK:COPY "NAME",A$


NO = Number of file or directory to copy
NAME$ = Name of file or directory to copy.
A$ = HDD, MO, PC1, PC2, FD1(FD2, FD3...), USB1(USB2, USB3...), NETwork1(NETwork2, NETwork3...)


Details


Copies the specified file or directory to the storage media specified by A$.

HDD  (Hard disk drive)
MO  (MO drive)
PC1  (PC Card 1)
PC2  (PC Card 2)
FD1 (FD2, FD3,...)  (Floppy diskette drive)
USB1 (USB2, USB3,...)  (Storage device connected to USB port)
NETwork1 (NETwork2, NETwork3,...)  (Shared network storage device)


Example


:FDISK:COPY 1,PC1
(Copies file or directory number 1 to PC Card 1.)

:FDISK:COPY "ABCDEFG",PC2
(Copies the file or directory named ABCDEFG to PC Card 2.)


Note


-


Usage
Conditions


All functions
When not measuring




Delete a file or directory

8860, 8861


Syntax


(Command)


:FDISK:DELEte NO
:FDISK:DELEte "NAME$"


NO = File or directory number
NAME$ = File or directory name


Details


Deletes file or directory number NO, or the file or directory specified by NAME$.


Example


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

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


Note


-


Usage
Conditions


All functions
When not measuring




Query the current directory

8860, 8861


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


All functions
When not measuring




Query the number of files and directories

8860, 8861


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


All functions
When not measuring




Format storage media

8860, 8861


Syntax


(Command)


:FDISK:FORMat



Details


Formats the storage media.


Example


:FDISK:MEDIA PC1
(Selects the PC Card media inserted in PC Card slot 1.)

:FDISK:FORMat


Note


-


Usage
Conditions


All functions
When not measuring




Query the number of available bytes

8860, 8861


Syntax


(Query)


:FDISK:FREE?

(Response)

A<NR1>
A = Number of available bytes


Details


Returns the number of available bytes on the storage media as an NR1 numerical value.


Example


:FDISK:MEDIA PC1
(Selects the PC Card media inserted in PC Card slot 1.)

:FDISK:FREE?
(Response)  :FDISK:FREE 63868928  (when headers are enabled)


Note


-


Usage
Conditions


All functions
When not measuring




Query information about a file or a directory

8860, 8861


Syntax


(Query)


:FDISK:INFOr? NO

(Response)

NO,"NAME$","DATE$","TIME$",A,B$,C,D,"TDATE$,"TTIME$


Details


Returns information about file number NO.
If the file cannot be read, returns: NO,"NAME$","DATE$","TIME$",A,0.

NO   (File or directory number)
NAME$   (File or directory name)
DATE$   (Date of saving)
TIME$   (Time of saving)
A   (File size [bytes])
B$   (Function)
C$   (Measurement contents: WAVE, SET)
D   (Recording length)
TDATE$   (Year/Month/Day of trigger)
TTIME$   (Time of trigger)


Example


:FDISK:INFOr? 2
(Response)   :FDISK:INFOR 2,"TEST.MEM","05-09-28","11:48:08",87676,MEM,WAVE,2501,"05-09-28","11:47:28"   (when headers are enabled)


Note


For directories, returns the information up to TIME$.


Usage
Conditions


All functions




Load a file

8860, 8861


Syntax


(Command)


:FDISK:LOAD NO
:FDISK:LOAD "NAME$"



Details


Loads the data from the file numbered NO or specified by NAME$.


Example


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


Note


-


Usage
Conditions


All functions
When not measuring




Select or query the storage media type

8860, 8861


Syntax


(Command)
(Query)


:FDISK:MEDIA A$
:FDISK:MEDIA?

(Response)

A$
A$ = NONE, HDD, MO, PC1, PC2, FD1(FD2, FD3...), USB1(USB2, USB3...), NETwork1(NETwork2, NETwork3...)


Details


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

NONE  (No storage media is selected)
HDD  (Hard disk drive)
MO  (MO drive)
PC1  (PC Card 1)
PC2  (PC Card 2)
FD1 (FD2, FD3,...)  (Floppy diskette drive)
USB1 (USB2, USB3,...)  (Storage device connected to USB port)
NETwork1 (NETwork2, NETwork3,...)  (Shared network storage device)


Example


:FDISK:MEDIA USB1
:FDISK:MEDIA?
(Response)  :FDISK:MEDIA USB1  (when headers are enabled)


Note


Argument A$ cannot be set to NONE.


Usage
Conditions


All functions
When not measuring




Create a directory

8860, 8861


Syntax


(Command)


:FDISK:MKDIR "NAME$"


NAME$ = Directory name


Details


Creates a subdirectory in the current directory on the storage media.
Either single (') or double quotation marks (") can be used.


Example


:FDISK:MEDIA PC1
(Selects the PC Card media inserted in PC Card slot 1.)

:FDISK:MKDIR "TEST"
(Creates a directory named TEST.)


Note


-


Usage
Conditions


All functions
When not measuring




Move a file or directory

8860, 8861


Syntax


(Command)


:FDISK:MOVE A,"DIR$"
:FDISK:MOVE "NAME$","DIR$"


A = File or directory number
NAME$ = File or directory name
DIR$ = Destination directory


Details


Moves the file or directory specified by its number (A) or NAME$ to directory DIR$.


Example


:FDISK:MOVE 1,"TEST"
(Moves file or directory number 1 to the directory named TEST.)

:FDISK:MOVE "ABC","TEST"
(Moves the file or directory named ABC to the directory named TEST.)


Note


-


Usage
Conditions


All functions
When not measuring




Query a file or directory name

8860, 8861


Syntax


(Query)


:FDISK:NINFor? NO

(Response)

NO<NR1>,"NAME$",A$
NO = File or directory number
NAME$ = File or directory name
A$ = FILE, DIR


Details


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

FILE  (File)
DIR  (Directory)


Example


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


Note


-


Usage
Conditions


All functions
When not measuring




Rename a file or directory

8860, 8861


Syntax


(Command)


:FDISK:RENAme A,"NAME2$"
:FDISK:RENAme "NAME1$","NAME2$"


A = File number
NAME1$ = Original name
NAME2$ = New name


Details


Renames the file or directory specified by A or NAME1$ to NAME2$.


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


All functions




Save data

8860, 8861


Syntax


(Command)


:FDISK:SAVE


Details


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


Example


:FDISK:SAVE


Note


Saves data to the current directory according to the settings on the "SAVE" screen.
This command is not affected by the SAVE key behavior setting.
When this command executes, the save directory setting on the "SAVE" screen is replaced by the current directory.


Usage
Conditions


All functions
When not measuring




Set or query the sort order of the file list

8860, 8861


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


All functions
When not measuring




Select or query the sort key for the file list

8860, 8861


Syntax


(Command)
(Query)


:FDISK:STYPe A$
:FDISK:STYPe?

(Response)

A$
A$ = NAME, TYPE, TIME, SIZE, ATTRibute, MODEl, FUNCtion, DIV, SHOT, TGCH, TGDATE, TITLe, CH


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)
TIME  (Date of save)
SIZE  (Size of file)
ATTRibute  (Attribute)
MODEl  (Machine model)
FUNCtion  (Function)
DIV  (Timebase)
SHOT  (Recording length)
TGCH  (Trigger channel)
TGDATE  (Date of trigger)
TITLe  (Title comment)
CH  (Saved channel)


Example


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

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


Note


-


Usage
Conditions


All functions
When not measuring