if __name__ == "__main__": if len(sys.argv) > 1: start_voltage = VOLTAGE_START sample_name = sys.argv[1] coil_type = sys.argv[2] try: lockin = Instrument('GPIB0::8') signal_gen = Instrument('GPIB1::7') modulation_gen = Instrument('GPIB3::2') power_supply = Instrument('GPIB2::10') except Exception as e: raise e # f, axarr = plt.subplots(3, sharex = True) # axarr[0].set_xlim([float(VOLTAGE_START), float(start_voltage)+NUMBER_OF_POINTS*RESOLUTION]) # axarr[0].grid(which = 'both') # axarr[1].set_xlim([float(VOLTAGE_START), float(start_voltage)+NUMBER_OF_POINTS*RESOLUTION]) # axarr[1].grid(which = 'both') # axarr[2].set_xlim([float(VOLTAGE_START), float(start_voltage)+NUMBER_OF_POINTS*RESOLUTION]) # axarr[2].grid(which = 'both') # plt.ion() s_1.open() s_2.open() sweep(start_voltage, sample_name, coil_type) s_1.close() s_2.close() else: print "Enter sample name and voltage level in modulation coil: 'DPPH 10Vpp' or 'AICFU CurrAmp'"
if __name__ == "__main__": if len(sys.argv) > 1: start_voltage = VOLTAGE_START sample_name = sys.argv[1] coil_type = sys.argv[2] try: lockin = Instrument('GPIB0::8') signal_gen = Instrument('GPIB1::7') modulation_gen = Instrument('GPIB3::2') power_supply = Instrument('GPIB2::10') except Exception as e: raise e # f, axarr = plt.subplots(3, sharex = True) # axarr[0].set_xlim([float(VOLTAGE_START), float(start_voltage)+NUMBER_OF_POINTS*RESOLUTION]) # axarr[0].grid(which = 'both') # axarr[1].set_xlim([float(VOLTAGE_START), float(start_voltage)+NUMBER_OF_POINTS*RESOLUTION]) # axarr[1].grid(which = 'both') # axarr[2].set_xlim([float(VOLTAGE_START), float(start_voltage)+NUMBER_OF_POINTS*RESOLUTION]) # axarr[2].grid(which = 'both') # plt.ion() s_1.open() s_2.open() sweep(start_voltage, sample_name, coil_type) s_1.close() s_2.close() else: print "Enter sample name and voltage level in modulation coil: 'DPPH 10Vpp' or 'AICFU CurrAmp'"