plt.title(prefix+'$I_{max}$:{:.1f}nA, $I_{mmin}$:{:.1f}nA'.fomrat(1e-9*V_bias/np.Minimum(resistance_array),1e-9*V_bias/np.Maximum(resistance_array))) ''' Initialize ''' pygame.init() pygame.display.set_mode((100,100)) ## Temperature readout mytriton = TritonWrapper() try: T = mytriton.GetTemperature(8) except: T = -1 ## Output setting idstring = '_at{:.2f}mK'.format(T).replace('.','p') colnames = ['Vmeas (V)', 'Iset (A)', 'Rmeas (Ohm)', 'Vgate (V)', 'T (mK)', 'Time (s)', 'Ileakage (nA)'] myfile = stlab.newfile(prefix, idstring, colnames, autoindex=True) Vglist = np.linspace(Vgmax, Vgmin, (Vgmax-Vgmin)/deltaVg+1) Vg_ini = Vglist[0] END = False
pygame.init() pygame.display.set_mode((100,100)) ########################################################## ''' Initializing the devices ''' # initial configuration of the Lock-in apilevel_example = 6 # The API level supported by this example. (daq, device, props) = zhinst.utils.create_api_session(device_id, apilevel_example, required_devtype='.*LI|.*IA|.*IS') zhinst.utils.api_server_version_check(daq) zhinst.utils.disable_everything(daq, device) out_mixer_channel = zhinst.utils.default_output_mixer_channel(props) ## Temperature readout mytriton = TritonWrapper() # resetting the IVVI dev = IVVI_DAC('COM5') # IVVI dev.RampAllZero() # initializing the Keithley for gate current measurement vmeasure = stlab.adi('TCPIP::192.168.1.161::INSTR',read_termination='\n') # with Keithley DMM6500 # vmeasure=stlab.adi("ASRL1::INSTR") #with Keithley 2000 vmeasure.write('SENS:VOLT:DC:RANG:AUTO 0') vmeasure.write('SENS:VOLT:DC:RANGE 2') vmeasure.write(':INIT:CONT 0') vmeasure.write('VOLT:NPLC 1') vmeasure.write('TRIG:SOUR IMM')