Function Runner

A labscript device to run custom functions before, after, or during (not yet implemented) the experiment in software time.

labscript_devices.FunctionRunner.blacs_tabs

labscript_devices.FunctionRunner.utils

Detailed Documentation

class labscript_devices.FunctionRunner.blacs_tabs.FunctionRunnerTab(notebook, settings, restart=False)[source]

Bases: blacs.device_base_class.DeviceTab

initialise_workers()[source]
restore_builtin_save_data(data)[source]

Restore builtin settings to be restored like whether the terminal is visible. Not to be overridden.

labscript_devices.FunctionRunner.utils.deserialise_function(name, source, args, kwargs, __name__=None, __file__='<string>')[source]

Deserialise a function that was serialised by serialise_function. Optional __name__ and __file__ arguments set those attributes in the namespace that the function will be defined.

labscript_devices.FunctionRunner.utils.serialise_function(function, *args, **kwargs)[source]

Serialise a function based on its source code, and serialise the additional args and kwargs that it will be called with. Raise an exception if the function signature does not begin with (shot_context, t) or if the additional args and kwargs are incompatible with the rest of the function signature