beautypg.com

3 export data instructions, Cardout (stopring, size), Dsp4 (flagvar, rate) – Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 102

background image

Section 6. Data Table Declarations and Output Processing Instructions

6-8

6.3 Export Data Instructions

CardOut (StopRing, Size)

Used to send output data to the PCMCIA card. This instruction creates a data
table on the PCMCIA card. CardOut must be entered within each data table
declaration that is to store data on a PCMCIA card.

Parameter
& Data Type

Enter

StopRing

Constant

A code to specify if the Data Table on the PCMCIA card is fill and stop or ring (newest
data overwrites oldest).
Value

Result

0

Ring

1

Fill and Stop

Size

Constant

The size to make the data table. The number of data sets (records) to allocate memory for
in the PCMCIA card. 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.
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.

DSP4 (FlagVar, Rate)

Send data to the DSP4. If this instruction appears inside a DataTable, the
DSP4 can display the fields of this Table, otherwise, the Public Variables are
used by the DSP4. The Instruction can only be used once in a program; hence,
only the public variables or a single data table can be viewed.

Parameter
& Data Type

Enter

FlagVar

Array

The variable array to use for the 8 flags that can be displayed and toggled by the DSP4.
A value of 0 = low;

0 = high. If the array is dimensioned to less than 8, the DSP4 will

only work with the flags up to the dimension. The array used for flags in the Real Time
displays of PC9000 is Flag ().

Rate

Constant

How frequently to send new values to the DSP4 in milliseconds.

Example

DSP4 (Flag( ), 200)

Use Flag( ) to work with the buttons, update the DSP4 display every 200 msec.
(5 times a second).

GOESData (Dest, Table, TableOption, BufferControl, DataFormat)

The GOESData instruction is used to transmit data to the SAT HDR GOES
satellite data transmitter. The GOESData instruction is not inserted within the
Data Table declaration, it is inserted within the program, typically within the
scan.