Skip to content
Snippets Groups Projects
Commit e3b4741d authored by Tobias Hangleiter's avatar Tobias Hangleiter
Browse files

Add proper error message for hardware trigger

parent 39059e1a
No related branches found
No related tags found
1 merge request!13Alazar driver (config2)
Pipeline #1020170 waiting for manual action
...@@ -56,10 +56,10 @@ class AlazarATS9xx0(DAQ): ...@@ -56,10 +56,10 @@ class AlazarATS9xx0(DAQ):
self.hardware_channel = string.ascii_uppercase[self.hardware_channel] self.hardware_channel = string.ascii_uppercase[self.hardware_channel]
if not isinstance(self.hardware_channel, Channel): # noqa if not isinstance(self.hardware_channel, Channel): # noqa
self.hardware_channel = getattr(Channel, self.hardware_channel) # noqa self.hardware_channel = getattr(Channel, self.hardware_channel) # noqa
if isinstance(self.trigger_callback, str): if self.trigger_callback == 'software':
self.trigger_callback = self.card.forceTrigger self.trigger_callback = self.card.forceTrigger
else: else:
raise NotImplementedError('trigger_callback') raise NotImplementedError('Hardware trigger not yet implemented. Please open a PR.')
self.default_capture_clock_config = CaptureClockConfiguration( # noqa self.default_capture_clock_config = CaptureClockConfiguration( # noqa
CaptureClockType.internal_clock, # noqa CaptureClockType.internal_clock, # noqa
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment