diff --git a/openflexure_microscope/plugins/example/plugin.py b/openflexure_microscope/plugins/example/plugin.py index a0fb0538..a7e0c044 100644 --- a/openflexure_microscope/plugins/example/plugin.py +++ b/openflexure_microscope/plugins/example/plugin.py @@ -39,8 +39,10 @@ class Plugin(MicroscopePlugin): print("Starting a long-running task...") n_array = [] - print("Acquiring camera and stage locks...") - with self.microscope.camera.lock, self.microscope.stage.lock: + #print("Acquiring camera and stage locks...") + #with self.microscope.camera.lock, self.microscope.stage.lock: + print("Acquiring composite microscope lock...") + with self.microscope.lock: for _ in range(t_run): n_array.append(random.random()) time.sleep(1)