Skip to content
Snippets Groups Projects
Commit 0e4e82f7 authored by JupyterHub User's avatar JupyterHub User
Browse files

added parameters for stress measurement

parent 88ce3932
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,8 @@ def I_V_Measurement(start,stop,step):
del device
def stress_sampling():
def stress_sampling(V2_stress=10,V3_stress=3,stress_time=30,V2_sampling=10,V3_sampling=2,sampling_mode='L10',
number_of_points=21,integration_time='SHOR'):
#connect to device
device = module.HP4155a('GPIB0::17::INSTR')
......@@ -80,10 +81,10 @@ def stress_sampling():
device.sync(4,0)
#values
device.smu_value(2,10)
device.smu_value(3,-3)
device.smu_value(2,V2_stress)
device.smu_value(3,V3_stress)
#time
zeit=device.stress_time(30)
zeit=device.stress_time(stress_time)
device.start_stress()
while device.operation_completed() == False:
......@@ -100,18 +101,18 @@ def stress_sampling():
#set the values of smu for sampling
device.constant_smu_sampling(2,10)
device.constant_smu_sampling(3,2)
device.constant_smu_sampling(2,V2_sampling)
device.constant_smu_sampling(3,V3_sampling)
#time log10
device.sampling_mode('L10')
device.sampling_mode(sampling_mode)
#minimum initial interval
#device.initial_interval('MIN')
device.initial_interval('MIN')
device.number_of_points(21)
device.integration_time('SHOR')
device.number_of_points(number_of_points)
device.integration_time(integration_time)
device.single_measurement()
while device.operation_completed() == False:
......@@ -122,18 +123,16 @@ def stress_sampling():
I2_values = device.return_data('I2')
fig = plt.figure()
plt.plot(time_values,I2_values)
plt.show()
fig = plt.figure()
plt.plot(time_values,I3_values)
plt.plot(time_values,I2_values,label='I2')
plt.plot(time_values,I3_values,label='I3')
plt.legend()
plt.show()
del device
#prepare full measurement
def ctlm(field_name ='M00',time='MED',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3),comp=10V,distances=(5,10,15,25,45)):
def ctlm(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3),comp=10,distances=(5,10,15,25,45),time='MED'):
#connect to the device
device = module.HP4155a('GPIB0::17::INSTR')
......@@ -227,6 +226,7 @@ def ctlm(field_name ='M00',time='MED',start=-50*10**(-3),stop=50*10**(-3),step=1
break
#close the connection and plot all the diagramms
plt.legend()
plt.show()
del device
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment