labscript-suite / labscript

The 𝗹𝗮𝗯𝘀𝗰𝗿𝗶𝗽𝘁 library provides a translation from expressive Python code to low-level hardware instructions.
http://labscriptsuite.org
BSD 2-Clause "Simplified" License
9 stars 48 forks source link

Desire output values between shots different from those present when stopping sequencing #36

Open philipstarkey opened 7 years ago

philipstarkey commented 7 years ago

Original report (archived issue) by Ian B. Spielman (Bitbucket: Ian Spielman, GitHub: ispielma).


We often desire to have some activity running between shots (MOT loading, or shining UV) or whatever, that is not good or safe to have on for a long time. So we do want to use the time between sequences for this, but we do not want the system to sit in this state for a very long time when we are not actively cycling.

propose new output methods that looks somewhat like:

DO_2.safe_state(0, timeout=5)

which directs labscript to demand DO_2 return to "0" after 5 seconds (say to avoid having something overheat). The default behavior would remain as it is, only those channels with a safe_state set would be subject to this.