Chapter 2 Function Reference — CTR_Restart
©
National Instruments Corporation 2-107 NI-DAQ FRM for PC Compatibles
CTR_Restart
Format
status = CTR_Restart (deviceNumber, ctr)
Purpose
Restarts operation of the specified counter.
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.
Using This Function
You can use CTR_Restart after a CTR_Stop operation to allow the suspended counter to
resume. If the specified counter was never set up for an operation, CTR_Restart returns an
error.
You also can use CTR_Restart after a CTR_Pulse operation to generate additional pulses.
CTR_Pulse generates the first pulse. In this case, do not call CTR_Restart until after the
previous pulse has completed.
Name Type Description
deviceNumber i16 assigned by configuration utility
ctr i16 counter number