CR200/CR200X Series Dataloggers - Campbell Scientific
CR200/CR200X Series Dataloggers - Campbell Scientific
CR200/CR200X Series Dataloggers - Campbell Scientific
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Section 9. Programming<br />
DataTable ()<br />
Output Trigger Condition(s)<br />
Output Processing Instructions<br />
EndTable<br />
A data table is essentially a file that resides in <strong>CR200</strong>(X) memory. The file is<br />
written to each time data are directed to that file. The trigger that initiates data<br />
storage is tripped either by the <strong>CR200</strong>(X)'s clock, or by an event, such as a high<br />
temperature. Up to 8 data tables can be created by the program for a <strong>CR200</strong>(X)<br />
(4 data tables for a <strong>CR200</strong>). The data tables may store individual measurements,<br />
individual calculated values, or summary data such as averages, maxima, or<br />
minima to data tables.<br />
Each data table is associated with overhead information that becomes part of the<br />
ASCII file header (first few lines of the file) when data are downloaded to a PC.<br />
Overhead information includes:<br />
• table format<br />
• datalogger type and operating system version,<br />
• name of the CRBASIC program running in the datalogger<br />
• name of the data table (limited to 16 characters)<br />
• alphanumeric field names to attach at the head of data columns<br />
This information is referred to as "table definitions."<br />
TABLE. Typical Data Table (p. 79) shows a data file as it appears after the<br />
associated data table has been downloaded from a <strong>CR200</strong>(X) programmed with<br />
the code in CRBASIC EXAMPLE. Definition and Use of a Data Table (p. 79).<br />
The data file consists of five or more lines. Each line consists of one or more<br />
fields. The first four lines constitute the file header. Subsequent lines contain<br />
data.<br />
The first header line is the Environment Line. It consists of eight fields, listed in<br />
TABLE. TOA5 Environment Line (p. 78).<br />
Table 8. TOA5 Environment Line<br />
Field Description Changed via<br />
1 file type (always TOA5) No Change<br />
2 station name DevConfig or Program<br />
3 datalogger model No Change<br />
4 datalogger serial number No Change<br />
5 datalogger OS version Send New OS<br />
6 datalogger program name Send New Program<br />
7 datalogger program signature Send / Change Program<br />
8 table name Change Program<br />
78