The analogdevices_ad5667 module

Autogenerated API documentation for analogdevices_ad5667

Driver for the Analog Devices AD5667 2 channel analog output DAC

Implemented from the manual located here and the examples located here.

class PyExpLabSys.drivers.analogdevices_ad5667.AD5667(address=14)[source]

Bases: object

Driver for the Analog Devices AD5667 2 channel analog output DAC

__init__(address=14)[source]

Initialize object properties

enable_onbaord_reference()[source]

Enable on-board reference voltage, if no voltage reference is externally given, the onboard must be enabled.

write_to_and_update_dac(dac, value)[source]

Set a voltage value on the DAC

Parameters:
  • dac (str) – The name of the DAC to set. ‘A’, ‘B’ or ‘both’
  • value (float) – A float between 0.0 and 5.0
Raises:

ValueError – On bad DAC name or bad value

set_channel_A(voltage)[source]

Set a voltage of channel A

Parameters:value (float) – A float between 0.0 and 5.0

See write_to_and_update_dac() for details on exceptions

set_channel_B(voltage)[source]

Set a voltage of channel B

Parameters:value (float) – A float between 0.0 and 5.0

See write_to_and_update_dac() for details

set_both(voltage)[source]

Set a voltage of both channels

Parameters:value (float) – A float between 0.0 and 5.0

See write_to_and_update_dac() for details

PyExpLabSys.drivers.analogdevices_ad5667.module_test()[source]

Simple module test