# cbCIn32() function

Reads the current count from a counter, and returns it as a 32 bit integer.

## Function Prototype

C/C++:

int cbCIn32(int BoardNum, int CounterNum, unsigned long *Count)

Visual Basic:

Function cbCIn32(ByVal BoardNum&, ByVal CounterNum&, CBCount&) As Long

## Arguments

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99. The specified board must have a counter.

CounterNum

The counter to read the current count from. Valid values are dependent on the device and the number of counters available on the device. See product-specific information in the Universal Library User's Guide.

Count

Current count value from selected counter is returned here.

## Returns

- Error code or 0 if no errors

## Notes

- cbCIn() vs cbCIn32() vs cbCIn64()
- Although the cbCIn(), cbCIn32(), and cbCIn64() functions perform the same operation, cbCIn32() is the preferred method to use in most situations.
- The only difference between the three is that cbCIn() returns a 16-bit count value, cbCIn32() returns a 32-bit value, and cbCIn64() returns a 64-bit value. Both cbCIn() and cbCIn32() can be used, but cbCIn64() is required whenever you need to read count values greater than 32-bits (counts >4,294,967,295) or the upper (more significant) bits will be truncated.