(13) FDISK command (Setting and querying relating to the file)

 

(1) Sets and queries the media type.

Common

 

Syntax

 

 

command

query

 

:FDISK:MEDIa A$

:FDISK:MEDIa?

response

 

A$

A$ = FD, PC (8835, 8835-01)

      = FD, PC, SCSI, MO (8826, 8841, 8842, 8720)

 

 

Explanation

 

 

Sets the media type.

Returns the current media type as character data

 

 

Example

 

 

:FDISK:MEDIa FD

Floppy disk media are used.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(2) Saves a file.

Common

 

Syntax

 

 

command

 

:FDISK:SAVE 'NAME1$.NAME2$',A$,B$(,C$)

:FDISK:SAVE 'NAME1$.NAME2$',A$   (when A$ = Set, Area or in the FFT function)

response

 

A$

NAME1$ = file name (8 characters)

NAME2$ = extension (3 characters)

 

A$ = type of file

         Bin: binary data

         Text: text data

         Set: settings

         Area: waveform decision area

 

A$ = type of file (During memory segmentation or in the R&M function)

         BAll: binary data (All blocks (all waveforms) are saved.)

         BOne: binary data (One block (the displayed waveform) is saved.)

         TAll: text data (All blocks (all waveforms) are saved.)

         TOne: text data (One block (the displayed waveform) is saved.)

               *In the R&M function

                BAll, TAll: Both the MEM and REC waveforms are saved simultaneously.

                BOne, TOne: Only the waveform in the display function is saved.

 

B$ = saved channels

         ALL, CH1 to CH4, LOGIC (8835)

         ALL, CH1 to CH8, LOGIC (8835-01)

         ALL, CH1 to CH32, LOGIC (8826)

         ALL, CH1 to CH16, LOGIC (8841, 8842, 8720)

 

C$ = degree of thinning (text only)

         OFF, 1_2 to 1_1000

 

 

Explanation

 

 

Saves the information specified by A$.

If an attempt is made to save to a filename that already exists, an execution error is generated.

Double quotation marks (") can be used instead of single quotation marks (f).

 

 

Example

 

 

:FDISK:SAVE 'TEST.DAT',Bin,ALL

Saves all channels of measurement data under the file name fTEST. DATf.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(3) Loads a file.

Common

 

Syntax

 

 

command

 

:FDISK:LOAD NO(,A$) (File number)

:FDISK:LOAD "NAME1$.NAME2$"(,A$) (File name)

response

 

A$

NO = file number

A$ = NEW, ADD

NAME1$ = file name (8 characters)

NAME2$ = extension (3 characters)

 

 

Explanation

 

 

Loads the data in the file numbered NO. Or loads the data of the specified file name.

When loading the waveform data, "new load (NEW)" or "overwrite load (ADD)" can be set. (Default is NEW if omitted.)

 

 

Example

 

 

:FDISK:LOAD 1,NEW

Loads the waveform data of the file numbered 1.

 

:FDISK:LOAD "TEST.MEM",NEW

Loads a file called TEST.MEM.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(4) Queries information about a file or directory.

Common

 

Syntax

 

 

command

 

:FDISK:INFOr? NO

response

 

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

NO : file or directory number

NAME$ : file name

DATE$ : date of save

TIME$ : time of save

A : size of file (bytes)

B$ : function (MEM, REC, RMS)

C$ : measurement contents (WAVE, SET)

D : recording length

TDATE$ : year/month/day of trigger

TTIME$ : trigger time

 

 

Explanation

 

 

Returns information about the file numbered NO.

If the file cannot be read, returns: NO, "NAME$", "DATE$", "TIME$", A, 0

Double quotation marks (") can be used instead of single quotation marks (f).

 

 

 Note

 

 

As for the directory, the responses are shorten up to gTIME$h.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(5) Deletes a file or directory.

Common

 

Syntax

 

 

command

 

:FDISK:DELEte NO(,A$) (Number)

:FDISK:DELEte "NAME1$,"NAME2$"(Name)

response

 

A$

NO = file or directory number

NAME1$ = file or directory name (8 characters)

NAME2$ = extension (3 characters)

 

 

Explanation

 

 

Deletes the file or directory numbered NO. Or deletes the file or directory of the specified name.

 

 

Example

 

 

:FDISK:DELETE 1

Deletes the file (directory) numbered 1.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

(6) Formats media.

Common

 

Syntax

 

 

command

 

:FDISK:FORMat A$

response

 

A$

In the case of the FD.

A$ = 2HD (1.2MB), 2HC (1.44MB), 2DD (720kB)

 

In the case of the MO or the SCSI.

A$ = Normal, Quick

 

 

Explanation

 

 

Formats media.

If a floppy disk is selected, select the format type.

 

 

Example

 

 

:FDISK:FORMat 2HD

Formats in 2HD (1.2 M-byte) format.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(7) Creates a directory.

Common

 

Syntax

 

 

command

 

:FDISK:MKDIR "NAME$"

response

 

NAME$ = subdirectory name

 

 

Explanation

 

 

Creates a subdirectory in the current directory on the media.

Double quotation marks (") can be used instead of single quotation marks (f).

 

 

Example

 

 

FDISK:MEDIA FD

FDISK:MKDIR "TEST"

Creates a subdirectory called TEST on the floppy disk.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

(8) Changes the current directory.

Common

 

Syntax

 

 

command

 

:FDISK:CHDIR NO

response

 

NO

NO = number of files (directory)

 

 

Explanation

 

 

Changes the current directory to the directory numbered NO on the media.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(9) Queries the number of files.

Common

 

Syntax

 

 

query

 

:FDISK:FILE?

response

 

A<NR1>

A = number of files

 

 

Explanation

 

 

Returns the total number of files which are currently saved as an NR1 numerical value.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(10) Queries the filename.

Common

 

Syntax

 

 

query

 

:FDISK:NINFor? NO

response

 

NO,"NAME$",A$

NO = file number

NAME$ = name of the file

A$ = FILE (file), DIR (directory)

 

 

Explanation

 

 

Returns the filename numbered NO as character data.

 

 

Example

 

 

query         :FDISK:NINFOR? 1

response  :FDISK:NINFOR 1,"TEST.DAT",FILE

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(11) Queries the current directory.

Common

 

Syntax

 

 

query

 

:FDISK:DIR?

response

 

A$

A$ = directory name

 

 

Explanation

 

 

Returns the current directory name (with the pass) on the media as character data.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.

 

 

(12) Queries the allowable number of bytes.

Common

 

Syntax

 

 

query

 

:FDISK:FREE?

response

 

A<NR1>

A = allowable number of bytes

 

 

Explanation

 

 

Returns the allowable number of bytes for the floppy disk as an NR1 numerical value.

 

 

When allowed

 

 

Providing that measurement operation is not taking place.