def gate_scan_with_c_optimize(): if repeated_red_scans(gate_scan=True, gate_range=(0,1200),pts=19): qt.get_setup_instrument('GreenAOM').set_power(20e-6) qt.get_setup_instrument('c_optimiz0r').optimize(xyz_range=[.2,.2,.5], cnt=1, int_time=50, max_cycles=20) qt.get_setup_instrument('c_optimiz0r').optimize(xyz_range=[.05,.1,.2], cnt=1, int_time=50, max_cycles=20) qt.get_setup_instrument('optimiz0r').optimize(cnt=1, dims=['x','y'], cycles=3, int_time=50) qt.get_setup_instrument('GreenAOM').set_power(0e-6) repeated_red_scans(gate_scan=True, gate_range=(0,-1200),pts=19)
def __init__(self, name='LT1', red_labjack_dac_nr=6, yellow_labjack_dac_nr = 0, red_wm_channel = 6, yellow_wm_channel = 2): LaserFrequencyScan.__init__(self, name) self.adwin = qt.get_setup_instrument('adwin') self.physical_adwin=qt.get_setup_instrument('physical_adwin_lt2') self.mw = qt.get_setup_instrument('SMB100') self.labjack= qt.get_setup_instrument('labjack') self.set_red_laser_voltage = lambda x: self.labjack.__dict__['set_bipolar_dac'+str(red_labjack_dac_nr)](x) self.get_red_laser_voltage = lambda : self.labjack.__dict__['get_bipolar_dac'+str(red_labjack_dac_nr)]() self.set_red_power = qt.get_setup_instrument('NewfocusAOM').set_power self.set_yellow_laser_voltage = lambda x: self.labjack.__dict__['set_bipolar_dac'+str(yellow_labjack_dac_nr)](x) self.get_yellow_laser_voltage = lambda : self.labjack.__dict__['get_bipolar_dac'+str(yellow_labjack_dac_nr)]() self.set_yellow_power = qt.get_setup_instrument('YellowAOM').set_power self.set_repump_power = qt.get_setup_instrument('GreenAOM').set_power self.get_frequency = lambda x : self.physical_adwin.Get_FPar(x+40) self.get_counts = self.adwin.measure_counts self.counter_channel = 0 self.red_wm_channel = red_wm_channel self.red_voltage_frequency_relation_sign = -1 self.yellow_voltage_frequency_relation_sign = 1 self.yellow_wm_channel = yellow_wm_channel self.max_v = 9. self.min_v = -9. self.set_gate_voltage = lambda x: qt.get_setup_instrument('ivvi').set_dac2(x)
def gate_scan_with_c_optimize(): if repeated_red_scans(gate_scan=True, gate_range=(0, 1200), pts=19): qt.get_setup_instrument('GreenAOM').set_power(20e-6) qt.get_setup_instrument('c_optimiz0r').optimize(xyz_range=[.2, .2, .5], cnt=1, int_time=50, max_cycles=20) qt.get_setup_instrument('c_optimiz0r').optimize( xyz_range=[.05, .1, .2], cnt=1, int_time=50, max_cycles=20) qt.get_setup_instrument('optimiz0r').optimize(cnt=1, dims=['x', 'y'], cycles=3, int_time=50) qt.get_setup_instrument('GreenAOM').set_power(0e-6) repeated_red_scans(gate_scan=True, gate_range=(0, -1200), pts=19)
def __init__(self, name='LT4', red_labjack_dac_nr=4, yellow_labjack_dac_nr = 2, red_wm_channel = 8, yellow_wm_channel = 2): LaserFrequencyScan.__init__(self, name) self.adwin = qt.get_setup_instrument('adwin') self.physical_adwin=qt.get_setup_instrument('physical_adwin') self.mw = qt.get_setup_instrument('SMB100') self.labjack= qt.get_setup_instrument('labjack') self.wavemeter=qt.instruments['wavemeter'] self.newfocus = qt.instruments['NewfocusAOM'] self.set_red_laser_voltage = lambda x: self.labjack.__dict__['set_bipolar_dac'+str(red_labjack_dac_nr)](x) self.get_red_laser_voltage = lambda : self.labjack.__dict__['get_bipolar_dac'+str(red_labjack_dac_nr)]() self.set_red_power = qt.get_setup_instrument('MatisseAOM').set_power self.set_yellow_laser_voltage = lambda x: self.labjack.__dict__['set_bipolar_dac'+str(yellow_labjack_dac_nr)](x) self.get_yellow_laser_voltage = lambda : self.labjack.__dict__['get_bipolar_dac'+str(yellow_labjack_dac_nr)]() self.set_yellow_power = qt.get_setup_instrument('YellowAOM').set_power self.set_repump_power = qt.get_setup_instrument('GreenAOM').set_power self.get_frequency = lambda x : self.physical_adwin.Get_FPar(40+red_wm_channel) #(self.wavemeter.Get_Frequency(x)-470.4)*1000. self.get_counts = self.adwin.measure_counts self.counter_channel = 0 self.red_wm_channel = red_wm_channel self.red_voltage_frequency_relation_sign = 1 #### 2014-08-14 for newfocus this is negative, DL maybe positive? self.yellow_voltage_frequency_relation_sign = 1 self.yellow_wm_channel = yellow_wm_channel self.max_v = 9. self.min_v = -9.
def __init__(self, name='LT1', red_labjack_dac_nr=6, yellow_labjack_dac_nr=0, red_wm_channel=6, yellow_wm_channel=2): LaserFrequencyScan.__init__(self, name) self.adwin = qt.get_setup_instrument('adwin') self.physical_adwin = qt.get_setup_instrument('physical_adwin') self.mw = qt.get_setup_instrument('SMB100') self.labjack = qt.get_setup_instrument('labjack') self.set_red_laser_voltage = lambda x: self.labjack.__dict__[ 'set_bipolar_dac' + str(red_labjack_dac_nr)](x) self.get_red_laser_voltage = lambda: self.labjack.__dict__[ 'get_bipolar_dac' + str(red_labjack_dac_nr)]() self.set_red_power = qt.get_setup_instrument('NewfocusAOM').set_power self.set_yellow_laser_voltage = lambda x: self.labjack.__dict__[ 'set_bipolar_dac' + str(yellow_labjack_dac_nr)](x) self.get_yellow_laser_voltage = lambda: self.labjack.__dict__[ 'get_bipolar_dac' + str(yellow_labjack_dac_nr)]() self.set_yellow_power = qt.get_setup_instrument('YellowAOM').set_power self.set_repump_power = qt.get_setup_instrument('GreenAOM').set_power self.get_frequency = lambda x: self.physical_adwin.Get_FPar(x + 40) self.get_counts = lambda x: self.adwin.get_countrates( ) #self.adwin.measure_counts self.counter_channel = 0 self.red_wm_channel = red_wm_channel self.red_voltage_frequency_relation_sign = -1 self.yellow_voltage_frequency_relation_sign = 1 self.yellow_wm_channel = yellow_wm_channel self.max_v = 9.5 self.min_v = -9.5 self.set_gate_voltage = lambda x: qt.get_setup_instrument('ivvi' ).set_dac3(x)
qt.get_setup_instrument('c_optimiz0r').optimize(xyz_range=[.05,.1,.2], cnt=1, int_time=50, max_cycles=20) qt.get_setup_instrument('optimiz0r').optimize(cnt=1, dims=['x','y'], cycles=3, int_time=50) qt.get_setup_instrument('GreenAOM').set_power(0e-6) repeated_red_scans(gate_scan=True, gate_range=(0,-1200),pts=19) def single_scan(): m = Scan() m.mw.set_power(-7) m.mw.set_frequency(2.8265e9) m.mw.set_iq('off') m.mw.set_pulm('off') m.mw.set_status('on') #m.red_scan(74, 90, voltage_step=0.01, integration_time_ms=20, power = 3e-9) #m.yellow_red(62, 80, 0.02, 0.5e-9, 74, 92, 0.02, 20, 3e-9) m.yellow_scan(62, 77, power = 0.5e-9, voltage_step=0.02, voltage_step_scan=0.03) # m.oldschool_red_scan(55, 75, 0.01, 20, 0.5e-9) m.mw.set_status('off') if __name__ == '__main__': qt.get_setup_instrument('GreenAOM').set_power(0.e-6) single_scan() #green_yellow_during_scan() #yellow_ionization_scan(13,20) # repeated_red_scans() # repeated_red_scans(spectral_diffusion=True) #repeated_red_scans(gate_scan=True, gate_range=(0,-1100),pts=12) #gate_scan_with_c_optimize()
#m.scan_to_frequency(65) # m.red_scan(60, 80, voltage_step=0.01, integration_time_ms=20, power = 3e-9) #0.6e-9 #m.yellow_red(0,30, 0.02, 0.3e-9, 65, 75, 0.02, 20, 0.5e-9) # m.yellow_scan(0, 30, power = 2e-9, voltage_step=0.02, voltage_step_scan=0.02) # m.oldschool_red_scan(55, 75, 0.01, 20, 0.5e-9) m.oldschool_red_scan(54, 56, 0.01, 20, 0.5e-9) if do_MW: m.mw.set_status('off') def set_gate_voltage(v): if v > 2. or v < -2.: print 'Gate voltage too high:', v return False return qt.instruments['adwin'].set_dac_voltage(('gate', v)) if __name__ == '__main__': qt.get_setup_instrument('GreenAOM').set_power(0.000e-6) single_scan('Pippin_SIL3') #fast_gate_scan('Sam_SIL5_Green') #green_yellow_during_scan() #yellow_ionization_scan(13,20) # repeated_red_scans(pts =50) # repeated_red_scans(spectral_diffusion=True) #repeated_red_scans(gate_scan=True, gate_range=(0,-1100),pts=12) #gate_scan_with_c_optimize()