*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 7e707271 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Turning off Sweep if not used

parent 46d8a6c8
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,7 @@ class TimeBaseAOMDriver(IntermediateDevice):
for AOM in self.child_devices:
AOM_group = group.create_group(AOM.connection)
AOM_group["Sswpm"] = 0 # Always turn off sweep mode, if not used.
# Set all commands for the TimeBase Driver as hdf5 Attributes
for output in AOM.get_all_outputs():
......@@ -128,7 +129,7 @@ class TimeBaseAOMDriver(IntermediateDevice):
# Set if FM is enabled and check the not FM and Sweep are used at the same time
if "Sfmdev" in AOM_group.attrs:
AOM_group.attrs["Sfmon"] = 1
if "Sswpm" in AOM_group.attrs:
if AOM_group.attrs["Sswpm"] != 0:
raise LabscriptError(f"Device {AOM.name} cannot have both FM and Frequency sweeps enabled.")
else:
AOM_group.attrs["Sfmon"] = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment