Section 3. Programming
BeginProg
Scan(1,SEC,3,0)
PanelTemp(temp,250)
CallTable
Table1
NextScan
EndProg
3.2.2 Fill and Stop Mode
The following program outputs a sample of the panel temperature to the card
once a second. The first parameter of the CardOut instruction is 1, which sets
the table on the card to fill and stop mode. The second parameter (1000) is the
number of records which will be written before the table is full and data
storage stops. Once 1000 records have been stored, data storage will stop.
PROGRAM
'CR1000
Public temp
DataTable (Table1,1,1000)
CardOut
(1,1000)
Sample(1,temp,IEEE4)
EndTable
BeginProg
Scan(1,SEC,3,0)
PanelTemp(temp,250)
CallTable
Table1
NextScan
EndProg
To reset a table after a fill and stop table has been filled and stopped, either use
the reset button in LoggerNet (LN Connect | Datalogger | View Station Status |
Table Fill Times, Reset Tables button) or use the CRBasic ResetTable
instruction.
3.2.3 Mixed Modes
The following program stores 4 data tables to the card. The first two tables
will output samples of the panel temperature and battery voltage to the card
once a second. The first parameter of the CardOut instructions is 1, which sets
the tables on the card to fill and stop mode. The second parameter is 1000, so
1000 records will be written to each table before stopping.
Tables 3 and 4 will output the maximum and minimum of the panel
temperature and battery voltage to the card once every five seconds. (The
tables will be called once a second. The DataInterval instruction causes data to
only be stored every five seconds.) The first parameter of the CardOut
instructions is 0, which sets the tables on the card to ring mode. The second
parameter is negative, so all available memory on the card will be allocated to
3-2
Содержание CompactFlash CFM100
Страница 15: ...Section 2 File Formats 2 6 ...
Страница 23: ...Section 4 Data Retrieval 4 4 This is a blank page ...
Страница 27: ...Appendix A Formatting CF Card A 4 This is a blank page ...
Страница 31: ...Appendix B PC CF Card Information B 4 This is a blank page ...
Страница 32: ......