# DInArray()

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

Member of the MccBoard class.

## Function Prototype

VB .NET

Returns data in an array of integer values.

Public Function DInArray(ByVal lowPort As MccDaq.DigitalPortType, ByVal highPort As MccDaq.DigitalPortType, ByRef dataArray As Integer) As MccDaq.ErrorInfo

Returns data in an array of System.UInt32 values.

Public Function DInArray(ByVal lowPort As MccDaq.DigitalPortType, ByVal highPort As MccDaq.DigitalPortType, ByRef dataArray As System.UInt32()) As MccDaq.ErrorInfo

C# .NET

Returns data in an array of integer values.

public MccDaq.ErrorInfo DInArray(MccDaq.DigitalPortType lowPort, MccDaq.DigitalPortType highPort, out int[] dataArray)

Returns data in an array of System.UInt32 values.

public MccDaq.ErrorInfo DInArray(MccDaq.DigitalPortType lowPort, MccDaq.DigitalPortType highPort, out uint[] dataArray)

## Parameters

lowPort

The first digital I/O port type to read.

All firstPort settings are DigitalPortType enumerated constants.

highPort

The last digital I/O port tyoe to read.

All lastPort settings are DigitalPortType enumerated constants.

dataArray

Digital input data array.

## Returns

- An ErrorInfo object that indicates the status of the operation.
- dataValue – Array of digital input values.