beautypg.com

Table 8. toa5 environment line – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 90

background image

Section 9. Programming

DataTable ()

Output Trigger Condition(s)

Output Processing Instructions

EndTable

A data table is essentially a file that resides in CR200(X) memory. The file is

written to each time data are directed to that file. The trigger that initiates data

storage is tripped either by the CR200(X)'s clock, or by an event, such as a high

temperature. Up to 8 data tables can be created by the program for a CR200(X)

(4 data tables for a CR200). The 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 16 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. 79) shows a data file as it appears after the

associated data table has been downloaded from a CR200(X) programmed with

the code in

CRBASIC EXAMPLE. Definition and Use of a Data Table

(p. 79).

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.

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

TABLE. TOA5 Environment Line

(p. 78).

Table 8. TOA5 Environment Line

Field

Description

Changed via

1

file type (always TOA5)

No Change

2

station name

DevConfig or 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

78