labscript.labscript

Everything else including the start(), stop(), and wait() functions - all other classes are also imported here for backwards compatibility

Functions

add_time_marker(t, label[, color, verbose])

Add a marker for the specified time.

generate_code()

Compiles a shot and saves it to the shot file.

generate_connection_table(hdf5_file)

Generates the connection table for the compiled shot.

generate_wait_table(hdf5_file)

Generates the wait table for the shot and saves it to the shot file.

labscript_cleanup()

restores builtins and the labscript module to its state before labscript_init() was called

labscript_init(hdf5_filename[, ...])

Initialises labscript and prepares for compilation.

load_globals(hdf5_filename)

save_labscripts(hdf5_file)

Writes the script files for the compiled shot to the shot file.

save_time_markers(hdf5_file)

Save shot time markers to the shot file.

start()

Indicates the end of the connection table and the start of the experiment logic.

stop(t[, target_cycle_time, ...])

Indicate the end of an experiment at the given time, and initiate compilation of instructions, saving them to the HDF5 file.

trigger_all_pseudoclocks([t])

wait(label, t[, timeout])

Commands pseudoclocks to pause until resumed by an external trigger, or a timeout is reached.

write_device_properties(hdf5_file)

Writes device_properties for each device in compiled shot to shto file.

Classes

WaitMonitor(name, parent_device, connection, ...)