Added explicit lock ecquisition
This commit is contained in:
parent
fb26bcb7f3
commit
27043240f3
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,9 @@ class PositionAPI(MicroscopeView):
|
|||
|
||||
# Move if stage exists
|
||||
if self.microscope.stage:
|
||||
self.microscope.stage.move_rel(position)
|
||||
# Explicitally acquire lock
|
||||
with self.microscope.stage.lock:
|
||||
self.microscope.stage.move_rel(position)
|
||||
|
||||
out = filter_dict(self.microscope.state, ('stage', 'position'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue