Reads the current count from a counter channel.
c_in(board_num, counter_num)
board_num (int)
The number associated with the board when it was installed with InstaCal or created with create_daq_device().
counter_num (int)
The counter to read the current count from. Valid values are in the range of 0 to 20, depending on the device and the number of counters available on the device; refer to board-specific information.
Although c_in(), c_in_32(), and c_in_64() perform the same operation, c_in32() is the preferred method to use in most situations.
The only difference between the three is that c_in() returns a 16-bit count value, c_in_32() returns a 32-bit value, and c_in_64() returns a 64-bit value. Both c_in() and c_in_32() can be used, but c_in_64() 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.