Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sample_changer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Bliss
Tango Servers
sample_changer
Commits
0e0f0019
Commit
0e0f0019
authored
7 months ago
by
Generic Bliss account for Control Software
Browse files
Options
Downloads
Patches
Plain Diff
Bug corrections + add functions to handle robot speed
parent
5f67754d
Branches
id19
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+0
-0
0 additions, 0 deletions
README.rst
SampleChangerDS/TomoSampleChanger.py
+19
-2
19 additions, 2 deletions
SampleChangerDS/TomoSampleChanger.py
SamplesDS/TomoSamples.py
+1
-1
1 addition, 1 deletion
SamplesDS/TomoSamples.py
with
20 additions
and
3 deletions
README.rst
0 → 100644
+
0
−
0
View file @
0e0f0019
This diff is collapsed.
Click to expand it.
SampleChangerDS/TomoSampleChanger.py
+
19
−
2
View file @
0e0f0019
...
...
@@ -260,7 +260,7 @@ class TomoSampleChanger(Device):
self
.
robot_status_time
=
now
self
.
info_stream
(
"
robot_status() at %d
"
%
int
(
now
))
self
.
status_lock
=
False
self
.
status_lock
=
False
# catch all exceptions, convert to Tango exception and rethrow
except
:
...
...
@@ -558,6 +558,23 @@ class TomoSampleChanger(Device):
# PROTECTED REGION END # // TomoSampleChanger.RobotLibraryName_read
speed
=
attribute
(
label
=
"
Speed
"
,
dtype
=
float
,
max_value
=
1
,
fget
=
"
get_speed
"
,
fset
=
"
set_speed
"
,
doc
=
"
sample changer acceleration speed
"
)
def
get_speed
(
self
):
# PROTECTED REGION ID(TomoSampleChanger.get_speed) ENABLED START #
speed
=
self
.
robot
.
accelForLargeMovesMultiplicator
return
speed
# PROTECTED REGION END # // TomoSampleChanger.get_speed
def
set_speed
(
self
,
speed
):
# PROTECTED REGION ID(TomoSampleChanger.set_speed) ENABLED START #
self
.
robot
.
accelForLargeMovesMultiplicator
=
speed
# PROTECTED REGION END # // TomoSampleChanger.set_speed
# --------
# Commands
# --------
...
...
@@ -808,7 +825,7 @@ class TomoSampleChanger(Device):
def
ForceParkingPosition
(
self
):
# PROTECTED REGION ID(TomoSampleChanger.ForceParkingPosition) ENABLED START #
if
self
.
attr_ParkingPosition_read
==
False
:
if
self
.
robot
.
isAtParking
==
False
:
self
.
running_task
=
gevent
.
spawn
(
self
.
parking_task
)
print
(
"
Bring robot back to parking position
"
)
...
...
This diff is collapsed.
Click to expand it.
SamplesDS/TomoSamples.py
+
1
−
1
View file @
0e0f0019
...
...
@@ -398,7 +398,7 @@ class TomoSamples(Device):
def
Reset
(
self
):
# PROTECTED REGION ID(TomoSamples.Reset) ENABLED START #
for
i
in
self
.
tomo_samples
.
keys
():
for
i
in
list
(
self
.
tomo_samples
.
keys
()
)
:
# do not reset samples with protected names
found
=
False
for
psn
in
self
.
ProtectedSampleNames
:
...
...
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