pcdsdaq.preprocessors.daq_during_wrapper¶
- pcdsdaq.preprocessors.daq_during_wrapper(plan, record=None, use_l3t=False, controls=None)¶
Run a plan with the
Daq.This can be used with an ordinary
blueskyplan that you’d like the daq to run along with. This also stages the daq so that the run start/stop will be synchronized with the bluesky runs.This must be applied outside the
run_wrapper. All configuration must be done by supplying config kwargs to this wrapper.The
daq_during_decoratoris the same as thedaq_during_wrapper, but it is meant to be used as a function decorator.- Parameters:
plan (
plan) – Theplanto use the daq inrecord (
bool, optional) – IfTrue, we’ll record the data. Otherwise, we’ll run without recording. Defaults toFalse, or the last set value forrecord.use_l3t (
bool, optional) – IfTrue, aneventsargument to begin will be reinterpreted to only count events that pass the level 3 trigger. Defaults toFalse.controls (
dict{name: device}orlist[device...], optional) – If provided, values from these will make it into the DAQ data stream as variables. We will checkdevice.positionanddevice.valuefor quantities to use and we will update these values each time begin is called. To provide a list, all devices must have anameattribute.