You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

This script lives in /reg/g/psdm/tutorials/examplePython/epics.py.  The LCLS DAQ includes many slowly changing quantities (e.g. voltages, temperatures, motor positions) that are recorded with software called EPICS.  This example shows the use of a more complex "full name" and an easier "alias" (see device names).

from psana import *
ds = DataSource('exp=xpptut15:run=59:smd')

epicsVarFullName = Detector('HX2:DVD:GCC:01:PMON')
epicsVarAlias = Detector('SampleTemp_GetA')

for nevent,evt in enumerate(ds.events()):
    print epicsVarFullName()
    print epicsVarAlias()
    break

References

  • No labels