qcodes_contrib_drivers.drivers.Tektronix package

Submodules

qcodes_contrib_drivers.drivers.Tektronix.AFG3000 module

class qcodes_contrib_drivers.drivers.Tektronix.AFG3000.AFG3000(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

Qcodes driver for Tektronix AFG3000 series arbitrary function generator.

Not all instrument functionality is included here.

abort() None[source]
recall(location: int) None[source]
reset() None[source]
reset_edit_memory(points: int = 1000)[source]

Reset the contents of the edit memory (EMEM), and set its size to points.

Each point will be initialized with the value 8191, which corresponds to the voltage half-way between voltage_low and voltage_high.

save(location: int) None[source]
self_calibrate() None[source]
self_test() None[source]
synchronize_phase(src: int) None[source]
upload_waveform(waveform: Sequence[float], memory: int)[source]

Upload a waveform to the editable memory (EMEM), and then copy it to the USER1, USER2, USER3 or USER4 memory.

The waveform data should contain values in the range 0..1. Note that the actual voltage values that are output will depend on the values of the voltage_low1/2 and voltage_high1/2 parameters; 0 will be mapped to voltage_low and 1 to voltage_high.

Parameters:
  • waveform – sequence of points containing the waveform data, containing values from 0 to 1.

  • memory – The USER# memory where to to store the waveform, from 1 to 4.

wait() None[source]
class qcodes_contrib_drivers.drivers.Tektronix.AFG3000.AFG3252(*args: Any, **kwargs: Any)[source]

Bases: AFG3000

qcodes_contrib_drivers.drivers.Tektronix.AWG520 module

class qcodes_contrib_drivers.drivers.Tektronix.AWG520.Tektronix_AWG520(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

This is the python driver for the Tektronix AWG520 Arbitrary Waveform Generator

Work pending:

  1. Get All

  2. Remove test_send??

  3. Add docstrings

Work pending:

use inheritance for common use with 520, currently contains a lot of repetition

__init__(name, address, reset=False, clock=1000000000.0, numpoints=1000, **kw)[source]

Initializes the AWG520.

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

  • address (str) – GPIB address (Note: 520 cannot be controlled via ethernet)

  • reset (bool) – resets to default values, default=false

  • numpoints (int) – sets the number of datapoints

Output:

None

change_folder(dir)[source]
clear_waveforms()[source]

Clears the waveform on both channels.

Input:

None

Output:

None

delete_all_waveforms_from_list()[source]

for compatibillity with awg, is not relevant for AWG520 since it has no waveform list

force_logicjump()[source]

forces a jumplogic event (used as a conditional event during waveform executions)

note: jump_logic events&mode have to be set properly!

Ron

force_trigger()[source]

forces a trigger event (used for wait_trigger option in sequences)

Ron

get_all(update=True)[source]
get_current_folder_name()[source]
get_filenames()[source]
get_folder_contents()[source]
get_jumpmode(mode)[source]

get the jump mode for jump logic events

Ron

get_state()[source]
goto_root()[source]
load_and_set_sequence(wfs, rep, wait, goto, logic_jump, filename)[source]

Loads and sets the awg sequecne

make_directory(dir, root)[source]

makes a directory if root = True, new dir in main folder

resend_waveform(channel, w=[], m1=[], m2=[], clock=[])[source]

Resends the last sent waveform for the designated channel Overwrites only the parameters specifiedta

Input: (mandatory)

channel (int) : 1 or 2, the number of the designated channel

Input: (optional)

w (float[numpoints]) : waveform m1 (int[numpoints]) : marker1 m2 (int[numpoints]) : marker2 clock (int) : frequency

Output:

None

return_self()[source]
send_pattern(w, m1, m2, filename, clock)[source]

Sends a pattern file. similar to waveform except diff file extension number of poitns different. diff byte conversion See also: resend_waveform()

Input:

w (float[numpoints]) : waveform m1 (int[numpoints]) : marker1 m2 (int[numpoints]) : marker2 filename (str) : filename clock (int) : frequency (Hz)

Output:

None

send_sequence(wfs, rep, wait, goto, logic_jump, filename)[source]

Sends a sequence file (for the moment only for ch1)

Parameters:

wfs – list of filenames

Returs:

None

send_sequence2(wfs1, wfs2, rep, wait, goto, logic_jump, filename)[source]

Sends a sequence file

Parameters:
  • wfs1 – list of filenames for ch1 (all must end with .pat)

  • wfs2 – list of filenames for ch2 (all must end with .pat)

  • rep – list

  • wait – list

  • goto – list

  • logic_jump – list

  • filename – name of output file (must end with .seq)

Returns:

None

send_waveform(w, m1, m2, filename, clock)[source]

Sends a complete waveform. All parameters need to be specified. choose a file extension ‘wfm’ (must end with .pat) See also: resend_waveform()

Input:

w (float[numpoints]) : waveform m1 (int[numpoints]) : marker1 m2 (int[numpoints]) : marker2 filename (str) : filename clock (int) : frequency (Hz)

Output:

None

set_current_folder_name(file_path)[source]
set_jumpmode(mode)[source]

sets the jump mode for jump logic events, possibilities: LOGic,TABle,SOFTware give mode as string

note: jump_logic events&mode have to be set properly!

Ron

set_sequence(filename)[source]

loads a sequence file on all channels. Waveforms/patterns to be executed on respective channel must be defined inside the sequence file itself make sure to send all waveforms before setting a seq

set_setup_filename(fname, force_reload=False)[source]
start()[source]
stop()[source]

qcodes_contrib_drivers.drivers.Tektronix.FCA3100 module

class qcodes_contrib_drivers.drivers.Tektronix.FCA3100.CompleteTimeStatistics(name: str, instrument: FCA3100, **kwargs: Any)[source]

Bases: ParameterWithSetpoints

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

Parameter for a complete time statistics containing all measured switching times.

Parameters:
  • name – name of the complete time statistics

  • instrument – Instrument to which the complete time statistic is bound to.

get_raw() ndarray[source]

Gets the data from the instrument.

Returns:

Array of swithing times

Return type:

np.ndarray

class qcodes_contrib_drivers.drivers.Tektronix.FCA3100.FCA3100(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

This is the qcodes driver for the FCA3100 counter

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

Qcodes driver for the Textronix FCA3100 frequency counter.

Parameters:
  • name – Name of the instrument

  • address – Address of the instrument

  • terminator (optional) – Terminator character of the string reply. Defaults to “n”.

  • timeout (optional) – VISA timeout is set purposely to a long time to allow long measurements. Defaults to 10.

class qcodes_contrib_drivers.drivers.Tektronix.FCA3100.GeneratedSetPoints(numpointsparam, *args, **kwargs)[source]

Bases: Parameter

A parameter that generates a setpoint array from start, stop and num points parameters.

get_raw()[source]

get_raw is called to perform the actual data acquisition from the instrument. This method should either be overwritten to perform the desired operation or alternatively for Parameter a suitable method is automatically generated if get_cmd is supplied to the parameter constructor. The method is automatically wrapped to provide a get method on the parameter instance.

class qcodes_contrib_drivers.drivers.Tektronix.FCA3100.TimeStatistics(name: str, instrument: FCA3100, **kwargs: Any)[source]

Bases: MultiParameter

Returns the statistical values of a timing statistics.

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

Statistical values of a timing statistics.

Parameters:
  • name – name of the timing statistics

  • instrument – Instrument to which the timing statistic is bound to.

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

Gets data from the instrument

Returns:

Statistical values of the time statistic

Return type:

Tuple

qcodes_contrib_drivers.drivers.Tektronix.Keithley_2000_Scan module

class qcodes_contrib_drivers.drivers.Tektronix.Keithley_2000_Scan.Keithley_2000_Scan_Channel(dmm: Keithley_6500, channel: int, **kwargs)[source]

Bases: InstrumentChannel

This is the qcodes driver for a channel of the 2000-SCAN scanner card.

__init__(dmm: Keithley_6500, channel: int, **kwargs) None[source]

Initialize instance of scanner card Keithley 2000-SCAN :param dmm: Instance of digital multimeter Keithley6500 containing the scanner card :param channel: Channel number :param **kwargs: Keyword arguments to pass to __init__ function of InstrumentChannel class

qcodes_contrib_drivers.drivers.Tektronix.Keithley_2700 module

class qcodes_contrib_drivers.drivers.Tektronix.Keithley_2700.Keithley_2700(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

This is the qcodes driver for the Keithley_2700 Multimeter

Usage: Initialize with:

<name> =  = Keithley_2700(<name>, address='<GPIB address>', reset=<bool>,
    change_display=<bool>, change_autozero=<bool>)

Status: beta-version.

This driver will most likely work for multiple Keithley SourceMeters.

This driver does not contain all commands available, but only the ones most commonly used.

get_all()[source]

Reads all relevant parameters from instrument

Input:

None

Output:

None

reset()[source]

Resets instrument to default values

Input:

None

Output:

None

set_defaults()[source]

Set to driver defaults: Output=data only Mode=Volt:DC Digits=7 Trigger=Continous Range=10 V NPLC=1 Averaging=off

set_mode(mode)[source]

Set the mode to the specified value

Input:

mode (string) : mode to be set. Choose from self._modes

Output:

None

set_mode_volt_dc()[source]

Set mode to DC Voltage

Input:

None

Output:

None

qcodes_contrib_drivers.drivers.Tektronix.Keithley_2700.bool_to_str(val)[source]

Function to convert boolean to ‘ON’ or ‘OFF’

qcodes_contrib_drivers.drivers.Tektronix.Keithley_2700.parsebool(v)[source]
qcodes_contrib_drivers.drivers.Tektronix.Keithley_2700.parseint(v)[source]
qcodes_contrib_drivers.drivers.Tektronix.Keithley_2700.parsestr(v)[source]

qcodes_contrib_drivers.drivers.Tektronix.Keithley_6430 module

class qcodes_contrib_drivers.drivers.Tektronix.Keithley_6430.Keithley_6430(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

This is the Qcodes driver for the Keithley 6430 SMU.

Parameters:
  • name – The name used internally by QCoDeS

  • address – Network address or alias of the instrument

  • terminator – Termination character in VISA communication

  • reset – resets to default values

init() None[source]

Go into the arm/trigger layers from the idle mode.

read() Tuple[float, float, float][source]

Arm, trigger, and readout. Note that the values may not be valid if sense mode doesn’t include them. :returns: tuple of (voltage (V), current (A), resistance (Ohm))

reset() None[source]

Resets instrument to default values

set_trigger_immediate() None[source]

Set trigger and arm modes to immediate.

qcodes_contrib_drivers.drivers.Tektronix.Keithley_6500 module

class qcodes_contrib_drivers.drivers.Tektronix.Keithley_6500.Keithley_6500(*args: Any, **kwargs: Any)[source]

Bases: VisaInstrument

This is the qcodes driver for a Keithley DMM6500 digital multimeter.

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

Initialize instance of digital multimeter Keithley6500. Check if scanner card is inserted. :param name: Name of instrument :param address: Address of instrument :param terminator: Termination character for SCPI commands :param **kwargs: Keyword arguments to pass to __init__ function of VisaInstrument class

class qcodes_contrib_drivers.drivers.Tektronix.Keithley_6500.Keithley_Sense(parent: VisaInstrument, name: str, channel: str)[source]

Bases: InstrumentChannel

This is the class for a measurement channel, i.e. the quantity to be measured (e.g. resistance, voltage).

__init__(parent: VisaInstrument, name: str, channel: str) None[source]
Parameters:
  • parent – VisaInstrument instance of the Keithley Digital Multimeter

  • name – Channel name (e.g. ‘CH1’)

  • channel – Name of the quantity to measure (e.g. ‘VOLT’ for DC voltage measurement)

Module contents