Beispiel #1
0
 def __init__(self, params, filename):
 
     gpib_ch1 = int(params["Ch1 SR830 GPIB"])
     lockin1 = stanford.SR830(gpib_ch1)
     
      
     gpib_ch2 = int(params["Ch2 SR830 GPIB"])
     lockin2 = stanford.SR830(gpib_ch2)
     
     magnet = oxford.IPS120_10(GPIB_IPS120)
     
     # Define the temperature controllers
     self.cryocon = Cryocon32B(GPIB_CRYOCON32B)
     self.lakeshore = Lakeshore332(GPIB_LAKESHORE332)
     
 
     # Save parameters
     self.measurement_interval = float(params["sampling interval / s"])
     
     self.lockin1 = lockin1
     self.R_series1 = float(params["Ch1 R_series / Ohm"])
     self.lockin2 = lockin2
     self.R_series2 = float(params["Ch2 R_series / Ohm"])
     self.magnet = magnet
     
     self.vgate = hp.HP3478(GPIB_HPDMM)
     
     # Initialise variables
     self.current_values = VAR_INIT.copy()
     self.var_titles = VAR_TITLES.copy()
     
     # create a csv logger
     self.logger = csvlogger.Logger(filename, self.var_order, self.var_titles, self.format_strings)
Beispiel #2
0
    def __init__(self, params, filename):
        gpib_ch1 = int(params["Ch1 SR830 GPIB"])
        lockin1 = stanford.SR830(gpib_ch1)

        gpib_ch2 = int(params["Ch2 SR830 GPIB"])
        lockin2 = stanford.SR830(gpib_ch2)

        magnet = oxford.IPS120_10(GPIB_IPS120)

        p = params.copy()
        p["R_series1 / Ohm"] = params["Ch1 R_series / Ohm"]
        p["R_series2 / Ohm"] = params["Ch2 R_series / Ohm"]

        super().__init__(p, filename, lockin1, lockin2, magnet)
Beispiel #3
0
    def __init__(self, params, filename):
        # Define the temperature controllers
        self.cryocon = Cryocon32B(GPIB_CRYOCON32B)
        self.lakeshore = Lakeshore332(GPIB_LAKESHORE332)
        
    
        # Save parameters
        self.measurement_interval = float(params["sampling interval / s"])
        

        gpib_ch1 = int(params["Ch1 Keithley617 GPIB"])
        self.keithley617 = keithley.Keithley617(gpib_ch1)
                 
        gpib_ch2 = int(params["Ch2 SR830 GPIB"])
        self.lockin2 = stanford.SR830(gpib_ch2)
        
        self.R_series2 = float(params["Ch2 R_series / Ohm"])
        self.magnet = fake_magnets.ConstMagnet()
        
        # Initialise variables
        self.current_values = VAR_INIT.copy()
        self.var_titles = VAR_TITLES.copy()
        
        # create a csv logger
        self.logger = csvlogger.Logger(filename, self.var_order, self.var_titles, self.format_strings)
Beispiel #4
0
    def __init__(self, params, filename):
        gpib_sr830 = int(params["SR830 GPIB"])
        lockin1 = stanford.SR830(gpib_sr830)

        sens = float(params["PAR124 sens / V"])
        theta = float(params["PAR124 theta / degrees"])
        f = float(params["PAR124 f / Hz"])
        Vout = float(params["PAR124 Vout / V"])
        transformer = (int(params["PAR124 transformer mode"]) != 0)

        gpib_dmm = int(params["PAR124 DMM GPIB"])
        dmm = keithley.Keithley196(gpib_dmm)
        lockin2 = par.PAR124A(dmm,
                              sens=sens,
                              theta=theta,
                              f=f,
                              Vout=Vout,
                              transformer=transformer)

        magnet = fake_magnets.ConstMagnet()

        p = params.copy()
        p["R_series1 / Ohm"] = params["SR830 R_series / Ohm"]
        p["R_series2 / Ohm"] = params["PAR124 R_series / Ohm"]

        super().__init__(p, filename, lockin1, lockin2, magnet)
Beispiel #5
0
    def __init__(self, params, filename):
        # Save parameters
        gpib = int(params["RTD SR830 GPIB"])
        rtd_lockin = stanford.SR830(gpib)
        rtd_Rs = float(params["RTD R_series / Ohm"])
        thermometer = RTD(rtd_lockin, rtd_Rs)

        magnet = fake_magnets.ConstMagnet()
        p = params.copy()

        super().__init__(p, filename, thermometer, magnet)
Beispiel #6
0
    def __init__(self, params, filename, thermometer, magnet):
        # Save parameters
        self.thermometer = thermometer
        self.magnet = magnet

        gpib = int(params["MI SR830 GPIB"])
        self.mi_lockin = stanford.SR830(gpib)

        self.measurement_interval = float(params["sampling interval / s"])

        self.Rs_mi = float(params["MI R_series / Ohm"])

        # Initialise variables
        self.current_values = VAR_INIT.copy()
        self.var_titles = VAR_TITLES.copy()

        # create a csv logger
        self.logger = csvlogger.Logger(filename, self.var_order,
                                       self.var_titles, self.format_strings)
Beispiel #7
0
    title = "Mutual Inductance: Measuring against T"


# The main procedure
if __name__ == '__main__':
    print("starting.......")

    timestring = time.strftime("%Y%m%d_%H.%M.%S")
    logfilename = os.path.join(save_path,
                               "{0}_{1}.csv".format(timestring, filename))
    notesfilename = os.path.join(
        save_path, "{0}_{1}_notes.txt".format(timestring, filename))

    dmm = keithley.Keithley2000(15)
    thermometer = lakeshore.SiDiode(dmm, THERMOMETER_CALI)
    lockin = stanford.SR830(30)

    magnet = fake_magnets.ConstMagnet()

    experiment = MI_Tscan(thermometer, magnet, lockin, logfilename)

    with open(notesfilename, "w") as notesfile:
        notesfile.write("experiment: \"{}\"\n".format(experiment.title))
        notesfile.write("Local time (YYYY/MM/DD, HH:MM:SS): {}\n".format(
            time.strftime("%Y/%m/%d, %H:%M:%S")))
        notesfile.write(NOTES)
        notesfile.write(
            "thermometer calibration file: \"{}\".\n".format(THERMOMETER_CALI))

    gali = galileo.Galileo(experiment,
                           SAMPLING_INTERVAL,