Chapter 2 Function Reference — CTR_Reset
NI-DAQ FRM for PC Compatibles 2-106
©
National Instruments Corporation
CTR_Reset
Format
status = CTR_Reset (deviceNumber, ctr, output)
Purpose
Turns off the specified counter operation and places the counter output drivers in the selected
output state.
Parameters
Input
Parameter Discussion
ctr is the counter number.
Range: 1, 2, or 5 for an MIO device except the E Series devices.
1 through 10 for a PC-TIO-10.
output indicates the output state of the counter OUT signal driver. output can be between 0
and 2 and represents three choices of output state.
0: Set OUT signal driver to high-impedance state.
1: Set OUT signal driver to low-logic state.
2: Set OUT signal driver to high-logic state.
Using This Function
CTR_Reset causes the specified counter to terminate its current operation, clears the counter
mode, and places the counter OUT driver in the specified output state. When a counter has
performed an operation (a square wave, for example), you must use
CTR_Reset to stop and
clear the counter before setting it up for any subsequent operation of a different type (event
counting, for example). You also can use
CTR_Reset to change the output state of an idle
counter.
Note
The output line of counter 1 on the MIO16/16D, and counters 1, 2, and 5 on the
AT-MIO-16F-5, AT-MIO-64F-5, and AT-MIO-16X are pulled up to +5 V while in
the high-impedance state.
Name Type Description
deviceNumber i16 assigned by configuration utility
ctr i16 counter number
output i16 output state of the counter OUT signal driver