# cbDOutArray()

Sets the values of specified ports simultaneously.

## Function Prototype

C/C++

int cbDOutArray(int BoardNum, int LowPort, int HighPort, ULONG *DataArray)

Visual Basic

Function cbDOutArray(ByVal BoardNum&, ByVal PortType&, DataArray%) As Long

## Arguments

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99.

LowPort

The first port in the scan.

HighPort

The last port in the scan.

DataArray

Digital output data array.

## Returns

- Error code or 0 if no errors