Dummy Intermediate Device

Overview

This file represents a dummy labscript device for purposes of testing BLACS and labscript. The device is a Intermediate Device, and can be attached to a pseudoclock in labscript in order to test the pseudoclock behaviour without needing a real Intermediate Device.

You can attach an arbitrary number of outputs to this device, however we currently only support outputs of type AnalogOut and DigitalOut. I would be easy to extend this is anyone needed further functionality.

Usage

from labscript import *

from labscript_devices.DummyPseudoclock.labscript_devices import DummyPseudoclock
from labscript_devices.DummyIntermediateDevice import DummyIntermediateDevice

DummyPseudoclock(name='dummy_clock',BLACS_connection='dummy')
DummyIntermediateDevice(name='dummy_device',BLACS_connection='dummy2',
                        parent_device=dummy_clock.clockline)

DigitalOut(name='do1',parent_device=dummy_device,connection='dummy_do1')
DigitalOut(name='do2',parent_device=dummy_device,connection='dummy_do2')

start()
stop(1)

Detailed Documentation

class labscript_devices.DummyIntermediateDevice.DummyIntermediateDevice(name, parent_device, BLACS_connection='dummy_connection', **kwargs)[source]

Bases: labscript.labscript.IntermediateDevice

description = 'Dummy IntermediateDevice'
clock_limit = 1000000.0
allowed_children = [<class 'labscript.labscript.DigitalOut'>, <class 'labscript.labscript.AnalogOut'>]
generate_code(hdf5_file)[source]
class labscript_devices.DummyIntermediateDevice.DummyIntermediateDeviceTab(notebook, settings, restart=False)[source]

Bases: blacs.device_base_class.DeviceTab

initialise_GUI()[source]
labscript_device_class_name = 'DummyIntermediateDevice'
class labscript_devices.DummyIntermediateDevice.DummyIntermediateDeviceWorker(*args, **kwargs)[source]

Bases: blacs.tab_base_classes.Worker

init()[source]
program_manual(front_panel_values)[source]
transition_to_buffered(device_name, h5file, initial_values, fresh)[source]
transition_to_manual(abort=False)[source]
abort_transition_to_buffered()[source]
abort_buffered()[source]
shutdown()[source]