labscript.labscript.add_time_marker

add_time_marker(t, label, color=None, verbose=False)[source]

Add a marker for the specified time. These markers are saved in the HDF5 file. This allows one to label that time with a string label, and a color that applications may use to represent this part of the experiment. The color may be specified as an RGB tuple, or a string of the color name such as ‘red’, or a string of its hex value such as ‘#ff88g0’. If verbose=True, this funtion also prints the label and time, which can be useful to view during shot compilation.

Runviewer displays these markers and allows one to manipulate the time axis based on them, and BLACS’ progress bar plugin displays the name and colour of the most recent marker as the shot is running