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
c8f58cea
Commit
c8f58cea
authored
7 years ago
by
Stephan
Browse files
Options
Downloads
Patches
Plain Diff
test keysight
parent
1213e1da
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
__pycache__/base_pulse.cpython-36.pyc
+0
-0
0 additions, 0 deletions
__pycache__/base_pulse.cpython-36.pyc
base_pulse.py
+27
-19
27 additions, 19 deletions
base_pulse.py
keysight_test.py
+58
-0
58 additions, 0 deletions
keysight_test.py
with
85 additions
and
19 deletions
__pycache__/base_pulse.cpython-36.pyc
0 → 100755
+
0
−
0
View file @
c8f58cea
File added
This diff is collapsed.
Click to expand it.
base_pulse.py
+
27
−
19
View file @
c8f58cea
...
...
@@ -21,6 +21,12 @@ class pulselib:
self
.
backend
=
'
keysight
'
self
.
frequency
=
1e9
self
.
devices
=
[]
def
add_awgs
(
self
,
awg
):
for
i
in
awg
:
self
.
devices
.
append
(
i
)
def
mk_segment
(
self
,
name
):
return
self
.
segments_bin
.
new
(
name
)
...
...
@@ -176,6 +182,7 @@ class segment_bin():
return
False
p
=
pulselib
()
seg
=
p
.
mk_segment
(
'
test
'
)
# append functions?
...
...
@@ -204,30 +211,31 @@ seg.B1.plot_sequence()
# seg.insert_mode()
# seg.clear()
# class channel_data_obj():
# #object containing the data for a specific channels
# #the idea is that all the data is parmeterised and will be constuceted whenever the function is called.
#
# class channel_data_obj():
#
# #object containing the data for a specific channels
#
# #the idea is that all the data is parmeterised and will be constuceted whenever the function is called.
# self.my_data_array = np.empty()
#
# self.my_data_array = np.empty()
# add_data
# # add_data
# # class block_pulses:
# # # class to make block pulses
# class block_pulses:
# # class to make block pulses
# # how to do pulses
# # -> sin?
# # -> pulses?
# # -> step_pulses
# how to do pulses
# -> sin?
# -> pulses?
# -> step_pulses
# # p = pulselin()
# p = pulselin()
# # seg = pulselib.mk_segment('manip')
# # seg.p1.add_pulse(10,50, 20, prescaler= '1')
# # seg.p3.add_pulse(12,34, 40,)
# # seg.k2.add_pulse_advanced([pulse sequence])
# # seg.add_np(array, tstart_t_stop
# # seg.p5.add_sin(14,89, freq, phase, amp)
# seg = pulselib.mk_segment('manip')
# seg.p1.add_pulse(10,50, 20, prescaler= '1')
# seg.p3.add_pulse(12,34, 40,)
# seg.k2.add_pulse_advanced([pulse sequence])
# seg.add_np(array, tstart_t_stop
# seg.p5.add_sin(14,89, freq, phase, amp)
# # pulse
# pulse
This diff is collapsed.
Click to expand it.
keysight_test.py
0 → 100755
+
58
−
0
View file @
c8f58cea
import
qcodes.instrument_drivers.Keysight.SD_common.SD_AWG
as
keysight_awg
import
qcodes.instrument_drivers.Keysight.SD_common.SD_DIG
as
keysight_dig
awg1
=
keysight_awg
.
SD_AWG
(
'
awg1
'
,
chassis
=
0
,
slot
=
2
,
channels
=
4
,
triggers
=
8
)
awg2
=
keysight_awg
.
SD_AWG
(
'
awg2
'
,
chassis
=
0
,
slot
=
3
,
channels
=
4
,
triggers
=
8
)
awg3
=
keysight_awg
.
SD_AWG
(
'
awg3
'
,
chassis
=
0
,
slot
=
4
,
channels
=
4
,
triggers
=
8
)
awg4
=
keysight_awg
.
SD_AWG
(
'
awg4
'
,
chassis
=
0
,
slot
=
5
,
channels
=
4
,
triggers
=
8
)
awg1
.
set_channel_frequency
(
50e6
,
1
,
True
)
awg1
.
set_channel_frequency
(
50e6
,
2
,
True
)
awg2
.
set_channel_frequency
(
50e6
,
1
,
True
)
# set_channel_phase
awg1
.
set_channel_amplitude
(
1
,
1
)
# set_channel_offset
awg1
.
set_channel_wave_shape
(
4
,
1
)
# load_waveform
# load_waveform_int16
# reload_waveform_int16
# flush_waveform
# awg_queue_waveform
# awg_queue_config
# awg_flush
# awg_start
# awg_start_multiple
# awg_stop_multiple
# awg_config_external_trigger
# import base_pulse
# p = base_pulse.pulselib()
# p.add_awgs([awg1,awg2,awg3,awg4])
# seg = p.mk_segment('test')
# # append functions?
# seg.B0.add_pulse([[10,5]
# ,[20,5]])
# seg.B0.add_pulse([[20,0],[30,5], [30,0]])
# seg.B0.add_block(40,70,2)
# seg.B0.add_pulse([[70,0],
# [80,0],
# [150,5],
# [150,0]])
# # seg.B0.repeat(20)
# # seg.B0.wait(20)
# # print(seg.B0.my_pulse_data)
# # seg.reset_time()
# seg.B1.add_pulse([[10,0],
# [10,5],
# [20,5],
# [20,0]])
# seg.B1.add_block(20,50,2)
# seg.B1.add_block(80,90,2)
# seg.B1.plot_sequence()
\ No newline at end of file
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