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

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

TimeBase: fix type conversion error for amplitude

parent 4ae635b4
No related branches found
No related tags found
No related merge requests found
......@@ -155,12 +155,12 @@ class TimeBaseAOMDriver(Device):
for output in AOM.get_all_outputs():
command = "S" + output.name.rsplit("_",1)[-1]
if output._static_value is not None:
AOM_group.attrs[command] = np.round(output.static_value).astype(np.int32)
if command=="Sampl":
# Amplitude has to be programmed in 0.1*dBm
AOM_group.attrs[command] = np.round(10*output.static_value).astype(np.int32)
else:
AOM_group.attrs[command] = np.round(output.static_value).astype(np.int32)
# Amplitude has to be programmed in 0.1*dBm
if "Sampl" in AOM_group.attrs:
AOM_group.attrs["Sampl"] *= 10
# 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
......
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