labscript-suite-temp-2 / labscript

The labscript Python library provides a translation from simple Python code to complex hardware instructions. The library is used to construct a "connection table" containing information about what hardware is being used and how it is interconnected. Devices described in this connection table can then have their outputs set by using a range of functions, including arbitrary ramps.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Instructions should be able to have an uncertainty to their time #5

Open philipstarkey opened 10 years ago

philipstarkey commented 10 years ago

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


For commands with non-critical timing (for instance the ignored edge of a trigger) should be able to have an uncertainty so that they round to the nearest instruction within this uncertainty.

It would be good if the uncertainty could be passed in as a float (equal positive and negative components) or a tuple (to individually specify the positive and negative range). This would allow us to round shutters in the correct direction.

This feature would help resolve conflicts when two instructions are placed too close together for the given clockline or pseudoclock (will need to specifically check and resolve conflicts where the clockline clock_limit is exceeded or conflicts where the pseudoclock clock_limit is exceeded)