Beispiel #1
0
    ]
    my_file = stlab.newfile(prefix + '_',
                            idstring + '_metadata',
                            autoindex=False,
                            colnames=parameters,
                            usefolder=False,
                            mypath=os.path.dirname(my_file_2.name),
                            usedate=False)
    stlab.writeline(my_file, parameters_line)

    # saving the plots
    title = 'Resistance'
    caption = ''
    stlab.autoplot(my_file_2,
                   'gate voltage (V)',
                   'Resistance (k ohm)',
                   title=title,
                   caption=caption)
    title = 'Phase'
    caption = ''
    stlab.autoplot(my_file_2,
                   'gate voltage (V)',
                   'phase ()',
                   title=title,
                   caption=caption)
    title = 'Duration'
    caption = ''
    stlab.autoplot(my_file_2,
                   'gate voltage (V)',
                   'demodulation duration (s)',
                   title=title,

print('MEASUREMENT FINISHED')

gate_dev.RampVoltage(0,tt=ramp_time) # to safely return back the gate voltage
zhinst.utils.disable_everything(daq, device)
dev.SetOutputOff()

#######################################################################
''' saving the data '''


if save_data:


	# saving the metafile
	plt.savefig(os.path.dirname(my_file_2.name)+'\\'+prefix)
	my_file_2.close()

	# saving extra plots
	
	title = 'Temperature'
	caption = ''
	stlab.autoplot(my_file_2,'time (s)','temperature (K)',title=title,caption=caption)






Beispiel #3
0
    plt.pause(0.1)

#######################################################################
''' saving the data '''

if save_data:

    # saving the metafile
    plt.savefig(os.path.dirname(my_file.name) + '\\' + prefix)

    # saving the plots
    title = 'Resistance'
    caption = ''
    stlab.autoplot(my_file,
                   'Current (A)',
                   'Resistance (k ohm)',
                   title=title,
                   caption=caption)
    title = 'Phase'
    caption = ''
    stlab.autoplot(my_file,
                   'Current (A)',
                   'phase ()',
                   title=title,
                   caption=caption)
    title = 'Duration'
    caption = ''
    stlab.autoplot(my_file,
                   'Current (A)',
                   'demodulation duration (s)',
                   title=title,
Beispiel #4
0
		
		myfile.write('\n')
		# stlab.metagen.fromarrays(myfile, iBiaslist, range(i+1), xtitle='Iset (A)',ytitle='Index_Voltage ()',colnames=colnames)
		time.sleep(time_sleep/5)
		 
		plt.plot(Vglist,resistance_array, 'o', color=palette(count), linewidth=1, alpha=0.9, label='{:.1f}nA'.format(bias_current*1e9))
		plt.legend()
		plt.title(prefix)
		plt.pause(0.1)


plt.savefig(os.path.dirname(myfile.name)+'\\'+prefix)
ivvi.RampVoltage(vgdac,0.,tt=1.) 
ivvi.RampAllZero(tt=1.)
ivvi.close()
zhinst.utils.disable_everything(daq, device)
v_gateleakage.close()
Keysight.RampVoltage(0.,tt=1.)
Keysight.close()


# saving suppelemntary plots
title = 'Resistance'
caption = ''
stlab.autoplot(myfile,'Iset (A)','Resistance (k ohm)',title=title,caption=caption)
title = 'Leakage Current'
caption = ''
stlab.autoplot(myfile,'Iset (A)','Leakage Current (A)',title=title,caption=caption)

myfile.close()
Beispiel #5
0
             color=palette(count),
             linewidth=1,
             alpha=0.9,
             label='{:.0f}Vg'.format(Vg))
    plt.legend()
    plt.title(prefix)
    plt.pause(0.1)

plt.savefig(os.path.dirname(myfile.name) + '\\' + prefix)
ivvi.RampVoltage(vgdac, 0., tt=1.)
ivvi.RampAllZero(tt=1.)
ivvi.close()
zhinst.utils.disable_everything(daq, device)
v_gateleakage.close()
Keysight.RampVoltage(0., tt=1.)
Keysight.close()

# saving suppelemntary plots
title = 'Resistance'
caption = ''
stlab.autoplot(myfile, 'Iset (A)', 'Rmeas (Ohm)', title=title, caption=caption)
title = 'Leakage Current'
caption = ''
stlab.autoplot(myfile,
               'Iset (A)',
               'Leakage Current (A)',
               title=title,
               caption=caption)

myfile.close()
Beispiel #6
0
KEYSIGHT.write('INST:SEL "NA"')  #set mode to Network Analyzer
KEYSIGHT.SinglePort()  #changed this to from twoport to singleport
KEYSIGHT.write("SENS:SWE:POIN " + str(numPoints))
KEYSIGHT.write("SENS:FREQ:START " + str(startFreq))
KEYSIGHT.write("SENS:FREQ:STOP " + str(stopFreq))
KEYSIGHT.SetPower(power)

#device.write("SENS:DIF:BAND " + str(bandwidth)) #this crashes the fieldfox error -113
KEYSIGHT.SetIFBW(100.)

myfile = stlab.newfile(prefix, '_', autoindex=True, mypath=path)

data = KEYSIGHT.MeasureScreen_pd()

stlab.saveframe(
    myfile,
    data)  #Save measured data to file.  Written as a block for spyview.
myfile.close()

stlab.autoplot(myfile,
               'Frequency (Hz)',
               'S11dB (dB)',
               title=prefix,
               caption=caption)
stlab.autoplot(myfile,
               'Frequency (Hz)',
               'S11Ph (rad)',
               title=prefix,
               caption=caption)
    plt.ylabel('bias current [nA]')
    plt.xlabel('gate voltage  [V]')
    plt.xlim(Vgmin, Vgmax)

    plt.pause(0.1)

plt.savefig(os.path.dirname(myfile.name) + '\\' + prefix)
ivvi.RampVoltage(S1h_dac, 0., tt=30.)
ivvi.RampAllZero(tt=2.)
vmeas.close()
ivvi.close()

myfile.close()

title = 'Resistance'
caption = ''
stlab.autoplot(myfile,
               'gate voltage (V)',
               'Resistance (ohm)',
               title=title,
               caption=caption)

title = 'Leakage Current'
caption = ''
stlab.autoplot(myfile,
               'gate voltage (V)',
               'leakage current (nA)',
               title=title,
               caption=caption)