9.2.3.2.1. qumada.instrument.custom_drivers.Harvard.Decadac
- class qumada.instrument.custom_drivers.Harvard.Decadac.DacChannel(parent, name, channel, min_val=-5, max_val=5)[source]
Bases:
InstrumentChannel,DacReaderA single DAC channel of the DECADAC
- class qumada.instrument.custom_drivers.Harvard.Decadac.DacSlot(parent, name, slot, min_val=-5, max_val=5)[source]
Bases:
InstrumentChannel,DacReaderA single DAC Slot of the DECADAC
- SLOT_MODE_DEFAULT = 'Coarse'
- class qumada.instrument.custom_drivers.Harvard.Decadac.Decadac(name, address, min_val=-10, max_val=10, **kwargs)[source]
Bases:
VisaInstrument,DacReaderThe qcodes driver for the Decadac.
Tested with a Decadec firmware revion number 14081 (Decadac 139).
The message strategy is the following: always keep the queue empty, so that self.visa_handle.ask(XXX) will return the answer to XXX and not some previous event.
Creates an instance of the Decadac instruments
- Parameters:
name (
str) – What this instrument is called locally.address (
str) – The address of the DAC. For a serial port this is ASRLn::INSTR where n is replaced with the address set in the VISA control panel. Baud rate and other serial parameters must also be set in the VISA control panel.min_val (
Union[float,int]) – The minimum value in volts that can be output by the DAC. This value should correspond to the DAC code 0.max_val (
Union[float,int]) – The maximum value in volts that can be output by the DAC. This value should correspond to the DAC code 65536.
- DAC_CHANNEL_CLASS
alias of
DacChannel
- __init__(name, address, min_val=-10, max_val=10, **kwargs)[source]
Creates an instance of the Decadac instruments
- Parameters:
name (
str) – What this instrument is called locally.address (
str) – The address of the DAC. For a serial port this is ASRLn::INSTR where n is replaced with the address set in the VISA control panel. Baud rate and other serial parameters must also be set in the VISA control panel.min_val (
Union[float,int]) – The minimum value in volts that can be output by the DAC. This value should correspond to the DAC code 0.max_val (
Union[float,int]) – The maximum value in volts that can be output by the DAC. This value should correspond to the DAC code 65536.
- connect_message(idn_param='IDN', begin_time=None)[source]
Print a connect message, taking into account the lack of a standard
*IDNon the Harvard DAC
- get_idn()[source]
Attempt to identify the dac. Since we don’t have standard SCPI commands,
*IDNwill do nothing on this DAC.- Returns:
A dict containing a serial and hardware version
- ramp_all(volt, ramp_rate)[source]
Ramp all dac channels to a specific voltage at the given rate simultaneously. Note that the ramps are not synchronized due to communications time and DAC ramps starting as soon as the commands are in.
- set_all(volt)[source]
Set all dac channels to a specific voltage. If channels are set to ramp then the ramps will occur in sequence, not simultaneously.