<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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);">
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="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" 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="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="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>
</body>
</html>