labscript.labscript.wait

wait(label, t, timeout=5)[source]

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

Parameters:
  • label (str) – Unique name for wait.

  • t (float) – Time, in seconds, at which experiment should begin the wait.

  • timeout (float, optional) – Maximum length of the wait, in seconds. After this time, the pseudoclocks are automatically re-triggered.

Returns:

Time required for all pseudoclocks to resume execution once wait has completed.

Return type:

float