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
63bf18ab
Commit
63bf18ab
authored
2 years ago
by
BENCE Aurelien
Browse files
Options
Downloads
Patches
Plain Diff
wrong syntax for Local synchro card
parent
8148aa44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DG_PY_Kalypso.py
+3
-3
3 additions, 3 deletions
DG_PY_Kalypso.py
with
3 additions
and
3 deletions
DG_PY_Kalypso.py
+
3
−
3
View file @
63bf18ab
...
@@ -198,13 +198,13 @@ class StateThread(Thread):
...
@@ -198,13 +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
!=
""
:
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_state
=
loc_syn_attr
.
state
()
loc_syn_attr_value
=
loc_syn_attr
.
read
().
value
loc_syn_attr_value
=
loc_syn_attr
.
read
().
value
if
loc_syn_attr_value
!=
3
or
loc_syn_attr_state
!=
tango
.
DevState
.
ON
:
if
loc_syn_attr_value
!=
3
or
loc_syn_attr_state
!=
tango
.
DevState
.
ON
:
self
.
mother
.
set_state
(
tango
.
DevState
.
ALARM
)
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
:
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
'
...
...
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