# Authors: # Bas Hensen <*****@*****.**> # Gijs de Lange - TNW <*****@*****.**> # Wolfgang Pfaff <*****@*****.**> import numpy as np import pulse import pulselib import element import view reload(pulse) reload(element) reload(view) reload(pulselib) e = element.Element('sequence_element', clock=1e9, min_samples=0) e.define_channel('EOM_Matisse') e.define_channel('EOM_AOM_Matisse') opt_pulse = pulselib.short_EOMAOMPulse('Eom Aom Pulse', eom_channel='EOM_Matisse', aom_channel='EOM_AOM_Matisse') e.add(opt_pulse) e.print_overview() print e.next_pulse_time('EOM_Matisse'), e.next_pulse_time('EOM_AOM_Matisse') view.show_element(e)
# e.add(pulse.cp(p1, amplitude=0.5, length=10e-9), start=10e-9, # refpulse='reference', refpoint='end') # e.add(pulse.cp(p2, 1e7, 1, 1e-7), start=10e-9) # e.print_overview() # view.show_element(e, delay=True) # if delay is false, the channel delay shift # # is omitted in the plots (channels are offset then) e2 = element.Element('sequence_element', clock=1e9, min_samples=0, global_time=True, time_offset=1.236e-6) e2.define_channel('ch1', delay=110e-9) e2.define_channel('ch2', delay=100e-9) e2.define_channel('ch3', delay=120e-9) e2.append(pulse.cp(p1, amplitude=1, length=100e-9), pulse.cp(p1, amplitude=0.5, length=10e-9), pulse.cp(p2, 1e7, 1, 1e-7)) e2.print_overview() print e2.next_pulse_time('ch1'), e2.next_pulse_time('ch2'), \ e2.next_pulse_time('ch3') print e2.next_pulse_global_time('ch1'), e2.next_pulse_global_time('ch2'), \ e2.next_pulse_global_time('ch3') view.show_element(e2, delay=True)
import numpy as np import pulse import pulselib import element import view reload(pulse) reload(element) reload(view) reload(pulselib) e = element.Element('sequence_element', clock=1e9, min_samples=0) e.define_channel('EOM_Matisse') e.define_channel('EOM_AOM_Matisse') opt_pulse = pulselib.short_EOMAOMPulse('Eom Aom Pulse', eom_channel = 'EOM_Matisse', aom_channel = 'EOM_AOM_Matisse') e.add(opt_pulse) e.print_overview() print e.next_pulse_time('EOM_Matisse'), e.next_pulse_time('EOM_AOM_Matisse') view.show_element(e)
# # (they are deep copies) can break the reference relation! # e.add(pulse.cp(p1, amplitude=1, length=10e-8), name='reference') # e.add(pulse.cp(p1, amplitude=0.5, length=10e-9), start=10e-9, # refpulse='reference', refpoint='end') # e.add(pulse.cp(p2, 1e7, 1, 1e-7), start=10e-9) # e.print_overview() # view.show_element(e, delay=True) # if delay is false, the channel delay shift # # is omitted in the plots (channels are offset then) e2 = element.Element('sequence_element', clock=1e9, min_samples=0, global_time=True, time_offset=1.236e-6) e2.define_channel('ch1', delay=110e-9) e2.define_channel('ch2', delay=100e-9) e2.define_channel('ch3', delay=120e-9) e2.append( pulse.cp(p1, amplitude=1, length=100e-9), pulse.cp(p1, amplitude=0.5, length=10e-9), pulse.cp(p2, 1e7, 1, 1e-7)) e2.print_overview() print e2.next_pulse_time('ch1'), e2.next_pulse_time('ch2'), \ e2.next_pulse_time('ch3') print e2.next_pulse_global_time('ch1'), e2.next_pulse_global_time('ch2'), \ e2.next_pulse_global_time('ch3') view.show_element(e2, delay=True)