Campbell Scientific CR3000 CR3000 Micrologger - Page 131
Table 14., TOA5 Environment Line, FieldNames
View all Campbell Scientific CR3000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 131 highlights
Section 7. Installation • name of the CRBasic program running in the datalogger • name of the data table (limited to 20 characters) • alphanumeric field names to attach at the head of data columns This information is referred to as "table definitions." Table Typical Data Table (p. 132) shows a data file as it appears after the associated data table has been downloaded from a CR3000 programmed with the code in CRBasic example Definition and Use of a Data Table (p. 132). 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 CR3000 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. 131). Table 14. 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 that 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. The suffix is an abbreviation of the data process that output the data to storage. For example, Avg is the abbreviation for average. If the default field names are not acceptable to the programmer, FieldNames() instruction can be used to customize field names. "TIMESTAMP", "RECORD", "Batt_Volt_Avg", "PTemp_C_Avg", "TempC_Avg(1)", and "TempC_Avg(2)" are default field names in table Typical Data Table (p. 132). 131