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

add check of local synchro device

parent b03300fc
No related branches found
No related tags found
No related merge requests found
...@@ -198,6 +198,13 @@ class StateThread(Thread): ...@@ -198,6 +198,13 @@ class StateThread(Thread):
str_state = 'acquisition in progress...please be patient' str_state = 'acquisition in progress...please be patient'
else: else:
str_state = 'acquisition in progress...please be patient -to stop acquisition send Stop command' 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_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'
elif ps_outut == False: elif ps_outut == False:
self.mother.set_state(tango.DevState.ALARM) self.mother.set_state(tango.DevState.ALARM)
str_state = 'Alarm Power_supply Off' str_state = 'Alarm Power_supply Off'
...@@ -739,6 +746,10 @@ class DG_PY_KalypsoClass(PyTango.DeviceClass): ...@@ -739,6 +746,10 @@ class DG_PY_KalypsoClass(PyTango.DeviceClass):
[PyTango.DevBoolean, [PyTango.DevBoolean,
"If you dont want to keep files when you are in Star sequence mode", "If you dont want to keep files when you are in Star sequence mode",
[False]], [False]],
'Local_synchro_attr':
[PyTango.DevString,
"check if local synchro was in good state to trig kalypso",
[] ],
} }
......
...@@ -75,6 +75,10 @@ ...@@ -75,6 +75,10 @@
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/> <status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<DefaultPropValue>False</DefaultPropValue> <DefaultPropValue>False</DefaultPropValue>
</deviceProperties> </deviceProperties>
<deviceProperties name="Local_synchro_attr" description="check if local synchro was in good state to trig kalypso">
<type xsi:type="pogoDsl:StringType"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</deviceProperties>
<commands name="State" description="This command gets the device state (stored in its device_state data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0"> <commands name="State" description="This command gets the device state (stored in its device_state data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0">
<argin description="none"> <argin description="none">
<type xsi:type="pogoDsl:VoidType"/> <type xsi:type="pogoDsl:VoidType"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment