Differences between revisions 6 and 7
Revision 6 as of 2019-04-24 10:30:44
Size: 835
Editor: MarkBarton
Comment:
Revision 7 as of 2019-04-24 15:51:23
Size: 1553
Editor: MarkBarton
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
The usage from within Guardian is a bit complicated. According to some versions of the Guardian documentation, there is supposed to be a global Ezca instance called ezca which can be used for channel access. And according to some versions of the documentation, it is supposed to have prefix `K1:VIS_BS_` or the like (which gets prepended to channel name fragments passed to it). If you run the Guardian in interactive mode, e.g.,
{{{
guardian -i VIS_BS
}}}
then there is indeed a global ezca object, but it has prefix just `K1:`, so the appropriate setup is
{{{
vis=vistools.Vis((SYSTEM,ezca))
}}}
 because (i) there is already one the `ezca` object used to communicate with EPICS has been changed to being

KAGRA VIS Operations Manual - vistools.py

vistools.py is a Python module and command-line utility for manipulating the suspensions. It lives in /opt/rtcds/userapps/release/vis/k1/scripts (although it may get moved to /opt/rtcds/userapps/release/vis/common/scripts and there is a symlink to it in /opt/rtcds/userapps/release/vis/k1/guardian. Nearby there may be a test version vistoolstest.py.

vistools.py has three modes of use:

vistools.py as a command-line utility

vistools.py as a Python module

vistools.py from within Guardian

The usage from within Guardian is a bit complicated. According to some versions of the Guardian documentation, there is supposed to be a global Ezca instance called ezca which can be used for channel access. And according to some versions of the documentation, it is supposed to have prefix K1:VIS_BS_ or the like (which gets prepended to channel name fragments passed to it). If you run the Guardian in interactive mode, e.g.,

guardian -i VIS_BS

then there is indeed a global ezca object, but it has prefix just K1:, so the appropriate setup is

vis=vistools.Vis((SYSTEM,ezca))
  • because (i) there is already one the ezca object used to communicate with EPICS has been changed to being

attachment:Gedit Setup.png

KAGRA/Subgroups/VIS/OpsManual/vistools (last edited 2019-05-15 20:46:07 by MarkBarton)