# d_in_array()

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

## Prototype

d_in_array(board_num, low_port, high_port, data_array=None)

## Parameters

board_num (int)

The number associated with the board when it was installed with InstaCal or created with create_daq_device().

low_port (DigitalPortType)

The first port in the scan.

high_port (DigitalPortType)

The last port in the scan.

data_array (POINTER(c_uint), optional)

Pointer to the digital input data array. If this parameter is omitted (or None), the array will be allocated by this function. Reusing the array by passing it in as the parameter may be useful as an optimization to prevent excessive allocations, saving memory and CPU time.

## Returns

- POINTER (c_uint)