Commit 2aa31b17 authored by Claudio Scafuri's avatar Claudio Scafuri 💬
Browse files

update list of BTS power supplies

parent f4bca231
......@@ -204,7 +204,7 @@ class Setandreaddiff (PyTango.Device_4Impl):
else:
return device.read_attribute(attribute).w_value
except PyTango.DevFailed:
if iteration == 3:
if iteration == 1:
raise
else:
#print("Errore nella lettura dell'attributo {0} del "
......@@ -487,13 +487,28 @@ class Setandreaddiff (PyTango.Device_4Impl):
'set_attr': 'CurrentSetPoint'})
#**********************BTS**********************************
# psb ATTENZIONE! NESSUN ATTRIBUTO DI SET!
devs_list.append({'name': 'psb_bts',
'tango_dev': PyTango.DeviceProxy('tom:20000/bts/power_supply/psb_bts'),
devs_list.append({'name': 'psb_bts01.01',
'tango_dev': PyTango.DeviceProxy('tom:20000/bts/power_supply/psb_bts01.01'),
'read_attr': 'Current',
'set_attr': 'Current',
'set_in_read': True})
devs_list.append({'name': 'psb_bts2.3',
'tango_dev': PyTango.DeviceProxy('tom:20000/bts/power_supply/psb_bts2.3'),
devs_list.append({'name': 'psb_bts01.02',
'tango_dev': PyTango.DeviceProxy('tom:20000/bts/power_supply/psb_bts01.02'),
'read_attr': 'Current',
'set_attr': 'Current',
'set_in_read': True})
devs_list.append({'name': 'psb_bts01.03',
'tango_dev': PyTango.DeviceProxy('tom:20000/bts/power_supply/psb_bts01.03'),
'read_attr': 'Current',
'set_attr': 'Current',
'set_in_read': True})
devs_list.append({'name': 'psb_bts02.01',
'tango_dev': PyTango.DeviceProxy('tom:20000/bts/power_supply/psb_bts02.01'),
'read_attr': 'Current',
'set_attr': 'Current',
'set_in_read': True})
devs_list.append({'name': 'psb_bts02.03',
'tango_dev': PyTango.DeviceProxy('tom:20000/bts/power_supply/psb_bts02.03'),
'read_attr': 'Current',
'set_attr': 'Current',
'set_in_read': True})
......
Markdown is supported
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