Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pulse_lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
QuTech QDLabs
pulse_lib
Commits
3b901829
Commit
3b901829
authored
1 year ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Updated documentation
parent
52ba5042
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pulse_lib/tektronix/tektronix5014_uploader.py
+16
-13
16 additions, 13 deletions
pulse_lib/tektronix/tektronix5014_uploader.py
with
16 additions
and
13 deletions
pulse_lib/tektronix/tektronix5014_uploader.py
+
16
−
13
View file @
3b901829
...
...
@@ -264,22 +264,17 @@ class Tektronix5014_Uploader:
awg
.
set
(
f
'
ch
{
channel
}
_state
'
,
1
)
def
_configure_digitizers
(
self
,
job
):
if
not
job
.
acquisition_conf
.
configure_digitizer
:
return
'''
Configure per digitizer channel:
n_triggers: job.n_triggers per channel @@@ all equal
t_measure: job.t_measure per channel @@@ all equal
downsampled_rate:
'''
'''
Read:
* reshape for n_rep, n_trigger
* aggregate: average of t_measure / down-sampl
e
* filter data after, remove unused values.
*
Configures the acquisition on the digiters.
Sets total number of triggers and acquisition duration.
Since there is only 1 M4i trigger all channels will b
e
triggered simultaneously. Afterwards the unwanted data
is filtered in get_channel_data.
'''
if
not
job
.
acquisition_conf
.
configure_digitizer
:
return
acq_conf
=
job
.
acquisition_conf
# Use channels from acq_conf.
self
.
m4i_control
.
configure_acquisitions
(
job
.
digitizer_triggers
,
...
...
@@ -293,6 +288,14 @@ class Tektronix5014_Uploader:
return
self
.
m4i_control
.
actual_acquisition_points
(
duration
,
sample_rate
)
def
get_channel_data
(
self
,
seq_id
,
index
):
'''
Reads channel data.
Returns a dict with channel name: data.
Data is shaped (n_rep, n_trigger, time)
If a digitizer channel uses 2 data streams I and Q, then
this is combined to a complex value.
If iq_out is false, then only the real component is returned.
'''
acq_desc
=
self
.
acq_description
if
(
acq_desc
.
seq_id
!=
seq_id
or
(
index
is
not
None
and
acq_desc
.
index
!=
index
)):
...
...
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