Field Test Unit Software

5. DATA STORAGE FORMAT

Data storage and communications to/from RAM, Cassette tape and RS-232 communication with a host computer conforms to the format detailed below.

5.1 FTU FILE FORMAT

The data file consists of three parts, one HEADER message (Line 1:) one or more DATA messages (Line 2: onwards) and an END message line.

1

HEADER message which contains information about the file.

1 or more

DATA messages which contain the actual data.

1END message which terminates the file.

5.1.1HEADER Message Format

The HEADER message is generated by a BASIC ‘PRINT’ statement and read by a BASIC ‘INPUT’ statement.

The HEADER information is used to describe the file and its contents, Fields are separated by commas. (The message is terminated with a C/R L/F sequence.)

HEADER message - Line 1:-

filename,ext,cycle,time,filesize

C/R L/F

Where:-

 

 

filename

= Name of the data file

ext

= Filename extension

cycle

= Data Logger

cycle time in seconds (usually 5)

time

= Time and Date in logger cycles past 1JAN80

 

(locn 4. Data Logger format)

filesize

= Size file in

bytes (excluding this HEADER Line 1:

 

but including

all DATA messages and the END line)

Section 5. DATA STORAGE FORMAT

25

Page 31
Image 31
Canon Model 6401 B manual Header Message Format, Header message Line, L/F