1 data table declaration, Datatable (name, trigvar, size), Endtable – Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 95

Advertising
background image

6-1

Section 6. Data Table Declarations and
Output Processing Instructions

6.1 Data Table Declaration

DataTable (Name, TrigVar, Size)

output trigger modifier

export data destinations

output processing instructions

EndTable

DataTable is used to declare/define a data table. The name of the table, output
trigger and size of the table in RAM are set with DataTable. The Table
declaration must be at the beginning of the code prior to BeginProg. The table
declaration starts with DataTable and ends with EndTable. Within the
declaration are output trigger modifiers (optional, e.g., DataInterval, DataEvent
or WorstCase), the on-line storage devices to send the data to (optional, e.g.,
CardOut, DSP4), and the output processing instructions describing the data set
in the table.

Parameter
& Data Type

Enter

Name

Name

The name for the data table. The table name is limited to eight characters.

TrigVar

The name of the variable to test for the trigger. Trigger modifiers add additional
conditions.

Constant

Value

Result

Variable, or

0

Do not trigger

Expression

0

Trigger

Size

Constant

The size to make the data table. The number of data sets (records) to allocate memory for
in static RAM. Each time a variable or interval trigger occurs, a line (or row) of data is
output with the number of values determined by the output Instructions within the table.
This data is called a record. The total number of records stored equals the size..
Note

Enter a negative number and all remaining memory
(after creating fixed size data tables) will be
allocated to the table or partitioned between all
tables with a negative value for size. The
partitioning algorithm attempts to have the tables fill
at the same time.

DataTable Example - see native language Section 4.

EndTable

Used to mark the end of a data table.

See DataTable

Advertising