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

new RV_KG09 setup

parent 780e2038
No related branches found
No related tags found
No related merge requests found
from tango import *
gp=Group('sip')
gp.add('l04/vacuum/sip*')
sips = gp.get_device_list()
for sipname in sips:
print(sipname)
attname=sipname+'/Pressure'
sip=AttributeProxy(attname)
cfx=sip.get_config()
cfx.events.arch_event.archive_rel_change='20'
cfx.events.arch_event.archive_period='3600000'
sip.set_config(cfx)
sip.poll(5000)
attname=sipname+'/State'
sipst=AttributeProxy(attname)
cfx=sipst.get_config()
cfx.events.arch_event.archive_period='3600000'
sipst.poll(5000)
print(sipname, " OK")
...@@ -11,9 +11,10 @@ appname = 'FourUHV-gui' #change! ...@@ -11,9 +11,10 @@ appname = 'FourUHV-gui' #change!
db = Database() db = Database()
# get list of devicese form server/instance # get list of devicese form server/instance
instances=['4uhv-srv/vac_bsa03'] instances=['4uhv-srv/kg09-01','4uhv-srv/kg09-02']
#instances=['4uhv-srv/vac_a02'] #instances=['4uhv-srv/vac_a02']
for instance in instances: for instance in instances:
print("instance", instance)
devlistraw=[] devlistraw=[]
devlistraw = db.get_device_class_list(instance).value_string devlistraw = db.get_device_class_list(instance).value_string
idx = 0 idx = 0
......
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