***
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
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
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
de9afd46
Commit
de9afd46
authored
11 months ago
by
Schabbauer, Johannes
Browse files
Options
Downloads
Patches
Plain Diff
Spectrum: Fixed label of signle tone in buffer for manual replay
parent
87eddeee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SpectrumAWG/blacs_workers.py
+2
-2
2 additions, 2 deletions
SpectrumAWG/blacs_workers.py
with
2 additions
and
2 deletions
SpectrumAWG/blacs_workers.py
+
2
−
2
View file @
de9afd46
...
...
@@ -43,7 +43,7 @@ class SpectrumAWGWorker(Worker):
return
{}
elif
type
(
values
)
is
float
:
# Stream single frequency
data
=
SpectrumCard
.
generate_single_tone
(
values
*
1e6
,
4096
,
self
.
sample_rate
)
# TODO: Set num_samples dynamically
data
=
SpectrumCard
.
generate_single_tone
(
values
*
1e6
,
4096
*
5
,
self
.
sample_rate
)
# TODO: Set num_samples dynamically
self
.
AWG
.
transfer_sequence_replay_samples
(
len
(
self
.
smart_cache
),
data
)
# Write in next free memory
self
.
AWG
.
seq_set_sequence_step
(
0
,
len
(
self
.
smart_cache
),
0
,
1
,
'
on_trigger
'
,
last_step
=
False
)
elif
type
(
values
)
is
int
:
...
...
@@ -84,7 +84,7 @@ class SpectrumAWGWorker(Worker):
if
len
(
instruction
)
==
2
:
# SINGLE TONE
data
=
SpectrumCard
.
generate_single_tone
(
instruction
[
1
],
num_samples
,
self
.
sample_rate
)
initial_values
[
memory_index
]
=
f
"
{
instruction
[
0
]
}
Hz
"
initial_values
[
memory_index
]
=
f
"
{
instruction
[
1
]
*
1e-6
:
.
3
f
}
M
Hz
"
elif
(
len
(
instruction
)
-
1
)
%
3
==
0
:
# MULTI TONE
num_tones
=
(
len
(
instruction
)
-
1
)
//
3
...
...
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