Dsp4 (flagvar, rate) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 196

Section 6. Data Table Declarations and Output Processing Instructions
Parameter
& Data Type
Enter
CARDOUT PARAMETERS
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. Enter
-1000 to set the size of the table on the card to the size of the table in the datalogger's
memory.
DSP4 (FlagVar, Rate)
This instruction is used to send data to the DSP4. If this instruction appears
inside a DataTable declaration, the DSP4 can display the fields of that
DataTable. To view the Public DataTable (variables declared with the Public
instruction), place the DSP4 instruction in the Declaration program area, but
not inside of a DataTable construct.
The Instruction can only be used once in a program; hence, only
the public variables or a single Data Table can be viewed.
NOTE
Parameter
& Data Type
Enter
DSP4 PARAMETERS
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 declared dimension. The array used for flags in the Real Time displays of RTDAQ is Flag (8).
Rate
Constant
How frequently to send new values to the DSP4 in milliseconds.
Example
DataTable( MAIN, 1, 2222 ) 'Trigger set, 2222 Records
DataInterval( 0, TBLINT1, UNITS1, 100 ) '200 mSec, 100 lapses
Maximum( Reps, Tblk1(), FP2, 0, 0 )
'Reps,Source,Res,Disable,Time of Max/Min
Minimum( Reps, Tblk1(), FP2, 0, 0 )
'Reps,Source,Res,Disable,Time of Max/Min
Average( Reps, Tblk1(), FP2, 0 )
'Reps,Source,Res,Disable
DSP4
( Flag, 200 )
'DSP4 displays MAIN, updates every 200 mS
EndTable
'End of table MAIN
6-12