Table 12. toa5 environment line – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 126

Advertising
background image

Section 7. Installation

126 

 

 

• 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. 127)

shows a data file as it appears after the associated

data table has been downloaded from a CR1000 programmed with the code in
CRBasic example Definition and Use of a Data Table

(p. 127).

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 CR1000
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. 126).

Table 12. TOA5 Environment Line

Field Description

Changed

via

1

file type (always TOA5)

no change

2 station

name DevConfig or CRBasic program

3 datalogger

model

no

change

4

datalogger serial number

no change

5

datalogger OS version

send new OS

6

datalogger program name

send new program

7 datalogger

program

signature

send / change Program

8

table name

change program

 

The second header line reports field names. This line consists of a set of comma-
delimited 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. 127).

Advertising