ad5686

class adi.ad5686.ad5686(uri='', device_name='', device_index=0, trigger=None)

Bases: tx_chan_comp

AD5686 DAC

compatible_parts = ['ad5686', 'ad5310r', 'ad5311r', 'ad5313r', 'ad5316r', 'ad5317r', 'ad5338r', 'ad5671r', 'ad5672r', 'ad5673r', 'ad5674', 'ad5674r', 'ad5675', 'ad5675r', 'ad5676', 'ad5676r', 'ad5677r', 'ad5679', 'ad5679r', 'ad5681r', 'ad5682r', 'ad5683', 'ad5683r', 'ad5684', 'ad5684r', 'ad5685r', 'ad5686r', 'ad5687', 'ad5687r', 'ad5689', 'ad5689r', 'ad5691r', 'ad5692r', 'ad5693', 'ad5693r', 'ad5694', 'ad5694r', 'ad5695r', 'ad5696', 'ad5696r', 'ad5697r']
class gain(value)

Bases: Enum

AD5686 Gain Mode Enumeration

DOUBLE = 2
NORMAL = 1
class powerdown_mode(value)

Bases: Enum

AD5686 Powerdown Mode Enumeration

PULLDOWN_100K = '100kohm_to_gnd'
PULLDOWN_1K = '1kohm_to_gnd'
TRISTATE = 'three_state'
set_gain(value: gain)
tx_voltage(voltage_np, channels=None)

Transmit voltage values through the DAC. The voltage is clipped to the valid range based on the current scale and resolution settings.

Args:
voltage_np:

numpy.array of voltage values, list of numpy.array or dict of channel index to numpy.array.

channels:

Optional channel index or list of channel indices to transmit to. If not specified, tx_enabled_channels will not be modified and the current configuration will be used.

class adi.ad5686.ad5686_channel(ctrl, channel_name)

Bases: attribute

AD5686 channel

property powerdown

AD5686 channel powerdown value

property powerdown_mode: powerdown_mode

AD5686 channel powerdown mode value

property powerdown_mode_available

AD5686 channel available powerdown modes

property raw

AD5686 channel raw value

property scale: Decimal

AD5686 channel scale(gain)

property scale_available

AD5686 channel available scale values

property voltage: float

AD5686 channel value in Volts