labscript-suite / labscript-devices

A modular and extensible plugin architecture to control experiment hardware using the 𝘭𝘒𝘣𝘴𝘀𝘳π˜ͺ𝘱𝘡 𝘴𝘢π˜ͺ𝘡𝘦.
http://labscriptsuite.org
Other
5 stars 58 forks source link

imaqdx_server should optionally propagate exceptions if it cannot acquire images #32

Closed philipstarkey closed 5 years ago

philipstarkey commented 5 years ago

Original report (archived issue) by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


It might sometimes be the desired behaviour to keep going if images weren't acquired, but I think the default should be to crash loudly.

Where transition_to_static has the prinline:

print('Acquisition not finished before transition_to_static. Aborting.')

after which it returns, it should instead raise an exception such that it will be re-raised in BLACS.

philipstarkey commented 5 years ago

Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).