Specifications
Section 7. Measurement Instructions
Parameter
& Data Type
Enter
Dest
Variable or
Array
The Variable in which to store the results of the instruction. When Reps are used the
results are stored in an array with the variable name. An array must be dimensioned
to have elements for all the Reps.
Reps
Constant
The number of repetitions for the measurement or instruction. Measurements are
made on consecutive channels.
PChan
Constant
The number of the pulse channel for the measurement.
Code Description
1 Pulse Channel 1
2 Pulse Channel 2
3 Pulse Channel 3
4 Pulse Channel 4
11 Control Port 1
12 Control Port 2
13 Control Port 3
14 Control Port 4
15 Control Port 5
16 Control Port 6
17 Control Port 7
18 Control Port 8
PConfig
A code specifying the type of pulse input to measure. Control ports can be used to
measure high frequency or switch closure configurations, but not low level AC.
Constant
Code Input Configuration
0 High Frequency
1 Low Level AC
2 Switch Closure
POption
Constant
A code that determines if the raw result (multiplier = 1, offset = 0) is returned as
counts or frequency. The running average can be used to smooth out readings when
a low frequency relative to the scan rate causes large fluctuations in the measured
frequency from scan to another.
Code Result
0 Counts
1 Frequency (Hz) counts/scan interval in seconds
>1 Running average of frequency. The number entered is the time
period over which the frequency is averaged in milliseconds.
Mult, Offset
Constant,
Variable,
Array, or
Expression
A multiplier and offset by which to scale the raw results of the measurement. See
the measurement description for the units of the raw result; a multiplier of one and an
offset of 0 are necessary to output in the raw units. For example, the TCDiff
instruction measures a thermocouple and outputs temperature in degrees C. A
multiplier of 1.8 and an offset of 32 will convert the temperature to degrees F.
The PulseCount instruction can not be used in a Slow Sequence
scan and must NOT be placed inside a conditional statement
when running in pipeline mode.
NOTE
7-21