Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-35 LabWindows/CVI Standard Libraries
Parameters
Input device short integer Assigned by configuration utility.
counter string The counter to be used for the counting
operation.
pulseDelay double The desired duration of the delay (phase 1)
before the pulse.
pulseWidth double The desired duration of the pulse (phase 2)
after the delay.
timebaseSource unsigned short
integer The signal that causes the counter to count.
gateMode unsigned short
integer Specifies how the signal on the counter's
GATE pin is used.
pulsePolarity unsigned short
integer The polarity of phase 2 of each cycle.
Output actualDelay double The achieved delay based on the resolution
and range of your hardware.
actualPulseWidth double The achieved pulse width based on the
resolution and range of your hardware.
taskID unsigned long
integer The reference number assigned to this
operation. You pass taskID to
CounterStart, CounterRead, and
CounterStop.
Return Value
error short integer Refer to error codes in Table 10-5.
Parameter Discussion
counter is the counter to be used for the counting operation. The valid counters are shown in
Table 10-2, which is found in the Valid Counters for the Counter/Timer Functions subsection of
the Easy I/O for DAQ Library Function Overview section of this chapter.
pulseDelay is the desired duration of the delay (phase 1) before the pulse. This parameter accepts
the following attributes:
The unit is seconds if timebaseSource is USE_INTERNAL_TIMEBASE and cycles if
timebaseSource is USE_COUNTER_SOURCE.
If pulseDelay = 0.0 and timebaseSource is internal, the function selects a minimum delay of
three cycles of the timebase used.