Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
ds
setandreaddiff
Commits
2aa31b17
Commit
2aa31b17
authored
May 02, 2022
by
Claudio Scafuri
💬
Browse files
update list of BTS power supplies
parent
f4bca231
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Setandreaddiff.py
View file @
2aa31b17
...
...
@@ -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_bts
01.01
'
,
'tango_dev'
:
PyTango
.
DeviceProxy
(
'tom:20000/bts/power_supply/psb_bts
01.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
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment