beautypg.com

2 data table declarations, 1 data table modifiers, 2 data storage output processing – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 106: 1 single-source

background image

Section 10. CRBASIC Programming Instructions

10.2 Data Table Declarations

DataTable … EndTable

Mark the beginning and end of a data table.

Syntax

DataTable (Name, TrigVar, Size)

[data table modifiers]

[on-line storage destinations]

[output processing instructions]

EndTable

10.2.1 Data Table Modifiers

DataInterval

Sets the time interval for an output table.

Syntax

DataInterval (TintoInt, Interval, Units,)

10.2.2 Data Storage Output Processing

FieldNames

Immediately follows an output processing instruction to change default field

names.

Syntax

FieldNames ("Fieldname1 : Description1, Fieldname2

: Description2…")

10.2.2.1 Single-Source

Average

Stores the average value over the output interval for the source variable or each

element of the array specified.

Syntax

Average (Reps, Source, DisableVar)

Maximum

Stores the maximum value over the output interval.

Syntax

Maximum (Reps, Source, DisableVar, Time)

Minimum

Stores the minimum value over the output interval.

Syntax

Minimum (Reps, Source, DisableVar, Time)

Sample

Stores the current value at the time of output.

Syntax

Sample (Reps, Source)

94