Campbell Scientific CR5000 Measurement and Control Module User Manual
Page 149

Section 7. Measurement Instructions
7-23
PulseCount (Dest, Reps, PChan, PConfig, POption, Mult, Offset)
Sensor
Pulse Channel
Ground
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.
PChan
Constant
The number of the pulse channel (1 or 2) for the measurement.
PConfig
A code specifying the type of pulse input to measure.
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 is used to measure counts or frequency on one of
the pulse channels.
The PulseCount instruction can not be used in a Slow Sequence
scan.
NOTE