04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

• name of the CRBasic program running in the datalogger<br />

• name of the data table (limited to 20 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. 127) shows a data file as it appears after the associated<br />

data table has been downloaded from a <strong>CR1000</strong> programmed with the code in<br />

CRBasic example Definition and Use of a Data Table (p. 127). The data file<br />

consists of five or more lines. Each line consists of one or more fields. The first<br />

four lines constitute the file header. Subsequent lines contain data.<br />

Note Discrete data files (TOB1, TOA5, XML) can also be written to <strong>CR1000</strong><br />

CPU memory using the TableFile() instruction.<br />

The first header line is the Environment Line. It consists of eight fields, listed in<br />

table TOA5 Environment Line (p. 126).<br />

Table 12. TOA5 Environment Line<br />

Field Description Changed via<br />

1 file type (always TOA5) no change<br />

2 station name DevConfig or CRBasic 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 />

The second header line reports field names. This line consists of a set of commadelimited<br />

strings that identify the name of individual fields as given in the<br />

datalogger program. If the field is an element of an array, the name will be<br />

followed by a comma-separated list of subscripts within parentheses that<br />

identifies the array index. For example, a variable named values that is declared as<br />

a two-by-two array in the datalogger program will be represented by four field<br />

names: values(1,1), values(1,2), values(2,1), and values(2,2). Scalar variables will<br />

not have array subscripts. There will be one value on this line for each scalar<br />

value defined by the table. Default field names are a combination of the variable<br />

names (or alias) from which data are derived and a three-letter suffix. The suffix<br />

is an abbreviation of the data process that output the data to storage. For example,<br />

Avg is the abbreviation for average. If the default field names are not acceptable<br />

to the programmer, FieldNames() instruction can be used to customize field<br />

names. “TIMESTAMP”, “RECORD”, “Batt_Volt_Avg”, “PTemp_C_Avg”,<br />

“TempC_Avg(1)”, and “TempC_Avg(2)” are default field names in table Typical<br />

Data Table (p. 127).<br />

126

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!