Reads a 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.
VB .NET
Public Function DIn(ByVal portType As MccDaq.DigitalPortType, ByRef dataValue As Short) As MccDaq.ErrorInfo
Public Function DIn(ByVal portType As MccDaq.DigitalPortType, ByRef dataValue As System.UInt16) As MccDaq.ErrorInfo
C# .NET
public MccDaq.ErrorInfo DIn(MccDaq.DigitalPortType portType, out ushort dataValue)
public MccDaq.ErrorInfo DIn(MccDaq.DigitalPortType portType, out short dataValue)
Specifies which digital I/O port to read. Some hardware does allow readback of the state of the output using this method; refer to board-specific information in the Universal Library User's Guide.
dataValue
The digital input value.