qcodes_contrib_drivers.drivers.Vaunix package

Submodules

qcodes_contrib_drivers.drivers.Vaunix.LDA module

This is the QCoDeS driver for Vaunix LDA digital attenuators. It requires the DLL that comes with the instrument, VNX_atten64.dll and/or VNX_atten.dll, for 64-bit Windows and 32-bit Windows, respectively. If the instrument has more than one physical channel, InstrumentChannel s are created for each one. If the instrument has only one physical channel, no channels are created and the parameters will be assigned to this instrument instead. The sweep profiles available in the API are not implemented.

Tested with 64-bit system and

  • LDA-133

  • LDA-802Q

qcodes_contrib_drivers.drivers.Vaunix.LDA.LDA

alias of Vaunix_LDA

class qcodes_contrib_drivers.drivers.Vaunix.LDA.LdaAttenuation(name: str, instrument: Vaunix_LDA | LdaChannel, **kwargs)[source]

Bases: LdaParameter

Attenuation of one channel in the LDA.

scaling = 0.05
class qcodes_contrib_drivers.drivers.Vaunix.LDA.LdaChannel(parent: Vaunix_LDA, channel_number: int, name: str)[source]

Bases: InstrumentChannel

Channel corresponding to one input-output pair of the LDA digital attenuator.

class qcodes_contrib_drivers.drivers.Vaunix.LDA.LdaParameter(name: str, instrument: Vaunix_LDA | LdaChannel, dll_get_function: Callable, dll_set_function: Callable, **kwargs)[source]

Bases: Parameter

__init__(name: str, instrument: Vaunix_LDA | LdaChannel, dll_get_function: Callable, dll_set_function: Callable, **kwargs)[source]

Parameter associated with one channel of the LDA.

Parameters:
  • name – parameter name

  • instrument – parent instrument, either LDA or LDA channel

  • dll_get_function – DLL function that gets the value

  • dll_get_function – DLL function that sets the value

get_raw() float[source]

Switch to this channel and return current value.

set_raw(value: float) None[source]

Switch to this channel and set to value .

scaling = 1.0
class qcodes_contrib_drivers.drivers.Vaunix.LDA.LdaWorkingFrequency(name: str, instrument: Vaunix_LDA | LdaChannel, **kwargs)[source]

Bases: LdaParameter

Working frequency of one channel of the LDA. Not supported on all models.

__init__(name: str, instrument: Vaunix_LDA | LdaChannel, **kwargs)[source]

Attenuation of one channel in the LDA.

Parameters:
  • name – parameter name

  • instrument – parent instrument, either LDA or LDA channel

classmethod get_validator(root_instrument: Vaunix_LDA) Numbers | None[source]

Returns validator for working frequency, if root_instrument supports it. Else returns None.

scaling = 100000
class qcodes_contrib_drivers.drivers.Vaunix.LDA.Vaunix_LDA(*args: Any, **kwargs: Any)[source]

Bases: Instrument

__init__(name: str, serial_number: int, dll_path: str | None = None, channel_names: Dict[int, str] | None = None, test_mode: bool = False, **kwargs)[source]

QCoDeS Instrument for Vaunix LDA digital attenuators.

Parameters:
  • name – Qcodes name for this instrument

  • serial_number – Serial number of the instrument, used to identify it.

  • dll_path – Look for the LDA DLLs in this directory. Sets the dll path as class attribute that is used for future instances for which dll_path is not given.

  • channel_names – Optionally assign these names to the channels.

  • test_mode – If True, simulates communication with an LDA-102 (serial:55102). Does not communicate with physical devices. For testing purposes.

close() None[source]

Irreversibly stop this instrument and free its resources.

Subclasses should override this if they have other specific resources to close.

get_idn() Dict[str, str | None][source]

Parse a standard VISA *IDN? response into an ID dict.

Even though this is the VISA standard, it applies to various other types as well, such as IPInstruments, so it is included here in the Instrument base class.

Override this if your instrument does not support *IDN? or returns a nonstandard IDN string. This string is supposed to be a comma-separated list of vendor, model, serial, and firmware, but semicolon and colon are also common separators so we accept them here as well.

Returns:

A dict containing vendor, model, serial, and firmware.

save_settings() None[source]

Save current settings to memory. Settings are automatically loaded during power on.

dll_path = None

Module contents