Skip to content
Snippets Groups Projects
Commit eee882d0 authored by Francesco Tripaldi's avatar Francesco Tripaldi
Browse files

add graph_y_limit attribute

parent 4fb59847
No related branches found
Tags 1.0.20
No related merge requests found
......@@ -68,6 +68,10 @@ def main():
elog_text = str(selfseq_dev.read_attribute("elog_text").value)
trigger_gun = PyTango.DeviceProxy('booster/accessi/plc_accessi')
timing_enable = PyTango.DeviceProxy('b/timing/injexttiming_b')
try:
graph_y_limit = selfseq_dev.read_attribute("graph_y_limit").value
except:
graph_y_limit = 2
except Exception as e:
#print(str(e))
selfseq_dev.write_attribute("ScriptErr", f"{type(e).__name__} while defining tango devices: {e}") # scrive l'eventuale errore sull'attributo "ScriptErr" della sequenza
......@@ -204,7 +208,7 @@ def main():
if topup_test_mode == True:
y_range = (0,0.6)
else:
y_range = (0,1.2)
y_range = (0,graph_y_limit)
......
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