<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Steve,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I've put the new version of the HV backup program on cdaql2 in /home/cdsg/CSS-Workspaces/HV_Latest/CSS.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I tested it out in a few different scenarios, and they all seemed to work for me and the backup took ~30 seconds to complete. I also had to make new versions of the backup and restore GUIs to run the new program. The new versions of these files are also in
 /home/cdsg/CSS-Workspaces/HV_Latest/CSS.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
For the new backup program, I also had to change the tcl2css.py program to add a label to the list-view screens for each detector so there is a new version of that, too, in /home/cdsg/tcl2css.<br>
</div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
If there is still trouble with this new backup program, please let us know.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
As a side note, I made the directory /home/cdsg/CSS-Workspaces/HV_Latest. The current versions of all CSS screens and scripts that are usable will be put here. This should hopefully take out some confusion as to which directory contains the latest versions
 of everything.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Tyler<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Dsg-hallc_epics <dsg-hallc_epics-bounces@jlab.org> on behalf of Tyler Lemon<br>
<b>Sent:</b> Wednesday, July 10, 2019 3:10 PM<br>
<b>To:</b> Stephen Wood; epics, dsg-hallc<br>
<b>Subject:</b> Re: [Dsg-hallc_epics] HV backup not working</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Steve,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
After we talked yesterday about the problems you came across with the backup program trying to get the HV CSS screens integrated into Hall C's Makefile, I started working on some changes to the HV backup program that should fix most of the problem.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The main change is that the backup program has been modified to do away with using pyepics. It now uses only standard libraries and functions that are automatically included in Python and CSS installations. This makes it so there aren't any extra packages that
 would need to be installed to use the program.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In the CSS library, there was a function that gets the system path of the CSS workspace, allowing the file path dependencies to be removed.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have also been able to remove the use of a channel reference text file noted yesterday and the hardcoded group names/numbers in you previous email by changing the program to get the record names from the .opi files rather than a text file or previous backup.
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
As for your previous email regarding the backup file containing only headers and not PVs, I'll look to see if that is the case with the new version and whether I can find the cause in the old version.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
There's a few more things to clean up in it (putting better comments, making sure there's no redundant code), but when its done I will put the new version on cdaql2.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best regards,<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Tyler<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Stephen Wood <saw@jlab.org><br>
<b>Sent:</b> Wednesday, July 10, 2019 11:45 AM<br>
<b>To:</b> Tyler Lemon<br>
<b>Subject:</b> HV backup not working</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Tyler:<br>
<br>
In the copy of the scripts that I have under the cvxwrks account <br>
(~cvxwrks/saw/EpicsHL/HV/CSS which comes from release5), backup is not <br>
working.  I just get headers, but no PVs.  I traced it down to the line:<br>
<br>
  if pv.split(':')[3] in props:<br>
<br>
which never succeeds.<br>
<br>
props is ['V0Setr','I0Setr','SVMaxr','RUpr','RDWnr']<br>
<br>
and none of the PVs tested end in "r".  I could remove the r in the <br>
props list, but technically it is the these readbacks that we want to <br>
backup.<br>
<br>
<br>
And for eventual improvement:  I notice that you explicitly list group <br>
numbers and names in HV-bur.py.  (groups and systems lists).  Ideally <br>
these should not be hardwired into the script, but derived from <br>
configuration files.<br>
<br>
I could arrange for my make file to put files like HMS.group, HMS.hvc, <br>
SHMS.group and SHMS.hvc into the CSS directory and then you could search <br>
for *.group and *.hvc to build up group and pv lists.  But I am open to <br>
however you want to do this.<br>
<br>
Thanks, Steve<br>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>