Skip to content
Snippets Groups Projects
Commit aaa52c98 authored by Claudio Scafuri's avatar Claudio Scafuri :speech_balloon:
Browse files

add vgeprf

parent b28ab29f
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ from tango import * ...@@ -5,6 +5,7 @@ from tango import *
sip120 = DeviceProxy('rpcbridge/rpc2tangobridge/sip120') sip120 = DeviceProxy('rpcbridge/rpc2tangobridge/sip120')
sip400 = DeviceProxy('rpcbridge/rpc2tangobridge/sip400') sip400 = DeviceProxy('rpcbridge/rpc2tangobridge/sip400')
vlvfe = DeviceProxy('rpcbridge/rpc2tangobridge/vlvfe') vlvfe = DeviceProxy('rpcbridge/rpc2tangobridge/vlvfe')
vgperf = DeviceProxy('rpcbridge/rpc2tangobridge/vgperf'
...@@ -38,6 +39,21 @@ for att in sip400attrlist: ...@@ -38,6 +39,21 @@ for att in sip400attrlist:
print ('fail for %s', att) print ('fail for %s', att)
pass 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() vlvfeattrlist = vlvfe.get_attribute_list()
for att in vlvfeattrlist: for att in vlvfeattrlist:
attconf=vlvfe.get_attribute_config(att) attconf=vlvfe.get_attribute_config(att)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment