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 CR800 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 CR800 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
fi
elds as given in the
datalogger program. If the
fi
eld 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
fi
eld
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 de
fi
ned 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).
Summary of Contents for CR850
Page 2: ......
Page 4: ......
Page 6: ......
Page 26: ...Table of Contents 26...
Page 30: ...Section 2 Cautionary Statements 30...
Page 32: ...Section 3 Initial Inspection 32...
Page 35: ...Section 4 Quickstart Tutorial 35 Figure 2 Wiring panel...
Page 55: ...Section 4 Quickstart Tutorial 55 Figure 24 PC200W View data utility...
Page 78: ...Section 5 System Overview 78...
Page 80: ...Section 6 CR800 Specifications 80...
Page 267: ...Section 7 Installation 267 Figure 84 Running average signal attenuation...
Page 268: ...Section 7 Installation 268...
Page 384: ...Section 8 Operation 384 Figure 113 Using the keyboard display...
Page 387: ...Section 8 Operation 387 Figure 116 Real time custom...
Page 388: ...Section 8 Operation 388 8 8 1 3 Final Storage Tables Figure 117 Final storage tables...
Page 389: ...Section 8 Operation 389 8 8 2 Run Stop Program Figure 118 Run Stop Program...
Page 390: ...Section 8 Operation 390 8 8 3 File Display Figure 119 File display...
Page 396: ...Section 8 Operation 396...
Page 402: ...Section 9 Maintenance 402...
Page 450: ...Section 11 Glossary 450...
Page 504: ...Appendix A CRBasic Programming Instructions 504...
Page 526: ...Appendix B Status Table and Settings 526...
Page 530: ...Appendix C Serial Port Pinouts 530...
Page 536: ...Appendix E FP2 Data Format 536...
Page 550: ...Appendix F Other Campbell Scientific Products 550...
Page 565: ......