Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-diaphragm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
iris-diaphragm
Commits
885e9dd7
Commit
885e9dd7
authored
3 years ago
by
Milan Prica
Browse files
Options
Downloads
Patches
Plain Diff
Open and Close commands changed.
parent
3960cd67
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/iris_diaphragm.py
+5
-3
5 additions, 3 deletions
src/iris_diaphragm.py
with
5 additions
and
3 deletions
src/iris_diaphragm.py
+
5
−
3
View file @
885e9dd7
...
...
@@ -59,7 +59,7 @@ class IrisDiaphragm (PyTango.Device_4Impl):
try
:
# ctrl_proxy device to SmarAct MCS Controller
self
.
ctrl_proxy
=
PyTango
.
DeviceProxy
(
self
.
SmaractMCSDevice
)
if
self
.
ctrl_proxy
.
state
()
!=
PyTango
.
DevState
.
ON
:
if
self
.
ctrl_proxy
.
state
()
not
in
(
PyTango
.
DevState
.
ON
,
PyTango
.
DevState
.
MOVING
,)
:
self
.
set_state
(
PyTango
.
DevState
.
FAULT
)
self
.
status_string
=
"
ctrl_proxy device not in ON state. INIT failed.
"
return
...
...
@@ -229,7 +229,8 @@ class IrisDiaphragm (PyTango.Device_4Impl):
:return:
:rtype: PyTango.DevVoid
"""
# self.debug_stream("In Open()")
self
.
execute_command
(
"
GoToHighLimit
"
)
# self.execute_command("GoToHighLimit")
self
.
write_position
(
22.0
)
def
is_Open_allowed
(
self
):
return
self
.
get_state
()
in
(
PyTango
.
DevState
.
ON
,)
...
...
@@ -241,7 +242,8 @@ class IrisDiaphragm (PyTango.Device_4Impl):
:return:
:rtype: PyTango.DevVoid
"""
# self.debug_stream("In Close()")
self
.
execute_command
(
"
GoToLowLimit
"
)
# self.execute_command("GoToLowLimit")
self
.
write_position
(
0.0
)
def
is_Close_allowed
(
self
):
return
self
.
get_state
()
in
(
PyTango
.
DevState
.
ON
,)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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