Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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).

Code Block
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