Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kalypso_CAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
DS_DG_PyTango_Package
Kalypso_CAM
Commits
8148aa44
Commit
8148aa44
authored
2 years ago
by
BENCE Aurelien
Browse files
Options
Downloads
Patches
Plain Diff
add check of local synchro device
parent
b03300fc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DG_PY_Kalypso.py
+11
-0
11 additions, 0 deletions
DG_PY_Kalypso.py
DG_PY_Kalypso.xmi
+4
-0
4 additions, 0 deletions
DG_PY_Kalypso.xmi
with
15 additions
and
0 deletions
DG_PY_Kalypso.py
+
11
−
0
View file @
8148aa44
...
...
@@ -198,6 +198,13 @@ class StateThread(Thread):
str_state
=
'
acquisition in progress...please be patient
'
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_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
:
self
.
mother
.
set_state
(
tango
.
DevState
.
ALARM
)
str_state
=
'
Alarm Power_supply Off
'
...
...
@@ -739,6 +746,10 @@ class DG_PY_KalypsoClass(PyTango.DeviceClass):
[
PyTango
.
DevBoolean
,
"
If you dont want to keep files when you are in Star sequence mode
"
,
[
False
]],
'
Local_synchro_attr
'
:
[
PyTango
.
DevString
,
"
check if local synchro was in good state to trig kalypso
"
,
[]
],
}
...
...
This diff is collapsed.
Click to expand it.
DG_PY_Kalypso.xmi
+
4
−
0
View file @
8148aa44
...
...
@@ -75,6 +75,10 @@
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<DefaultPropValue>
False
</DefaultPropValue>
</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"
>
<argin
description=
"none"
>
<type
xsi:type=
"pogoDsl:VoidType"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment