Skip to content
Snippets Groups Projects
Commit 63bf18ab authored by Aurelien BENCE's avatar Aurelien BENCE
Browse files

wrong syntax for Local synchro card

parent 8148aa44
Branches
Tags
No related merge requests found
......@@ -199,12 +199,12 @@ class StateThread(Thread):
else:
str_state = 'acquisition in progress...please be patient -to stop acquisition send Stop command'
elif self.mother.Local_synchro_attr !="":
loc_syn_attr=tango.AttributeProxy("self.mother.Local_synchro_attr")
loc_syn_attr=tango.AttributeProxy(self.mother.Local_synchro_attr)
loc_syn_attr_state=loc_syn_attr.state()
loc_syn_attr_value=loc_syn_attr.read().value
if loc_syn_attr_value != 3 or loc_syn_attr_state != tango.DevState.ON:
self.mother.set_state(tango.DevState.ALARM)
str_state = 'Please check Local synchro card'
str_state = 'Please check Local synchro card: '+self.mother.Local_synchro_attr
elif ps_outut == False:
self.mother.set_state(tango.DevState.ALARM)
str_state = 'Alarm Power_supply Off'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment