Tektronix Oscilloscope

A device for controlling Tektronix oscilloscopes using the standard VISA interface.

labscript_devices.TekScope.labscript_devices

labscript_devices.TekScope.blacs_tabs

labscript_devices.TekScope.blacs_workers

labscript_devices.TekScope.TekScope

Installation

This wrapper requires PyVISA and a compatible VISA installation. Free versions are provided by NI and Keysight (NI preferred if already using NI DAQs).

Detailed Documentation

class labscript_devices.TekScope.labscript_devices.TekScope(name, addr, termination='\n', preamble_string='WFMP', timeout=5, int16=False, **kwargs)[source]

Bases: labscript.labscript.Device

A labscript_device for Tektronix oscilloscopes using a visa interface. connection_table_properties (set once) termination: character signalling end of response preamble_string: base command for waveform preamble (‘WFMO’ or ‘WFMP’)

device_properties (set per shot) timeout: in seconds for response to queries over visa interface int16: download waveform pts as 16 bit integers (returns 1/2 as many pts)

description = 'Tekstronix oscilloscope'
generate_code(hdf5_file)[source]
class labscript_devices.TekScope.blacs_tabs.TekScopeTab(notebook, settings, restart=False)[source]

Bases: blacs.device_base_class.DeviceTab

initialise_GUI()[source]
initialise_workers()[source]
class labscript_devices.TekScope.blacs_workers.TekScopeWorker(*args, **kwargs)[source]

Bases: blacs.tab_base_classes.Worker

abort()[source]
abort_buffered()[source]
abort_transition_to_buffered()[source]
init()[source]
program_manual(values)[source]
transition_to_buffered(device_name, h5file, front_panel_values, refresh)[source]
transition_to_manual()[source]
class labscript_devices.TekScope.TekScope.TekScope(addr='USB?*::INSTR', timeout=1, termination='\n')[source]

Bases: object

channels(all=True)[source]

Return a dictionary of the channels supported by this scope and whether they are currently displayed. Includes REF and MATH channels if applicable. If “all” is False, only visible channels are returned

close()[source]
get_acquire_state()[source]
get_screenshot(verbose=False)[source]
lock(verbose=False)[source]
save_screenshot(filepath, verbose=False)[source]
set_acquire_state(running=True)[source]
set_date_time(verbose=False)[source]
unlock(verbose=False)[source]
waveform(channel='CH1', preamble_string='WFMO', int16=False)[source]

Download the waveform of the specified channel from the oscilloscope. All acquired points are downloaded, as set by the ‘Record length’ setting in the ‘Acquisition’ menu. A dictionary of waveform formatting parameters is returned in addition to the times and values.