nanotune.drivers.mock_dac
- class nanotune.drivers.mock_dac.MockDACChannel(parent, name, channel_id)[source]
Bases:
DACChannelInterface
Channel of a mock DAC for nanotune. It implements all methods of DACChannelInterface to be compatible with nanotunes requirements.
- property gettable
- property settable
- property supports_hardware_ramp: bool
Should indicate whether the channel’s voltage can be ramped by using a hardware ramp.
- set_voltage_limit(new_limits: Tuple[float, float]) None [source]
Sets the safe min and max voltages of the channel.
- get_voltage_limit() Tuple[float, float] [source]
Gets the safe min and max voltages of the channel.
- get_frequency() float [source]
Gets the channel’s frequency if the DAC supports AWG functionalities.
- set_frequency(value: float) None [source]
Sets the channel’s frequency if the DAC supports AWG functionalities.
- get_offset() float [source]
Gets the channel’s waveform offset if the DAC supports AWG functionalities.
- set_offset(new_offset: float)[source]
Sets the channel’s waveform offset if the DAC supports AWG functionalities.
- get_amplitude() float [source]
Gets the channel’s waveform amplitude if the DAC supports AWG functionalities.
- set_amplitude(new_amplitude: float) None [source]
Sets the channel’s waveform amplitude if the DAC supports AWG functionalities.
- get_relay_state() RelayState [source]
Gets’s the channel’s relay state. E.g. float, or grounded.
- set_relay_state(new_relay_state: RelayState) None [source]
Sets’s the channel’s relay state. E.g. float, or grounded.