# cbDInArray()

Reads a range of digital ports simultaneously, and returns the data in an array.

## Function Prototype

C/C++

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

Visual Basic

Function cbDInArray(ByVal BoardNum&, ByVal LowPort&, ByVal HighPort&, 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 input data array.

## Returns

- Error code or 0 if no errors
- DataArray – Array of digital values to read.