Array Registers

class nifpga.session._ArrayRegister(session, nifpga, bitfile_register, base_address_on_device)[source]

Bases: nifpga.session._Register

_ArryRegister is a private class that inherits from _Register with additional interfaces unique to the logic of array controls and indicators.

__len__()[source]

Returns the length of the array.

Returns:The number of elements in the array.
Return type:(int)
datatype

Property of a register that returns the datatype of the control or indicator.

name

Property of a register that returns the name of the control or indicator.

read()[source]

Reads the entire array from the control or indicator.

Returns:The data in the register in a python list.
Return type:(list)
write(data)[source]

Writes the specified array of data to the control or indicator

Parameters:
  • data (list) – The data “array” to be written into the registers
  • into a python list. (wrapped) –