Table 13. typical data table – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 127

Advertising
background image

Section 7. Installation

127

 

Table 13. Typical Data Table

TOA5

CR1000

CR1000

1048

CR1000.Std.13.06

CPU:Data.cr1

35723

OneMin

TIMESTAMP

RECORD

BattVolt_Avg

PTempC_Avg

TempC_Avg(1)

TempC_Avg(2)

TS

RN

Volts

Deg C

Deg C

Deg C

Avg

Avg

Avg

Avg

7/11/2007 16:10

0

13.18

23.5

23.54

25.12

7/11/2007 16:20

1

13.18

23.5

23.54

25.51

7/11/2007 16:30

2

13.19

23.51

23.05

25.73

7/11/2007 16:40

3

13.19

23.54

23.61

25.95

7/11/2007 16:50

4

13.19

23.55

23.09

26.05

7/11/2007 17:00

5

13.19

23.55

23.05

26.05

7/11/2007 17:10

6

13.18

23.55

23.06

25.04

 

The third header line identifies engineering units for that field of data. These
units are declared at the beginning of a CRBasic program, as shown in CRBasic
example Definition and Use of a Data Table

(p. 127).

Units are strictly for

documentation. The CR1000 does not make use of declared units, nor does it
check their accuracy.

The fourth line of the header reports the data process used to produce the field of
data, e.g., avg (average), his (historgram), etc.

Subsequent lines are observed data and associated record keeping. The first field
being a time stamp, the second the record (data line) number.

Read More! See table Abbreviations of Names of Data Processes

(p. 148)

for a list

of default field names.

As shown in CRBasic example Definition and Use of a Data Table

(p. 127),

data

table declaration begins with the DataTable() instruction and ends with the
EndTable() instruction. Between DataTable() and EndTable() are instructions
that define what data to store and under what conditions data are stored. A data
table must be called by the CRBasic program for data storage processing to occur.
Typically, data tables are called by the CallTable() instruction once each Scan.

CRBasic Example 14. Definition and Use of a Data Table 

'Declare Variables

Public

Batt_Volt

Public

PTemp_C

Public

Temp_C(2)

'Define Units

Units

Batt_Volt=Volts

Units

PTemp_C=Deg C

Units

Temp_C(2)=Deg C

Advertising