Warning: Undefined variable $s in /wwwsto01/wwwusers/gw-elog/osl/classes/DAO.php on line 959
NAOJ GW Elog Logbook
LOG-IN
Displaying report 1-1 of 1.
R&D (FilterCavity)
Print this report.
EleonoraCapocasa - 13:39, Monday 23 September 2019 (1651)Get code to link to this report
Python script to open and close loops

Up to now, all the loops are closed one by one by, manually changing the gain from 0 to 1 in the MEDM interface.

Since this is inconvinient especially if we will need to close alignment loops, I prepared a python script to close (and open) the damping loop just by clicking on a button on the MEDM screen. (see attached picture) 

The scripts, which use EZCA module to change values of epics channels, are located in /home/controls/FDSscripts.

A strange issue we found (while checking with Shoda-san) is that the script doesn't work if I open MEDM interface using the desktop icon but only if I open it from terminal.

I contacted Yamamoto-san and he suggested that it can be due python environmental variables and he suggested to try with a bash script that launch a python script. I tried this solution but also in this case it only works if I open MEDM from terminal. I will investigate more.

For the moment, if we want to use the button to open and close all the damping loops in one click please open MEDM from terminal (just open a terminal and type "sitemap").

Images attached to this report
1651_20190923063946_loopbotton.png