2 a -- read all data files, 3 u -- read unread data files, 4 n -- read newest data file – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 100: 6 p -- read all program files, 7 d -- store a .dld program file

Advertising
background image

SECTION 8. SMCREAD CARD READING SOFTWARE

8-2

option when trying to diagnose problems with a
corrupted card.

To obtain a summary of valid commands press

F1

; a second press of

F1

displays a second

screen. To leave the terminal emulator, press
the

ESC

key.

SMCRead only supports a subset of the
telecommunications commands the CSM1
offers. The commands not supported are 0H,
nDP, nSP and N.

8.2.2 A — READ ALL DATA FILES

This option reads all valid data files in the
memory card. SMCRead first asks for a root
file name that is used to name computer data
files (see below for details of file name
conventions). After a valid name is entered,
SMCRead prompts for the format in which you
wish to write the data on disk (see Section 8.4).

Once a valid format has been entered
SMCRead starts at the beginning of the card
memory and scans through, writing each card
file containing data to a new file on the hard
disk. For each file the message: ‘

xxxxxx:

writing to file rootnn.dat

’ appears,

where

xxxxxx

is the location of the start of the

file.

If SMCRead finds a file that contains a program,
it jumps over the program and displays ‘

no

data found in this area

’.

While reading data from the card SMCRead
writes a ‘.’ to the screen for every block of data
read. The size of the block is approximately
1000 locations, but the exact block size can
vary depending on the structure of the data
stored in the card.

This option can be aborted by pressing the

ESC

key.

8.2.3 U — READ UNREAD DATA FILES

This option operates in a similar way to the A
option, with the exception that it starts reading
data from the position of the Storage Module
Dump pointer. This pointer is used to mark the
position from where data was last read. It is
automatically moved after successful collection
of data by the A or U options of SMCRead.

Thus the U option can be used to read any new
data files stored in the card since data was last
read using SMCRead.

8.2.4 N — READ NEWEST DATA FILE

This option also works in a similar way to the A
option with the exception that it reads just the
latest file in the card and the data is written to a
specific file rather than one specified with a root
file name.

8.2.5 L — READ ONE DATA FILE STARTING AT

A SPECIFIED LOCATION

This option stores data to a specific file, as with
the N option, but SMCRead first asks for the
starting location of the file. This option is mainly
used for re-reading old data that has already
been read, or to recover data from a corrupted
card.

The L option performs only a limited check on
the validity of the start location you enter. It is
possible, for example, to request data from any
part of the card, including an empty area. The
start location should point to the first data value
in the file rather than the filemark that precedes
it.

8.2.6 P — READ ALL PROGRAM FILES

The P option reads all datalogger programs that
have been stored in the card. SMCRead first
asks for a root collection file name. Enter a
valid name such as ‘ROOT’. SMCRead then
checks which program areas contain programs
and reads the programs out to disk. Programs
1 to 8 are stored in files with the numbers 1 to 8
appended on the end of the prefix of the name.
The suffix is set to .DLD, e.g. for a root name of
ROOT, the files would be named ROOT1.DLD,
ROOT2.DLD and so on.

As the program is being read from the card a ‘ . ’
is displayed for every 100 characters read from
the card.

8.2.7 D — STORE A .DLD PROGRAM FILE

This option is used to store a .DLD program file,
as created by Edlog, into one of the program
areas of the card. SMCRead first displays the
current status of the program areas in the card
to show you which areas are in use. Next
SMCRead asks you to enter the name of the
.DLD file. SMCRead appends the .DLD suffix if
necessary.

Advertising