Skip to content

labscript should reject commands after a wait if they have a time before the last wait #4

Open
@philipstarkey

Description

@philipstarkey

Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


To avoid confusion, once you call

#!python

wait(t)

you should not be able to issue subsequent commands with a time before 't'.

For example, you might call:

#!python

t+=wait(t)
# science!

# image
camera.expose(t-70e-3)

Depending on the length of science, your exposure may start before or after the wait. Labscript cannot do anything to fix the sequence of events, but it can refuse to trigger the camera before the wait if it implements the above suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions