FDISK Commands (Set and query file operations)


Change the current directory


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.


Entering ' or ˜ for a file name or path name results in the following.

On the PC screen

˜,

˜˜

On the MR8740 or MR8741 screen

'

˜



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


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$ = USB1, INTMEM


Details


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

USB1  USB memory
INTMEM  Hard disk memory


Entering ' or ˜ for a file name or path name results in the following.

On the PC screen

˜,

˜˜

On the MR8740 or MR8741 screen

'

˜



Example


:FDISK:COPY 1,USB1
(Copies file or directory number 1 to USB memory 1.)



Note


-


Usage
Conditions


ALL functions
When not measuring




Delete a file or directory


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


Entering ' or ˜ for a file name or path name results in the following.

On the PC screen

˜,

˜˜

On the MR8740 or MR8741 screen

'

˜



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


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 "USB1:\ABCDEFG\123456\"  (when headers are enabled)


Note


-


Usage
Conditions


ALL functions
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


The value that added the number of files and directories will be returned.


Usage
Conditions


ALL functions
When not measuring




Format storage media


Syntax


(Command)


:FDISK:FORMat A$

A$ = USB1, INTMEM


Details


Formats the storage media.

USB1  USB memory
INTMEM  Hard disk memory


Example


:FDISK:FORMAT USB1



Note


-


Usage
Conditions


ALL functions
When not measuring




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


ALL functions
When not measuring




Query information about a file or a directory


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,---

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


Syntax


(Command)


:FDISK:LOAD NO(,A$)
:FDISK:LOAD "NAME$"(,A$)

A$ = NEW


Details


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

Entering ' or ˜ for a file name results in the following.

On the PC screen

˜,

˜˜

On the MR8740 or MR8741 screen

'

˜



Example


:FDISK:LOAD 5,NEW
:FDISK:LOAD "TEST"


Note


-


Usage
Conditions


ALL functions
When not measuring




Select or query the storage media type


Syntax


(Command)
(Query)


:FDISK:MEDIA A$
:FDISK:MEDIA?

(response)

A$
A$ = USB1, INTMEM


Details


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

USB1  USB memory
INTMEM  Hard disk memory


Example


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


Note


-


Usage
Conditions


ALL functions
When not measuring




Create a directory


Syntax


(Command)


:FDISK:MKDIR "NAME$"


NAME$ = Sub 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 USB1
(Selects the USB memory.)

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


Note


-


Usage
Conditions


ALL functions
When not measuring




Move a file or directory


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  diectory


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


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.MEM","ABCD.MEM"
(Changes the name of file or directory "TEST.MEM" to" ABCD.MEM".)


Note


-


Usage
Conditions


ALL functions




Save


Syntax


(Command)


:FDISK:SAVE "NAME$",A$(,B$)(,C$)
NAME$ = file name
A$ = BIN, TEXT, SET, MEAS, ALLBin, ALLText
B$ = CH1 to , L0 to L8, Z, ALL (if A$ = BIN, TEXT, ALLBin or ALLText)
B$ = NEW, EXIST (if A$ = MEAS)
C$ = OFF,16,32,64 (if A$ = BIN)
C$ = OFF,X1_2,X1_5,X1_10,X1_20,X1_50,X1_100,X1_200,X1_500,X1_1000 (if A$ = TEXT or ALLText)


Details


Save data in the format specified by A$.
Please do not write an extension to NAME$, because the extension is added automatically.
If A$ is in BIN or TEXT format, data for the channel specified by B$ will be saved.
C$ represents the partitioned size if A$ is a BIN file, the thinning ratio if A$ is a TEXT file, and is OFF if not used.

Parameter A$
BIN   binary file
TEXT   text file (Memory function and Recorder function)
SET   settings file
MEAS   Calculation results file (Memory function only)
ALLBin   binary file (Memory function only)
ALLText   text file (Memory function only)

When A$=ALLBin (waveform binary package) or ALLText (waveform text package), the measurement data with memory division function can be saved. Saves all blocks of waveform data.


Parameter B$ (if A$ = BIN, TEXT, ALLBin or ALLText)
CHn  Analog channel (only save the specified channel: n is specified from 1 to 32)
L0  Bilt-in Logic (save all 16ch of LA to LD)
Ln  Logic unit (save all 16ch of LnA to LnD: n is specified 1 to 8)
Z  Waveform calculation (save all of calculation result)
ALL  Save all of the measured waveform and the waveform of calculation result

Attempts to save over an existing file will result in an error.


Parameter B$ (if A$ = MEAS)
NEW  Save to new file
EXIST  Save in addition to the existing file


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

On the PC screen

˜,

˜˜

On the MR8740 or MR8741 screen

'

˜



Example


:FDISK:MEDIA USB1
(Specifies the USB as saved media.)

:FDISK:CHDIR "\WAVE"
(Specifies the save folder to \WAVE.)

:FDISK:SAVE "SAVEFILE",BIN,ALL,32
(Saves the whole channel data in a file specified by "SAVEFILE" after divided by 32MB in binary form.)


Note


When saving waveform data, if the AB cursor is displayed on the screen, only the data between AB cursors is saved.
Please be sure to turn OFF AB cursor to save the whole waveform data.


Usage
Conditions


ALL functions
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)
(when headers are enabled)


Note


-


Usage
Conditions


ALL functions
When not measuring




Select or query the sort key for the file list


Syntax


(Command)
(Query)


:FDISK:STYPe A$
:FDISK:STYPe?

(response)

A$
A$ = OFF, NAME, TIME, SIZE, TYPE


Details


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

OFF  Sort off
NAME  Name
TIME  Date
SIZE  Size
TYPE  Type


Example


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

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


Note


-


Usage
Conditions


ALL functions
When not measuring