Пример #1
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)
Пример #2
0
 def __init__(self, params, filename):   
     sens = float(params["sens / V"])
     theta = float(params["theta / degrees"])
     f = float(params["f / Hz"])
     Vout = float(params["Vout / V"])
     transformer = (int(params["transformer mode"]) != 0)
     
     gpib_dmm = int(params["GPIB DMM"])
     
     dmm = keithley.Keithley196(gpib_dmm)
     lockin1 = par.PAR124A(dmm, sens=sens, theta=theta, f=f, Vout=Vout, transformer=transformer)
     lockin2 = fake_lockins.ConstLockin(float("nan"))
     
     magnet = fake_magnets.ConstMagnet()
     
     p = params.copy()
     p["R_series2 / Ohm"] = "0"
     super().__init__(p, filename, lockin1, lockin2, magnet)