We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c73d70 commit 916d79aCopy full SHA for 916d79a
microscope/devices.py
@@ -618,6 +618,8 @@ def grab_next_data(self, soft_trigger=True):
618
:param soft_trigger: calls soft_trigger if True,
619
waits for hardware trigger if False.
620
"""
621
+ if not self.enabled:
622
+ raise Exception("Camera not enabled.")
623
self._new_data_condition.acquire()
624
# Push self onto client stack.
625
self.set_client(self)
0 commit comments