# CIn32()

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

Member of the MccBoard class.

## Function Prototype

VB .NET

Public Function CIn32(ByVal counterNum As Integer, ByRef count As Integer) As MccDaq.ErrorInfo

Public Function CIn32(ByVal counterNum As Integer, ByRef count As System.UInt32) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo CIn32(int counterNum, out uint count)

public MccDaq.ErrorInfo CIn32(int counterNum, out int count)

## Parameters

counterNum

The counter to read current count from. Valid values are 1 to n, where n is the number of counters on the board.

count

Current count value from selected counter.

## Returns

- An ErrorInfo object that indicates the status of the operation.

## Notes

- CIn() vs CIn32() vs CIn64()
- Although the CIn(), CIn32(), and CIn64() methods perform the same operation, CIn32() is the preferred method to use.
- The only difference between the three is that CIn() returns a 16-bit count value, CIn32() returns a 32-bit value, and CIn64() returns a 64-bit value. Both CIn() and CIn32() can be used, but CIn64() 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.