![]() | ![]() | ![]() | Making Epics variables into runvar's | ![]() |
The epicsarchiver program will create two arrays, EPICS_DATA, containing channel values, and EPICS_UNIT containing the units of the channels. In order to log this data to the event file it is necessary to specify the elements of these arrays as run variables. To do this, create and source a script like this:
foreach channel [array names EPICS_DATA] { runvar EPICS_DATA($channel) runvar EPICS_UNIT($channel) }
This script iterates through the set of indices of EPICS_DATA and tells the readout program to make the corresponding elements of EPICS_DATA and EPICS_UNIT into run variables. Run variables are logged to the event stream each scaler readout interval. The format of these documentation buffers is described in the production readout program user guide at http://docs.nscl.msu.edu
![]() | ![]() | ![]() | Making Epics variables into runvar's | ![]() |