# DOut32()

Writes a byte to a 32-bit 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.

## Function Prototype

VB .NET

Public Function DOut32(portType As MccDaq.DigitalPortType, dataValue As UInteger) As MccDaq.ErrorInfo

Public Function DOut32(portType As MccDaq.DigitalPortType, dataValue As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo DOut32(MccDaq.DigitalPortType portType, uint dataValue)

public MccDaq.ErrorInfo DOut32(MccDaq.DigitalPortType portType, int dataValue)

## Parameters

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.

## Returns

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

## Notes

- 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 example programs and the board-specific information in the Universal Library User's Guide for clarification of valid portType values.