Specifications
Section 6. Data Table Declarations and Output Processing Instructions
Sample (Reps, Source, DataType)
This instruction stores the current value(s) at the time of output from the
specified variable or array.
Parameter
& Data Type
Enter
Reps
Constant
The number of values to sample. When repetitions are greater than 1, the source must be
an array.
Source
Variable
The name of the Variable to sample.
DataType
A code to select the data storage format.
Constant
Alpha Code Data Format
IEEE4 IEEE 4 byte floating point
FP2
String
Boolean
Campbell Scientific 2 byte floating point
ASCII string; size defined by program
0 = False; -1 = True
SampleMaxMin (Reps, Source, DataType, DisableVar)
The SampleMaxMin instruction is used to sample one or more variable(s)
when another variable (or any variable in an array of variables) reaches its
maximum or minimum for the defined output period.
The SampleMaxMin instruction is placed inside a DataTable declaration,
following the Maximum or Minimum instruction that will be used trigger the
sample. SampleMaxMin samples whenever a new maximum or minimum is
detected in the preceding instruction. When a new sample is taken, the
previous value(s) are discarded. The sample(s) recorded in the data table will
be those taken when the last maximum or minimum occurred.
When the Repetitions parameter for the Maximum or Minimum instruction is
greater than 1, SampleMaxMin samples whenever a new maximum or
minimum occurs in any of the variables in the Maximum/Minimum source
array. To ensure the sample is taken only when a new maximum or minimum
occurs in a single specific variable, the preceding maximum or minimum
instruction must have repetitions=1.
Parameter
& Data Type
Enter
Reps
Constant
The number of values to sample. When repetitions are greater than 1, the source
must be an array.
Source
Variable
The Source is the name of the variable or variable array that is sampled when a
new maximum or minimum occurs for the preceding Maximum or Minimum
instruction.
DataType
Select the format in which to save the data
Entry Description
IEEE4 IEEE four-byte floating point
Constant
FP2 Campbell Scientific two-byte floating point
6-28