nanotune.drivers.dac_channel_server

class nanotune.drivers.dac_channel_server.DACChannelServer(parent, name, channel_id)[source]

Bases: DACChannelInterface

Channel class for DAC server.

Implements all methods of DACChannelInterface, which sends string messages to a server to set or get parameters.

supports_hardware_ramp() bool[source]

Should indicate whether the channel’s voltage can be ramped by using a hardware ramp.

name() str[source]

Name of the instrument

set_voltage(new_val)[source]

The channel’s voltage setting method.

get_voltage()[source]

The channel’s voltage getting method.

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_voltage_step() float[source]

Gets the step attribute of the voltage parameter.

set_voltage_step(new_step) None[source]

Sets the step attribute of the voltage parameter.

get_frequency() float[source]

Gets the channel’s frequency if the DAC supports AWG functionalities.

set_frequency(value) 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) None[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) 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_state: RelayState)[source]

Sets’s the channel’s relay state. E.g. float, or grounded.

ramp_voltage(target_voltage: float, ramp_rate: Optional[float] = None)[source]

Ramps the channel’s voltage to a target voltage at either a specified ramp rate or for example self.get_ramp_rate().

set_ramp_rate(value: float)[source]

Sets the channel’s voltage ramp rate.

get_ramp_rate() float[source]

Get channel’s voltage ramp rate

get_waveform() str[source]

Get channel’s waveform if AWG functionalities are supported.

set_waveform(waveform: str)[source]

Set channel’s waveform if AWG functionalities are supported.