qcodes_contrib_drivers.drivers.CopperMountain package

Submodules

qcodes_contrib_drivers.drivers.CopperMountain.M5180 module

class qcodes_contrib_drivers.drivers.CopperMountain.M5180.FrequencySweepMagPhase(name: str, start: float, stop: float, npts: int, instrument: M5180, **kwargs: Any)[source]

Bases: MultiParameter

Sweep that returns magnitude and phase.

__init__(name: str, start: float, stop: float, npts: int, instrument: M5180, **kwargs: Any) None[source]

Linear frequency sweep that returns magnitude and phase for a single trace.

Parameters:
  • name (str) – Name of the linear frequency sweep

  • start (float) – Start frequency of linear sweep

  • stop (float) – Stop frequency of linear sweep

  • npts (int) – Number of points of linear sweep

  • instrument – Instrument to which sweep is bound to.

get_raw() Tuple[Any, Any][source]

Gets data from instrument

Returns:

magnitude, phase

Return type:

Tuple[ParamRawDataType, …]

set_sweep(start: float, stop: float, npts: int) None[source]

Updates the setpoints and shapes based on start, stop and npts.

Parameters:
  • start (float) – start frequency

  • stop (float) – stop frequency

  • npts (int) – number of points

class qcodes_contrib_drivers.drivers.CopperMountain.M5180.M5180(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

This is the QCoDeS python driver for the VNA M5180 from Copper Mountain

__init__(name: str, address: str, terminator: str = '\n', timeout: int = 100000, **kwargs)[source]

QCoDeS driver for the VNA M5180 from Copper Mountain. This driver only uses one channel.

Parameters:
  • name (str) – Name of the instrument.

  • address (str) – Address of the instrument.

  • terminator (str) – Terminator character of the string reply. Optional, default "\n"

  • timeout (int) – VISA timeout is set purposely to a long time to allow long spectrum measurement. Optional, default 100000

get_s() Tuple[ndarray, ndarray, ndarray, ndarray, ndarray, ndarray, ndarray, ndarray, ndarray][source]

Return all S parameters as magnitude in dB and phase in rad.

Returns:

frequency [GHz], s11 magnitude [dB], s11 phase [rad], s12 magnitude [dB], s12 phase [rad], s21 magnitude [dB], s21 phase [rad], s22 magnitude [dB], s22 phase [rad]

Return type:

Tuple[np.ndarray]

reset_averages() None[source]

Resets average count to 0

update_lin_traces() None[source]

Updates start, stop and npts of all trace parameters so that the setpoints and shape are updated for the sweep.

class qcodes_contrib_drivers.drivers.CopperMountain.M5180.PointIQ(name: str, instrument: M5180, **kwargs: Any)[source]

Bases: MultiParameter

Returns the average Sxx of a frequency sweep, in terms of I and Q. Work around for a CW mode where only one point is read. npts=2 and stop = start + 1 (in Hz) is required.

__init__(name: str, instrument: M5180, **kwargs: Any) None[source]

I and Q measurement of a single point at start frequency.

Parameters:
  • name (str) – Name of point measurement

  • instrument – Instrument to which parameter is bound to.

get_raw() Tuple[Any, Any][source]

Gets data from instrument

Returns:

I, Q

Return type:

Tuple[ParamRawDataType, …]

class qcodes_contrib_drivers.drivers.CopperMountain.M5180.PointMagPhase(name: str, instrument: M5180, **kwargs: Any)[source]

Bases: MultiParameter

Returns the average Sxx of a frequency sweep. Work around for a CW mode where only one point is read. npts=2 and stop = start + 1 (in Hz) is required.

__init__(name: str, instrument: M5180, **kwargs: Any) None[source]

Magnitude and phase measurement of a single point at start frequency.

Parameters:
  • name (str) – Name of point measurement

  • instrument – Instrument to which parameter is bound to.

get_raw() Tuple[Any, Any][source]

Gets data from instrument

Returns:

magnitude, phase

Return type:

Tuple[ParamRawDataType, …]

qcodes_contrib_drivers.drivers.CopperMountain.S5048 module

exception qcodes_contrib_drivers.drivers.CopperMountain.S5048.TraceNotReady[source]

Bases: Exception

class qcodes_contrib_drivers.drivers.CopperMountain.S5048.CMTS5048(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

This is the QCoDeS driver for the S5048 Network Analyzer

invalidate_trace(cmd: str, value: float | int | str) None[source]

Wrapper for set_cmds that make the trace not ready

reset() None[source]

Resets the instrument to factory default state

run_N_times(N: int) None[source]

Run N sweeps and then hold. We wait for a response before returning

run_continously() None[source]

Set the instrument in run continously mode

startup() None[source]
class qcodes_contrib_drivers.drivers.CopperMountain.S5048.CMTS5048Trace(name, instrument)[source]

Bases: ArrayParameter

Class to hold a the trace from the S5048 network analyzer

Although the trace can have two values per frequency, this class only returns the first value

get_raw()[source]

Return the trace

prepare_trace()[source]

Update setpoints, units and labels

qcodes_contrib_drivers.drivers.CopperMountain.S5048.CMTIntParser(value: str) int[source]

Small custom parser for ints

Parameters:

value – the VISA return string using exponential notation

Module contents