3 step 3: connect, Step 3: connect – Campbell Scientific NL115 Ethernet Interface and CompactFlash Module User Manual
Page 11

NL115 Ethernet and CompactFlash
®
Module
4.2.3 Step 3: Connect
You are now ready to connect to your datalogger using the LoggerNet Connect
Screen.
Datalogger program transfer, table-data display, and data collection are now
possible.
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.
CAUTION
5