def mw_sequence(do_program=True, name='cable_delay'): """ with this sequence the delay of the MW pulses with respect to the PH sync can be determined; here, we simply leave on green during the whole time; """ GreenAOM.set_power(10e-6) ins_mw.set_iq('on') ins_mw.set_pulm('on') ins_mw.set_frequency(mw_frq) ins_mw.set_power(mw_power) ins_mw.set_status('on') seq = Sequence(name) # vars for the channel names chan_phstart = 'PH_start' # historically PH_start chan_phsync = 'PH_MA1' # historically PH_sync awgcfg.configure_sequence(seq, 'picoharp', 'mw') seq.add_element('sync', goto_target='sync') seq.add_pulse('PH_sync', 'PH_start', 'sync', duration=50) seq.add_pulse('PH_sync_wait', 'PH_start', 'sync', start=0, duration = 20000, start_reference = 'PH_sync', link_start_to = 'start', amplitude = 0) seq.add_IQmod_pulse(name='mwburst', channel=('MW_Imod', 'MW_Qmod'), element='sync', start=5000, duration = 10000, start_reference='PH_sync', link_start_to='start', frequency=mw_frq_ssb, amplitude=mw_amp_ssb) seq.clone_channel('MW_pulsemod', 'MW_Imod', 'sync', start=-mw_pulse_mod_risetime, duration=2*mw_pulse_mod_risetime, link_start_to = 'start', link_duration_to = 'duration', amplitude = 2.0) seq.set_instrument(ins_awg) seq.set_clock(1e9) seq.set_send_waveforms(do_program) seq.set_send_sequence(do_program) seq.set_program_channels(True) seq.set_start_sequence(True) seq.force_HW_sequencing(True) seq.send_sequence() return True
def mw_sequence(do_program=True, name='cable_delay'): """ with this sequence the delay of the MW pulses with respect to the PH sync can be determined; here, we simply leave on green during the whole time; """ GreenAOM.set_power(10e-6) ins_mw.set_iq('on') ins_mw.set_pulm('on') ins_mw.set_frequency(mw_frq) ins_mw.set_power(mw_power) ins_mw.set_status('on') seq = Sequence(name) # vars for the channel names chan_phstart = 'PH_start' # historically PH_start chan_phsync = 'PH_MA1' # historically PH_sync awgcfg.configure_sequence(seq, 'picoharp', 'mw') seq.add_element('sync', goto_target='sync') seq.add_pulse('PH_sync', 'PH_start', 'sync', duration=50) seq.add_pulse('PH_sync_wait', 'PH_start', 'sync', start=0, duration=20000, start_reference='PH_sync', link_start_to='start', amplitude=0) seq.add_IQmod_pulse(name='mwburst', channel=('MW_Imod', 'MW_Qmod'), element='sync', start=5000, duration=10000, start_reference='PH_sync', link_start_to='start', frequency=mw_frq_ssb, amplitude=mw_amp_ssb) seq.clone_channel('MW_pulsemod', 'MW_Imod', 'sync', start=-mw_pulse_mod_risetime, duration=2 * mw_pulse_mod_risetime, link_start_to='start', link_duration_to='duration', amplitude=2.0) seq.set_instrument(ins_awg) seq.set_clock(1e9) seq.set_send_waveforms(do_program) seq.set_send_sequence(do_program) seq.set_program_channels(True) seq.set_start_sequence(True) seq.force_HW_sequencing(True) seq.send_sequence() return True
import qt from measurement.lib.AWG_HW_sequencer_v2 import Sequence from measurement.lib.config import awgchannels as awgcfg awg = qt.instruments['AWG'] pa = qt.instruments['physical_adwin'] chan_adsync = 'adwin_sync' # make the AWG sequence seq = Sequence('adwin_comm_test') awgcfg.configure_sequence(seq, 'adwin') seq.add_element('test1', goto_target='test1', trigger_wait=True) seq.add_pulse('waitabit', chan_adsync, 'test1', duration=10000, amplitude=0) seq.add_pulse('donesignal', chan_adsync, 'test1', duration=100, amplitude=2, start_reference='waitabit', link_start_to='end') seq.set_instrument(awg) seq.set_clock(1e9) seq.set_send_waveforms(True) seq.set_send_sequence(True) seq.set_program_channels(True) seq.set_start_sequence(True) seq.force_HW_sequencing(True) seq.send_sequence() # load and start the adwin program