From aaa52c98cddc5cc2d07de24ad79eb6ef087b7e61 Mon Sep 17 00:00:00 2001
From: Claudio Scafuri <claudio.scafuri@elettra.eu>
Date: Tue, 18 Jan 2022 15:36:35 +0100
Subject: [PATCH] add vgeprf

---
 etc/fixevents.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/etc/fixevents.py b/etc/fixevents.py
index 86a62ab..df39d73 100644
--- a/etc/fixevents.py
+++ b/etc/fixevents.py
@@ -5,6 +5,7 @@ from tango import *
 sip120 = DeviceProxy('rpcbridge/rpc2tangobridge/sip120')
 sip400 = DeviceProxy('rpcbridge/rpc2tangobridge/sip400')
 vlvfe  = DeviceProxy('rpcbridge/rpc2tangobridge/vlvfe')
+vgperf = DeviceProxy('rpcbridge/rpc2tangobridge/vgperf'
 
 
 
@@ -38,6 +39,21 @@ for att in sip400attrlist:
         print ('fail for %s', att)
         pass
 
+vgperfattrlist = vgperf.get_attribute_list()
+
+for att in vgperfattrlist:
+    attconf=vgperf.get_attribute_config(att)
+    attconf.format='%6.2e'
+    attconf.events.arch_event.archive_rel_change = '20'
+    attconf.events.arch_event.archive_period = '360000'
+    attconf.events.ch_event.rel_change = '10'
+    try:
+        vgperf.set_attribute_config(attconf)
+        vgperf.poll_attribute(att,3000)
+    except:
+        print ('fail for %s', att)
+        pass
+
 vlvfeattrlist = vlvfe.get_attribute_list()
 for att in vlvfeattrlist:
     attconf=vlvfe.get_attribute_config(att)
-- 
GitLab