beautypg.com

11 program access to data tables, Table 12. abbreviations of names of data processes – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 102

background image

Section 9. Programming

9.11 Program Access to Data Tables

CRBASIC has syntax provisions facilitating access to data in tables or

information relating to a table. The syntax is entered directly into the CRBASIC

program through a variable name. The general form is:

"TableName.FieldName_Prc (Fieldname Index, Records Back)".

Where:

TableName: name of the data table

FieldName: name of the variable from which the processed value is derived

Prc: Abbreviation of the name of the data process used. See

TABLE.

Abbreviations of Names of Data Processes

p. 90 for a complete list of these

abbreviations-not needed for values from Status or Public tables.

Fieldname Index: Array element number (optional)

Records Back: How far back into the table to go to get the value (optional)

Table 12. Abbreviations of Names of Data

Processes

Abbreviation

Process Name

Tot

Totalize

Avg

Average

Max

Maximum

Min

Minimum

Std

Standard Deviation

Sample

WVc

WindVector

ETsz

ET

RSo

Solar Radiation (from ET)

TMx

Time of Max

TMn

Time of Min

For instance, to access the number of watchdog errors, use the

"Status.WatchDogCnt," where "Status" is the table name, and "WatchDogCnt"

is the field name.

90