Writes a byte to a digital output port.
Most configurable ports require configuration before writing. Check the board-specific information in the Universal Library User's Guide to determine if the port should be configured for your hardware. When configurable, use DConfigPort() to configure a port for output.
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 DOut(ByVal portType As MccDaq.DigitalPortType, ByVal dataValue As Short) As MccDaq.ErrorInfo
Public Function DOut(ByVal portType As MccDaq.DigitalPortType, ByVal dataValue As System.UInt16) As MccDaq.ErrorInfo
C# .NET
public MccDaq.ErrorInfo DOut(MccDaq.DigitalPortType portType, ushort dataValue)
public MccDaq.ErrorInfo DOut(MccDaq.DigitalPortType portType, short dataValue)
portType
There are three general types of digital ports – ports that are programmable as input or output, ports that are fixed input or output, and ports for which each bit may be programmed as input or output. For the first of these types, set portType to FirstPortA. For the latter two types, set portType to AuxPort. For boards with both types of digital ports, set portType to either FirstPortA or AuxPort, depending on which digital port you wish to write to. All portType settings are MccDaq.DigitalPortType enumerated constants.
dataValue
Digital value to write.