Campbell Scientific CR6 CR6 Measurement and Control System - Page 145
Table 21., TOA5 Environment Line, Values, Values1,1, Values1,2, Values2,1, Values2,2
View all Campbell Scientific CR6 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 145 highlights
Section 7. Installation tripped either by the CR6 clock, or by an event, such as a high temperature. The number of data tables declared is limited only by the available CR6 memory (prior to OS 28, the limit was 30 data tables. Data tables may store individual measurements, individual calculated values, or summary data such as averages, maxima, or minima to data tables. Each data table is associated with overhead information that becomes part of the ASCII file header (first few lines of the file) when data are downloaded to a PC. Overhead information includes • table format, • datalogger type and operating system version, • name of the CRBasic program running in the datalogger, • name of the data table (limited to 20 characters), and • alphanumeric field names to attach at the head of data columns. This information is referred to as "table definitions." The table Typical Data Table (p. 146) shows a data file as it appears after the associated data table has been downloaded from a CR6 programmed with the code in CRBasic example Definition and Use of a Data Table (p. 146). The data file consists of five or more lines. Each line consists of one or more fields. The first four lines constitute the file header. Subsequent lines contain data. Note Discrete data files (TOB1, TOA5, XML) can also be written to CR6 CPU memory using the TableFile() instruction. The first header line is the Environment Line. It consists of eight fields, listed in table TOA5 Environment Line (p. 145). Table 21. TOA5 Environment Line Field Description 1 file type (always TOA5) 2 station name 3 datalogger model 4 datalogger serial number 5 datalogger OS version 6 datalogger program name 7 datalogger program signature 8 table name Changed via no change DevConfig or CRBasic program no change no change send new OS send new program send / change Program change program The second header line reports field names. This line consists of a set of commadelimited strings that identify the name of individual fields as given in the datalogger program. If the field is an element of an array, the name will be followed by a comma-separated list of subscripts within parentheses that identifies the array index. For example, a variable named Values, which is declared as a two-by-two array in the datalogger program, will be represented by four field names: Values(1,1), Values(1,2), Values(2,1), and Values(2,2). Scalar variables will not have array subscripts. There will be one value on this line for each scalar value defined by the table. Default field names are a combination of the variable names (or alias) from which data are derived and a three-letter suffix. 145