# DIn32()

Reads a 32-bit digital input port.

Note that for some port types, such as 8255 ports, if the port is configured for DigtalOut, this method will provide readback of the last output value.

Refer to the "Digital Input/Output Hardware" topic for additional details on using the UL digital I/O methods.

Member of the MccBoard class.

## Function Prototype

VB .NET

Public Function DIn32(ByVal portType As MccDaq.DigitalPortType, ByRef dataValue As UInteger) As MccDaq.ErrorInfo

Public Function DIn32(ByVal portType As MccDaq.DigitalPortType, ByRef dataValue As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo DIn32(MccDaq.DigitalPortType portType, out uint dataValue)

public MccDaq.ErrorInfo DIn32(MccDaq.DigitalPortType portType, out int dataValue)

## Parameters

portType

Specifies which digital I/O port to read. All portType settings are MccDaq.DigitalPortType enumerated constants.
Some hardware allows readback of the output state using this method; refer to board-specific information in the Universal Library User's Guide.

dataValue

The digital input value.

## Returns

- An ErrorInfo object that indicates the status of the operation.
- dataValue – the digital input value.

## Notes

- Port size can vary. The return value is 0 to 232 –1 for a 32-bit port, 0 to 224 –1 for a 24-bit port, 0 to 65,535 for a 16-bit port, 0 to 255 for an 8-bit port, and 0 to 15 for a 4-bit port.
- Refer to the board-specific information in the Universal Library User's Guide for clarification of valid portType values.