User Manual
5
4.3
Programming the Datalogger to Send Data to the NL115
The
CardOut()
instruction is used in the datalogger program to send data to the
CF card.
CardOut()
must be entered within each
DataTable
declaration that is to
store data on the CF card. The file is saved on the card with the name
stationname.tablename and a .DAT extension.
The
CardOut()
instruction has the following parameters:
StopRing
: A constant is entered for the
StopRing
parameter to specify whether the
DataTable
created should be a ring-mode table (0) or a fill-and-stop table (1).
Size
: The
Size
parameter is the minimum number of records that will be included
in the
DataTable
. If –1000 is entered, the size of the file on the card will be the
same as the size of the internal table on the datalogger. If any other negative
number is entered, the memory that remains after creating any fixed-size tables on
the card will be allocated to this table. If multiple DataTables are set to a negative
number, the remaining memory will be divided among them. The datalogger
attempts to size the tables so that they will be full at the same time.
In the following example, the minimum batt_voltage and a sample of PTemp are
written to the card each time the data table is called. The
StopRing
parameter is 0
for ring mode. This means that once the data table is full, new data will begin
overwriting old data. The
size
parameter is –1, so all available space on the card
will be allocated to the table.
DataTable(
Table1,1,-1
)
CardOut(
0 ,-1
)
Minimum(
1,batt_volt,FP2,0,False
)
Sample(
1,PTemp,IEEE4
)
EndTable
To prevent losing data, collect data from the CF card before
sending the datalogger a new or modified program. When a
program is sent to the datalogger using the Send button in the
Connect Screen of LoggerNet or PC400, an attribute is sent
along with the program that commands the datalogger to
erase all data on the CF card from the currently running
program.
4.4
CF Card Data Retrieval
Data stored on cards can be retrieved through a communication link to the
datalogger or by removing the card and carrying it to a computer with a CF
adapter. With large files, transferring the CF card to a computer may be faster
than collecting the data over a communication link. CF card-data retrieval is
discussed in detail in Section 7.4,
CF Card Data-Retrieval Details
.
Removing a card while it is active can cause garbled data and
can actually damage the card.
Always
press the Initiate
Removal button and wait for a green light before removing
card.
CAUTION
CAUTION