Chapter 2 Function Reference — ICTR_Read
NI-DAQ FRM for PC Compatibles 2-248
©
National Instruments Corporation
ICTR_Read
Format
status = ICTR_Read (deviceNumber, ctr, count)
Purpose
Reads the current contents of the selected counter without disturbing the counting process and
returns the count.
Parameters
Input
Output
Parameter Discussion
ctr is the counter number.
Range: 0 through 2.
count returns the current count of the specified counter while the counter is counting down.
count can be between zero and 65,535 when ctr is configured in binary mode (the default).
count can be between zero and 9,999 if the last call to
ICTR_Setup configured ctr in
BCD counting mode.
Note
C Programmers—count is a pass-by-reference parameter.
Name Type Description
deviceNumber i16 assigned by configuration utility
ctr i16 counter number
Name Type Description
count u16 current count