***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
leolab_devices
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quantuminfo
Experiment Control
labscript-suite
leolab_devices
Commits
7e707271
Commit
7e707271
authored
2 years ago
by
Schabbauer, Johannes
Browse files
Options
Downloads
Patches
Plain Diff
Turning off Sweep if not used
parent
46d8a6c8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
labscript_devices.py
+2
-1
2 additions, 1 deletion
labscript_devices.py
with
2 additions
and
1 deletion
labscript_devices.py
+
2
−
1
View file @
7e707271
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment