def ppms_instrs(instr_str): if instr_str == 'k6': k6 = Keithley_6221('k6', 'GPIB::12::INSTR') builtins.k6 = k6 elif instr_str == 'k2182': k2182 = Keithley_2182a('k2182', 'GPIB::7::INSTR') builtins.k2182 = k2182 elif instr_str == 'k2015': k2015 = Keithley_2000('k2015', 'GPIB::1::INSTR') builtins.k2015 = k2015 elif instr_str == 'k2200': k2200 = Keithley_2200('k2200', 'GPIB::19::INSTR') builtins.k2200 = k2200 elif instr_str == 'ppms': ppms = QD('ppms') builtins.ppms = ppms elif instr_str == 'seekat': seekat = Seekat('seekat', 'COM6', timeout=8) builtins.seekat = seekat elif instr_str == 'dacadc': dacadc = DAC_ADC('dacadc', 'COM9', timeout=8) builtins.dacadc = dacadc elif instr_str == 'lr700': lr700 = LR_700('lr700', 'GPIB::18::INSTR') builtins.lr700 = lr700 elif instr_str == 'lockin1': lockin1 = SR830('lockin1', 'GPIB0::1::INSTR') builtins.lockin1 = lockin1 elif instr_str == 'lockin2': lockin2 = SR830('lockin2', 'GPIB0::2::INSTR') builtins.lockin2 = lockin2 elif instr_str == 'vdp': vdp = vdpArduino('vdp', 'COM10', timeout=6) builtins.vdp = vdp
def triton_instrs(instr_str): if instr_str == 'triton': triton = Triton('triton', 'triton.local', 33576) builtins.triton = triton # if instr_str == 'k6': # k6 = Keithley_6221('k6', 'GPIB::12::INSTR') # builtins.k6 = k6 elif instr_str == 'k2182': k2182 = Keithley_2182a('k2182', 'GPIB::13::INSTR') builtins.k2182 = k2182 elif instr_str == 'k2015': k2015 = Keithley_2000('k2015', 'GPIB::1::INSTR') builtins.k2015 = k2015 elif instr_str == 'k2200': k2200 = Keithley_2200('k2200', 'GPIB1::23::INSTR') builtins.k2200 = k2200 elif instr_str == 'seekat': seekat = Seekat('seekat', 'COM6', timeout=8) builtins.seekat = seekat elif instr_str == 'dacadc': dacadc = DAC_ADC('dacadc', 'COM9', timeout=8) builtins.dacadc = dacadc elif instr_str == 'lockin830': lockin830 = SR830('lockin830', 'GPIB0::8::INSTR') builtins.lockin830 = lockin830 elif instr_str == 'lockin830_2': lockin830_2 = SR830('lockin830_2', 'GPIB0::3::INSTR') builtins.lockin830_2 = lockin830_2 elif instr_str == 'lockin830_3': lockin830_3 = SR830('lockin830_3', 'GPIB0::7::INSTR') builtins.lockin830_3 = lockin830_3 elif instr_str == 'lockin865': lockin865 = SR865A('lockin865', 'GPIB0::4::INSTR') builtins.lockin865 = lockin865 elif instr_str == 'srframe': srframe = SIM900('srframe', 'GPIB0::2::INSTR') builtins.srframe = srframe elif instr_str == 'vdp': vdp = vdpArduino('vdp', 'COM10', timeout=6) builtins.vdp = vdp elif instr_str == 'sr560': sr560 = SR560('sr560', 'COM5') builtins.sr560 = sr560 elif instr_str == 'srdc': srdc = SRDC205('srdc', 'COM3') builtins.srdc = srdc elif instr_str == 'k6': k6 = Keithley_6221_rs232('k6', 'COM4') builtins.k6 = k6 elif instr_str == 'sig1025': sig1025 = Siglent1025('sig1025', 'USB0::0xF4ED::0xEE3A::SDG10GA4150294::INSTR') builtins.sig1025 = sig1025
def _add_lockins(self): """Add lockins to microscope. """ for lockin, lockin_info in self.config['instruments']['lockins'].items( ): name = '{}_lockin'.format(lockin) address = lockin_info['address'] if hasattr(self, name): #getattr(self, name, 'clear_instances')() getattr(self, name, 'close')() self.remove_component(name) instr = SR830(name, address, metadata={lockin: lockin_info}) setattr(self, name, instr) self.add_component(getattr(self, '{}_lockin'.format(lockin))) log.info('{} successfully added to microscope.'.format(name))
def setup_instruments(): # Here we create actual instruments with connections to physical hardware # Start with the lock-in amplifier sr830 = SR830('lockin', lock_in_amplifier_address) # Next we have the signal generator, this controls the AC field n9310a = Keysight_N9310A.N9310A('signal_gen', signal_generator_address) # Next we open a connection to the magnet power supply to control the DC field magnet_ps = CryogenicsLimited_MagnetController.MagnetController('magnet_ps', magnet_ps_address) # And finally the voltmeter (Implemented using a Tektronix TBS1072B oscilloscope, # which happens to need the same driver as the TPS2012B) tek_scope = TPS2012('dvm', scope_address) # Return the instruments as a list return [sr830, n9310a, tek_scope, magnet_ps]
def stick_setup_instrs(instr_str): if instr_str == 'lakeshore': lakeshore = Lakeshore211( 'lakeshore', 'COM5') # second from the top usb port on the dongle builtins.lakeshore = lakeshore if instr_str == 'lockin830': lockin830 = SR830('lockin830', 'GPIB0::8::INSTR') #refurbished lockin builtins.lockin830 = lockin830 # if instr_str == 'lockinrefurb': # lockinrefurb = SR830('lockinrefurb', 'GPIB0::8::INSTR') # builtins.lockinrefurb = lockinrefurb if instr_str == 'srdc': srdc = SRDC205('srdc', 'COM3') # second from bottom usb port on the dongle builtins.srdc = srdc if instr_str == 'srframe': srframe = SIM900_stick( 'srframe', 'GPIB0::2::INSTR' ) # 'COM1' is the DB9 port on the back of the computer. #COM6 is the upper USB port on the multi-port box builtins.srframe = srframe if instr_str == 'k2200': k2200 = Keithley_2200('k2200', 'GPIB0::22::INSTR') builtins.k2200 = k2200
def triton_instrs(instr_str): if instr_str == 'triton': triton = Triton('triton', 'triton.local', 33576) builtins.triton = triton if instr_str == 'k6': k6 = Keithley_6221('k6', 'GPIB::12::INSTR') builtins.k6 = k6 elif instr_str == 'k2182': k2182 = Keithley_2182a('k2182', 'GPIB::7::INSTR') builtins.k2182 = k2182 elif instr_str == 'k2015': k2015 = Keithley_2000('k2015', 'GPIB::1::INSTR') builtins.k2015 = k2015 elif instr_str == 'k2200': k2200 = Keithley_2200('k2200', 'GPIB::19::INSTR') builtins.k2200 = k2200 elif instr_str == 'seekat': seekat = Seekat('seekat', 'COM6', timeout=8) builtins.seekat = seekat elif instr_str == 'dacadc': dacadc = DAC_ADC('dacadc', 'COM9', timeout=8) builtins.dacadc = dacadc elif instr_str == 'lockin830': lockin830 = SR830('lockin830', 'GPIB0::8::INSTR') builtins.lockin830 = lockin830 elif instr_str == 'lockin865': lockin865 = SR865A('lockin865', 'GPIB0::4::INSTR') builtins.lockin865 = lockin865 elif instr_str == 'srframe': srframe = SIM900('srframe', 'GPIB0::2::INSTR') builtins.srframe = srframe elif instr_str == 'vdp': vdp = vdpArduino('vdp', 'COM10', timeout=6) builtins.vdp = vdp elif instr_str == 'sr560': sr560 = SR560('sr560', 'COM5') builtins.sr560 = sr560
# -*- coding: utf-8 -*- """ Created on Thu Jul 12 13:52:45 2018 @author: Cole """ from time import sleep from qcodes.instrument_drivers.stanford_research.SR830 import SR830 lockin1 = SR830('lockin1', 'GPIB0::8::INSTR') t = lockin1.time_constant.get() sleep(t) print(lockin1.R.get())
# -*- coding: utf-8 -*- """ Created on Thu Jul 5 10:14:32 2018 @author: Cole """ from ppms import Dynacool from tempFieldSweep import tempFieldSweep from readLockinData import readLockins from qcodes.instrument_drivers.stanford_research.SR830 import SR830 from fileParser import lineParse #Check ppms Computer for ip address ppms = Dynacool(1) #These are the addresses the SR830's must be set to lockin1 = SR830('lockin1', 'GPIB0::6::INSTR') lockin2 = SR830('lockin2', 'GPIB0::7::INSTR') lockin3 = SR830('lockin3', 'GPIB0::8::INSTR') with open("ppmsData.txt", 'r') as inputFile: sweepArgs = lineParse(inputFile.readLine()) tempFieldSweep(*sweepArgs, readLockins, lockin1, lockin2, lockin3, inputFile)
# -*- coding: utf-8 -*- """ Created on Fri Jul 13 14:50:42 2018 @author: Cole """ import numpy as np from qcodes.instrument_drivers.stanford_research.SR830 import SR830 from time import sleep lockin1 = SR830('lockin1', 'GPIB0::8::INSTR') lockin2 = SR830('lockin2', 'GPIB0::9::INSTR') #lockin3 = SR830('lockin3', 'GPIB0::8::INSTR') lockin3 = 0 startFrequency = 1 endFrequency = 1000 nFrequencyPoints = 5 def readLockins(lockin1, lockin2, lockin3, lockinData, fileName): #Get data from lockin1 lockinData[0] = lockin1.X.get() lockinData[1] = lockin1.Y.get() lockinData[2] = lockin1.R.get() #Get data from lockin2 lockinData[3] = lockin2.X.get()