Channel Watcher (CW) Process
The SPEAR channel watcher monitors PVs on SPEAR IOCs. When a PV changes, channel watcher will write a setpoint file and/or log a message to iocLogMsgServer. The messages can be viewed from the SPEAR event log ( ops event log description). Details:
- Channel Watcher runs on connie under the spear account.
- The startup file is $EPICS_APP/cw/script/st.ChannelWatcher.srf. The reboot startup file is /etc/init.d/st.ChannelWatcher.srf with a sym links S98ChannelWatcher.srf under /etc/rc3.d and rc5.d.
- The log file generated is $EPICS_DATA/app/cw/data/SPEAR.log. The SPEAR RF savedata files are written to $IOC_DATA/b132-iocrf/save_restore/*.sav. All other files are written under $IOC_DATA/<ioc_name>.
- Source resides in $EPICS/extensions/src/ChannelWatcher.
- The master file is $EPICS_APP/cw/config/SPEAR.cwConfig. All RF channels are listed in config files in $EPICS_APP/cw/config/SRF1.
- As many RF setpoints as possible are stored in the SPEAR RDB and are recorded by the historylog processes running on spear1. Currently, there is no capability to record unique fields in RDB so a config file containing PVs with unique field names resides in $EPICS_APP/cw/config/SRF1.cwConfig.
- RF channel list file description:
Name Description CW.SRF1.savedataVXI VXI Module Channels CW.SRF1.savedata Sub and Calc Record Inputs CW.SRF1.savedataAB All Other Channels
- To restart channel watcher (ie, when a PV is added to bumpless reboot):
ssh to connie as spear.
- Check the messages generated during channel watcher startup using the event log. Change some PVs and check that the bumpless reboot files are being generated and/or messages are being logged as expected. Note that the PV change messages are logged using the ioc node name.
SPEAR LLRF | SPEAR EPICS | SLAC Computing | SLAC Networking | SLAC Home
Contact: Stephanie Allison
Last Modified: Jun 18, 2013