Skip to content
Snippets Groups Projects
Commit c36316aa authored by Sander de Snoo's avatar Sander de Snoo
Browse files

Added marker to test

parent ed3a549a
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ def test1():
s.P2.add_block(110, 200, 1000)
s.q1.add_MW_pulse(110,120,500,2.3e9)#,pi/2)
s.SD1.acquire(10, 100)
s.M1.add_marker(10, 120)
s.M1.add_marker(100, 120)
s.wait(90000)
sequence = pulse.mk_sequence([s])
......
from pulse_lib.tests.configurations.test_configuration import context
import pulse_lib.segments.utility.looping as lp
#%%
from scipy import signal
......@@ -25,13 +24,14 @@ def tukey_pulse(duration, sample_rate, amplitude, alpha):
#%%
def test1():
pulse = context.init_pulselib(n_gates=1)
pulse = context.init_pulselib(n_gates=1, n_markers=1)
segments = []
s = pulse.mk_segment()
segments.append(s)
s.M1.add_marker(0, 8)
s.wait(10, reset_time=True)
s.P1.add_custom_pulse(15, 75, 100.0, tukey_pulse, alpha=0.5)
......@@ -44,13 +44,14 @@ def test1():
context.plot_awgs(sequence, ylim=(-0.2, 0.2))
def test2():
pulse = context.init_pulselib(n_gates=1)
pulse = context.init_pulselib(n_gates=1, n_markers=1)
segments = []
s = pulse.mk_segment()
segments.append(s)
s.M1.add_marker(0, 8)
s.wait(10, reset_time=True)
s.P1.add_block(0, 200, 20)
......@@ -65,13 +66,14 @@ def test2():
def test3():
pulse = context.init_pulselib(n_gates=1)
pulse = context.init_pulselib(n_gates=1, n_markers=1)
segments = []
s = pulse.mk_segment()
segments.append(s)
s.M1.add_marker(0, 8)
s.wait(10, reset_time=True)
s.P1.add_ramp_ss(0, 200, -50, 50)
......@@ -86,13 +88,14 @@ def test3():
def test4():
pulse = context.init_pulselib(n_gates=1)
pulse = context.init_pulselib(n_gates=1, n_markers=1)
segments = []
s = pulse.mk_segment()
segments.append(s)
s.M1.add_marker(0, 8)
s.wait(10, reset_time=True)
s.P1.add_ramp_ss(0, 50, -50, 50)
......@@ -107,13 +110,14 @@ def test4():
context.plot_awgs(sequence, ylim=(-0.2, 0.2))
def test5():
pulse = context.init_pulselib(n_gates=1)
pulse = context.init_pulselib(n_gates=1, n_markers=1)
segments = []
s = pulse.mk_segment()
segments.append(s)
s.M1.add_marker(0, 8)
s.wait(10, reset_time=True)
s.P1.add_ramp_ss(0, 150, -50, 50)
......
......@@ -3,7 +3,7 @@ from pulse_lib.tests.configurations.test_configuration import context
#%%
def test1(t):
pulse = context.init_pulselib(n_gates=1)
pulse = context.init_pulselib(n_gates=1, n_markers=1, n_sensors=1)
segments = []
......@@ -13,6 +13,7 @@ def test1(t):
n = 20
s.P1.add_block(0, 20, -100)
s.M1.add_marker(0, 20)
s.reset_time()
for i in range(n):
......@@ -26,6 +27,7 @@ def test1(t):
s.reset_time()
s.reset_time()
s.SD1.acquire(0, 20)
s.wait(20)
sequence = pulse.mk_sequence(segments)
......@@ -33,7 +35,10 @@ def test1(t):
context.plot_awgs(sequence, ylim=(-0.2, 0.2))
# return context.run('1ns', sequence, m_param)
m_param = sequence.get_measurement_param()
context.add_hw_schedule(sequence)
return context.run('shuttle', sequence, m_param)
#%%
......@@ -47,6 +52,7 @@ if __name__ == '__main__':
ds1 = test1(8)
ds1 = test1(7)
ds1 = test1(4)
ds1 = test1(3)
ds1 = test1(2)
ds1 = test1(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