How to get PV name and alarm limits
If you would like to find the PV name of the DB record displayed in the GUI or in the alarm handler.
The easiest way is to do it with the help of the GUI with displayed corresponding PV.
1) open the GUI
2) right mouse click somewhere on the GUI
a) a small white dot with "PV" letter next to it will appear
3) navigate the white dot to the corresponding displayed PV (displayed PV is shown in the white circle) and click left mouse button
A screen similar to the shown below will appear with PV name displayed
4) copy the pv name (shown in the white circle
5) open session on one of the slow controls PCs (sc,sc5,sc3)
6) type :
caget pv_name.LOW - for low yellow alarm state
caget pv_name.LOLO - for low red alarm state
caget pv_name.HIGH - for high yellow alarm state
caget pv_name.HIHI - for high red alarm state
you should get something similar to what is shown in the screen shot below
here is a small script which will read alarm limits for a channel . Just save into a file and do "a +x <filename> ". It will work on sc.starp.bnl.gov and sc5.starp.bnl.gov
#!/bin/bash
echo Please, enter channel name
read NAME
echo "Channel name is : $NAME!"
echo "current value :"
caget $NAME
echo "LOW (yellow alarm) :"
caget $NAME.LOW
echo "LOLO (red alarm) :"
caget $NAME.LOW
echo "HIGH (yellow alarm) :"
caget $NAME.HIGH
echo "HIHI (red alarm) :"
caget $NAME.HIHI
- Printer-friendly version
- Login or register to post comments