File operations (FDISK)


Change the current directory

Syntax

(Command)


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

A = Directory No.
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.

When ' or ˜ are used in the directory name, the following will result.

PC

˜,

˜˜

MR8740T

'

˜


Example

:FDISK:CHDIr 1
Changes the current directory to directory number 1)

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

Note

-

Usage
Conditions

Not being measured.




Copy a file or directory to the specified media

Syntax

(Command)


:FDISK:COPY A,"B$"
:FDISK:COPY "A$","B$"

A = Number of file or directory to copy
A$ = Name of file or directory to copy
B$ = Destination directory name

Details

The file or directory specified by A or A$ will be copied to the directory specified by B$.

When ' or ˜ are used in the file or directory name, the following will result.

PC

˜,

˜˜

MR8740T

'

˜


Example

:FDISK:COPY 1,"D:\"
(Copies file or directory number 1 to D:\.))

:FDISK:COPY "ABCDEFG", "D:\"
(Copies the file or directory named ABCDEFG to D:\.)

Note

-

Usage
Conditions

Not being measured.




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$.

When ' or ˜ are used in the file or directory name, the following will result.

PC

˜,

˜˜

MR8740T

'

˜


Example

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

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

Note

-

Usage
Conditions

Not being measured.




Query the current directory

Syntax

(Query)


:FDISK:DIR?

(Response)

A$

A$ = Directory name

Details

Returns the name of the current directory.

Example

:FDISK:DIR?
(Response)  :FDISK:DIR "D:\"  (when headers are enabled)

Note

-

Usage
Conditions

-




Query the connected disk drive

Syntax

(Query)


:FDISK:DRIVe?

(Response)

A1$A2$...Ax$

Ax$ = D,E,F,...Z (Drive letter)

Details

Returns the connected disk drive letters.

Example

:FDISK:DRIVe?
(Response)  :FDISK:DRIVE D  (when headers are enabled)

Note

-

Usage
Conditions

-




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.

Example

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

Note

-

Usage
Conditions

-




Format storage media

Syntax

(Command)


:FDISK:FORMat A$

A$ = D,E,F,...Z (Drive letter)

Details

Formats the storage media specified by A$.

Example

:FDISK:FORMat D;*WAI

Note

-

Usage
Conditions

Not being measured.




Query the number of available bytes

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 USB1
(Select the USB memory)

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

Note

-

Usage
Conditions

-




Query information about a file or a directory

Syntax

(Query)


:FDISK:INFOr? A

(Response)

[When using MR8740 compatibility mode]
A<NR1>,"B$","C$","D$",E<NR1>,J$,F$,G<NR1>,"H$","I$"

[When using MR6000 compatibility mode]
A<NR1>,"B$","C$","D$",E<NR1>,F$,G<NR1>,"H$","I$"

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
J$ = Function

Details

Returns information about file number A.
F$ is as follows.

WAVE  Waveform data
SET  Setting data
DIR  Directory
OTHER  Other file

Example

:FDISK:INFOr? 1
(Response)  :FDISK:INFOR 1,"AUTO0000.MEM","17-01-02","12:34:56",158360,MEM,WAVE,2500,"17-01-02","12:34:56.789"  (when headers are enabled)

Note

-

Usage
Conditions

-




Query the file name of the loaded file

Syntax

(Query)


:FDISK:LDNAme?

(Response)

"A$"

Details

The file name will be returned.

Example

:FDISK:LDNAme?
(Response)  :FDISK:LDNAME "AUTO0000.MEM"  (when headers are enabled)

Note

-

Usage
Conditions

While file is loaded.




Load a file

Syntax

(Command)


:FDISK:LOAD A
:FDISK:LOAD "A$"

A = File Number
A$ = File Name

Details

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

When ' or ˜ are used in the file name, the following will result.

PC

˜,

˜˜

MR8740T

'

˜


Example

:FDISK:LOAD "AUTO0000.MEM";*WAI;
:FDISK:LOAD 1;*WAI;

Note

-

Usage
Conditions

Not being measured.




Select or query the storage media type

Syntax

(Command)

(Query)


:FDISK:MEDIA A$

:FDISK:MEDIA?

(Response)

A$

A$ = D to Z, SSD, USB1 to USB23

Details

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

Example

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

Note

-

Usage
Conditions

Not being measured.




Create a directory

Syntax

(Command)


:FDISK:MKDIR "A$"

A$ = 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:CHDIr "D:\"
(Changes the current directory to the directory named D:\ in the root directory.)

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

Note

-

Usage
Conditions

Not being measured.




Query a file or directory name

Syntax

(Query)


:FDISK:NINFor? A

(Response)

A<NR1>,"B$",C$

A = 1 to (Number of files or directories)
B$ = File name
C$ = FILE, DIR

Details

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

FILE  File
DIR  Directory

Example

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

Note

-

Usage
Conditions

-




Rename a file or directory

Syntax

(Command)


:FDISK:RENAme A,"B$"
:FDISK:RENAme "A$","B$"

A = File number before change
A$ = Name before change
B$ = Name after change

Details

Renames the file or directory specified by A or A$ to B$.

Example

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

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

Note

-

Usage
Conditions

Not being measured.




Save data

Syntax

(Command)


:FDISK:SAVE

Details

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

Example

:FDISK:SAVE;*WAI;

Note

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

Usage
Conditions

Not being measured.




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
:FDISK:SDIRection?
(Response)  :FDISK:SDIRECTION UP  (when headers are enabled)

Note

-

Usage
Conditions

Not being measured.




Select or query the sort key for the file list

Syntax

(Command)

(Query)


:FDISK:STYPe A$

:FDISK:STYPe?

(Response)

A$

A$ = NAME, TYPE, SIZE, TIME (If the parameter format is MR8740)
A$ = NAME, TYPE, SIZE, DATE (If the parameter format is MR6000)

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
TIME / DATE  Date of save

Example

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

Note

-

Usage
Conditions

Not being measured.




Query the available space and total space of 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.

Example

:FDISK:CHDIr "D:\"
(Changes the current directory to the directory named D:\ in the root directory)

:FDISK:VOLUme?
(Response)  :FDISK:VOLUME 511156224,511434752  (when headers are enabled)

Note

-

Usage
Conditions

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