Generator script
The generate_master_screens.py script in the /opt/rtcds/caltech/c1/medm/master directory does the following:
1. Makes a new file for each optic of each YYY_DEFAULTNAME_XXX.adl file
2. DEFAULTNAME gets replaced by an optic's name when the script is run. BS, ITMX, ITMY, PRM, SRM, MC1, MC2, MC3
3. DCU_NODE_ID gets replaced by the dcu id of the optic's front end model, such as 21 for BS, ITMX, ITMY optics.
4. Copies the files to the correct sub-directories in /opt/rtcds/caltech/c1/medm/
Existing screens
To edit all the similar medm screens named C1SUS_NAME_XXX.adl for the suspension controls, do the following:
- Go to /opt/rtcds/caltech/c1/medm/master and edit C1SUS_DEFAULTNAME_XXX.adl.
- Run generate_master_screens.py.
Converting old screens
To create a new screen associated for all the suspension optics. If you already have a template medm screen like C1SUS_NAME_XXX.adl from a previous epics setup, you can do the following:
1. Copy C1SUS_NAME_XXX.adl to /opt/rtcds/caltech/c1/medm/master/ directory as C1SUS_DEFAULTNAME_XXX.adl.
2. Go to that directory and
- sed -i 's/NAME/DEFAULTNAME/g' C1SUS_DEFUALTNAME_XXX.adl
3. Add "_XXX.adl" to file_array list in generate_master_screens.py
4. Edit C1SUS_DEFUALTNAME_XXX.adl
5. Run ./generate_master_screens.py
Creating a new screen
To create a new screen associated for all the suspension optics from scratch, do teh following:
1. Go to /opt/rtcds/caltech/c1/medm/master/
2. medm
3. Go to File and select new
4. Go to File and select save as. Save the file as something like C1SUS_DEFAULTNAME_XXX.adl
5. Create the screen. Save afterwards.
6. Add "_XXX.adl" to file_array list in generate_master_screens.py
7. Run ./generate_master_screens.py
