Chapter 2 Function Reference — ICTR_Read
©
National Instruments Corporation 2-249 NI-DAQ FRM for PC Compatibles
Note BASIC Programmers—NI-DAQ returns count as a 16-bit unsigned number. In
BASIC, integer variables are represented by a 16-bit two’s complement system.
Thus, values grater than 32,767 are incorrectly treated as negative numbers.
You can avoid this problem by using a long number as shown below:
if count%, o then
lcount& = count% + 65,536
else
lcount& = count%
end if