Page History
DAQ-scan variable (where things like motor positions are changed during a run in "steps" or "calibcycles") can also be accessed used the Detector interface. This example is in /reg/g/psdmsdf/group/lcls/ds/ana/tutorials/examplePythonpsana1_examples/controlData.py.
Code Block |
---|
from psana import * ds = DataSourceMPIDataSource('exp=xpptut15:run=200:smd') cd = Detector('ControlData') for run in ds.runs(): for nstep,step in enumerate(ds.steps()): pvList = cd().pvControls() for pv in pvList: print (f'Step',: {nstep},' name/value:', {pv.name(),}/{pv.value()}') for evt in step.events(): pass if nstep>=2: import sys sys.exit() |
References
- ControlDataDetector - documentation of the ControlDataDetector methods
Overview
Content Tools