diff --git a/etc/fixevents.py b/etc/fixevents.py new file mode 100644 index 0000000000000000000000000000000000000000..960dea345fcd9d70893c26ed8a545f2e39b16a35 --- /dev/null +++ b/etc/fixevents.py @@ -0,0 +1,21 @@ + +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") diff --git a/etc/fixhelperapp.py b/etc/fixhelperapp.py index ed6eec8caf3d9cfe28d49fa9d391ec2a76c5589c..d2e065deed2cb68ce1caf8d693874768073c0526 100644 --- a/etc/fixhelperapp.py +++ b/etc/fixhelperapp.py @@ -11,9 +11,10 @@ appname = 'FourUHV-gui' #change! db = Database() # 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'] for instance in instances: + print("instance", instance) devlistraw=[] devlistraw = db.get_device_class_list(instance).value_string idx = 0