Chapter 2 Function Reference — CTR_Simul_Op
NI-DAQ FRM for PC Compatibles 2-108
©
National Instruments Corporation
CTR_Simul_Op
Format
status = CTR_Simul_Op (deviceNumber, numCtrs, ctrList, mode)
Purpose
Configures and simultaneously starts and stops multiple counters.
Parameters
Input
Parameter Discussion
numCtrs is the number of counters to which the operation is performed.
Range: 1 through 10.
ctrList is an array of integers of size numCtrs containing the counter numbers of the counters
for performing the operation.
Range: 1, 2, or 5 for an MIO device except the E Series devices.
1 through 10 for a PC-TIO-10.
Note
By default, counters are not reserved for simultaneous operations.
mode is the operating mode to be performed by this call.
0: Cancel reservation of counters specified in ctrList.
1: Reserve counters specified in ctrList for simultaneous start, restart, stop, or count
latch operation.
2: Perform a simultaneous start/restart on the counters specified in ctrList.
3: Perform a simultaneous stop on the counters specified in ctrList.
4: Perform a simultaneous count latch on the counters specified in ctrlist. The
counters must have been started by a previous call to
CTR_EvCount. The counts
can be retrieved one at a time by subsequent calls to
CTR_EvRead.
Name Type Description
deviceNumber i16 assigned by configuration utility
numCtrs i16 number of counters to operate
ctrList [i16] array of counter numbers
mode i16 operating mode