Size: 836
Comment:
|
Size: 1553
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 21: | Line 21: |
{{[[attachment:Gedit Setup.png]]|{{attachment:Gedit Setup.png|width=200}} | 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|{{attachment:Gedit Setup.png||width=300}}]] |
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