fix: wip, fix for set_channels to not wait for .set commands, add check if ddg is okay.

This commit is contained in:
gac-x12sa 2025-03-24 07:53:15 +01:00
parent bcb178b9b3
commit ae988d38b6

View File

@ -313,10 +313,13 @@ class DelayGenerator(Device):
if not channel:
continue
if signal in channel.component_names:
getattr(channel, signal).set(val).wait()
getattr(channel, signal).set(val)
continue
if "io" in channel.component_names and signal in channel.io.component_names:
getattr(channel.io, signal).set(val).wait()
getattr(channel.io, signal).set(val)
self.check_if_ddg_okay(
raise_on_error=True
) # Check that DDG did not return an error, raise immediately if it did
def check_if_ddg_okay(self, raise_on_error: bool = False) -> None:
"""