pcdsdaq.preprocessors.daq_during_decorator¶
- pcdsdaq.preprocessors.daq_during_decorator(plan, record=None, use_l3t=False, controls=None)¶
Run a plan with the
Daq
.This can be used with an ordinary
bluesky
plan 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_decorator
is the same as thedaq_during_wrapper
, but it is meant to be used as a function decorator.- Parameters:
plan (
plan
) – Theplan
to 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
, anevents
argument 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.position
anddevice.value
for quantities to use and we will update these values each time begin is called. To provide a list, all devices must have aname
attribute.