def darkesr(name, range_MHz, pts, reps, power, MW_power, pulse_length): m = pulsar_msmt.DarkESR_Switch(name) m.params.from_dict(qt.exp_params['samples'][SAMPLE]) m.params.from_dict(qt.exp_params['protocols']['AdwinSSRO']) m.params.from_dict(qt.exp_params['protocols'][SAMPLE_CFG]['AdwinSSRO']) m.params.from_dict(qt.exp_params['protocols'][SAMPLE_CFG]['AdwinSSRO-integrated']) m.params.from_dict(qt.exp_params['protocols']['AdwinSSRO+espin']) m.params.from_dict(qt.exp_params['protocols']['111_1_sil18']['pulses']) #Added to include the MW switch MA m.params['mw_frq'] = m.params['ms-1_cntr_frq']-43e6 #MW source frequency m.params['mw_power'] = MW_power m.params['repetitions'] = reps m.params['ssbmod_frq_start'] = 43e6 - range_MHz*1e6 ## first time we choose a quite large domain to find the three dips (15) m.params['ssbmod_frq_stop'] = 43e6 + range_MHz*1e6 m.params['pts'] = pts m.params['pulse_length'] = pulse_length m.params['ssbmod_amplitude'] = power #0.01 m.params['sweep_pts'] = (np.linspace(m.params['ssbmod_frq_start'], m.params['ssbmod_frq_stop'], m.params['pts']) + m.params['mw_frq'])*1e-9 m.autoconfig() m.generate_sequence(upload=True) m.run() m.save() m.finish()
def darkesr(name, range_MHz, pts, reps): m = pulsar_msmt.DarkESR_Switch(name) m.params.from_dict(qt.exp_params['samples'][SAMPLE]) m.params.from_dict(qt.exp_params['protocols']['AdwinSSRO']) m.params.from_dict(qt.exp_params['protocols'][SAMPLE_CFG]['AdwinSSRO']) m.params.from_dict(qt.exp_params['protocols'][SAMPLE_CFG]['AdwinSSRO-integrated']) m.params.from_dict(qt.exp_params['protocols']['AdwinSSRO+espin']) m.params['mw_frq'] = m.params['ms-1_cntr_frq']-43e6 #MW source frequency #m.params['mw_frq'] = 2*m.params['zero_field_splitting'] - m.params['ms-1_cntr_frq'] -43e6 m.params['mw_power'] = 20 m.params['repetitions'] = reps m.params['ssbmod_frq_start'] = 43e6 - range_MHz*1e6 ## first time we choose a quite large domain to find the three dips (15) m.params['ssbmod_frq_stop'] = 43e6 + range_MHz*1e6 m.params['pts'] = pts m.params['pulse_length'] = 2e-6 m.params['ssbmod_amplitude'] = 0.01 m.autoconfig() m.generate_sequence(upload=True) m.run() m.save() m.finish()
def darkesr(name, ms = 'msp', range_MHz = 6, pts = 81, reps = 1000, freq=0, pulse_length = 2e-6, ssbmod_amplitude = None, mw_power = 20, mw_switch=False): if mw_switch: m = pulsar_msmt.DarkESR_Switch(name) else: m = pulsar_msmt.DarkESR(name) m.params.from_dict(qt.exp_params['samples'][SAMPLE]) m.params.from_dict(qt.exp_params['protocols']['AdwinSSRO']) m.params.from_dict(qt.exp_params['protocols'][SAMPLE_CFG]['AdwinSSRO']) m.params.from_dict(qt.exp_params['protocols'][SAMPLE_CFG]['AdwinSSRO-integrated']) m.params.from_dict(qt.exp_params['protocols']['AdwinSSRO+espin']) m.params.from_dict(qt.exp_params['protocols']['111_1_sil18']['pulses']) #Added to include the MW switch MA m.params['mw_power'] = mw_power m.params['temp'] = temperature_sensor.get_readlastval() m.params['magnet_position'] = magnet_Z_scanner.GetPosition() if ms == 'msp': m.params['mw_frq'] = m.params['ms+1_cntr_frq']-43e6 #MW source frequency m.params['pulse_length'] = pulse_length if ssbmod_amplitude == None: m.params['ssbmod_amplitude'] = 0.025 else: m.params['ssbmod_amplitude'] = ssbmod_amplitude elif ms == 'msm': m.params['mw_frq'] = m.params['ms-1_cntr_frq'] - 43e6 m.params['pulse_length'] = pulse_length if ssbmod_amplitude == None: m.params['ssbmod_amplitude'] = 0.010 else: m.params['ssbmod_amplitude'] = ssbmod_amplitude if freq != 0: m.params['mw_frq'] = freq - 43e6 m.params['repetitions'] = reps m.params['ssbmod_frq_start'] = 43e6 - range_MHz*1e6 m.params['ssbmod_frq_stop'] = 43e6 + range_MHz*1e6 m.params['pts'] = pts m.params['sweep_pts'] = (np.linspace(m.params['ssbmod_frq_start'], m.params['ssbmod_frq_stop'], m.params['pts']) + m.params['mw_frq'])*1e-9 m.autoconfig() m.generate_sequence(upload=True) m.run() m.save() m.finish()