示例#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)
示例#2
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)
示例#3
0
 def __init__(self, thermometer, magnet, lockin, logfilename):
     # Save parameters
     self.thermometer = thermometer
     self.magnet = magnet
     self.lockin = lockin
     
     # Initialise variables
     self.currentValues = VAR_INIT.copy()
     self.varTitles = VAR_TITLES.copy()
     
     # create a csv logger
     self.logger = csvlogger.Logger(logfilename, VAR_LIST, VAR_TITLES, VAR_FORMATS)
示例#4
0
文件: mi001.py 项目: caizikun/elflab
    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)
示例#5
0
    def __init__(self, params, filename, **kwargs):
        self.measurement_interval = float(params["sample_interval"])
        self.current_values = mi.initialData.copy()

        self.plotXYs = XYVARS
        self.n = 0
        time.perf_counter()
        ThermClass = getattr(importlib.import_module(THERMOMETER[0]),
                             THERMOMETER[1])
        self.therm = ThermClass()

        MagnetClass = getattr(importlib.import_module(MAGNET[0]), MAGNET[1])
        self.magnet = MagnetClass()

        LockinClass = getattr(importlib.import_module(LOCKIN[0]), LOCKIN[1])
        self.lockin = LockinClass()

        self.logger = csvlogger.Logger(filename, self.var_order,
                                       self.var_titles, self.format_strings)
示例#6
0
    def __init__(self, params, filename, lockin1, lockin2, magnet):

        # Save parameters
        self.lockin1 = lockin1
        self.R_series1 = float(params["R_series1 / Ohm"])
        self.lockin2 = lockin2
        self.R_series2 = float(params["R_series2 / Ohm"])
        self.magnet = magnet

        self.measurement_interval = float(params["sampling interval / s"])
        gpib_lakeshore = int(params["GPIB Lakeshore 340"])

        # Define the temperature controllers
        self.lakeshore = Lakeshore340(gpib_lakeshore)

        # Initialise variables
        self.current_values = VAR_INIT.copy()  # = {"name": "value"}
        # create a csv logger
        self.logger = csvlogger.Logger(filename, self.var_order,
                                       self.var_titles, self.format_strings)
示例#7
0
    def __init__(self, lockin1, R_series1, lockin2, R_series2, magnet,
                 logfilename):
        # Define the temperature controllers
        self.cryocon = Cryocon32B(GPIB_CRYOCON32B)
        self.lakeshore = Lakeshore332(GPIB_LAKESHORE332)

        # Save parameters
        self.lockin1 = lockin1
        self.R_series1 = R_series1
        self.lockin2 = lockin2
        self.R_series2 = R_series2
        self.magnet = magnet

        # Initialise variables
        self.currentValues = VAR_INIT.copy()
        self.varTitles = VAR_TITLES.copy()

        # create a csv logger
        self.logger = csvlogger.Logger(logfilename, VAR_LIST, VAR_TITLES,
                                       VAR_FORMATS)
示例#8
0
 def __init__(self, params, filename, lockin1, lockin2, magnet):
     # 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["R_series1 / Ohm"])
     self.lockin2 = lockin2
     self.R_series2 = float(params["R_series2 / Ohm"])
     self.magnet = magnet
     
     # 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)
示例#9
0
    def __init__(self, params, filename):

        # Save parameters
        gpib1 = int(params["GPIB SR844 1st"])
        self.lockin1 = stanford.SR844(gpib1)

        gpib2 = int(params["GPIB SR844 2nd"])
        self.lockin2 = stanford.SR844(gpib2)

        self.magnet = fake_magnets.ConstMagnet()

        self.measurement_interval = float(params["sampling interval / s"])
        gpib_lakeshore = int(params["GPIB Lakeshore 340"])

        # Define the temperature controllers
        self.lakeshore = Lakeshore340(gpib_lakeshore)

        # Initialise variables
        self.current_values = VAR_INIT.copy()  # = {"name": "value"}
        # create a csv logger
        self.logger = csvlogger.Logger(filename, self.var_order,
                                       self.var_titles, self.format_strings)
示例#10
0
    def __init__(self, params, filename):

        self.keithley617 = keithley.Keithley617(GPIB_KEITHLEY617)
        
        self.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.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)