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

delete return stress time from class function

rwth jupyter was down so i push this now
parent ceed4f4a
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:243a9c3f-cc23-431c-9279-72ea711c14ea tags:
``` python
import measurements
from measurements import *
```
%% Cell type:code id:d7dc3262-50c8-44db-9809-560d747fade3 tags:
``` python
stress_sampling()
```
%% Output
%% Cell type:code id:906ce3ff-a3d0-480b-bc07-a4f124be2bb6 tags:
``` python
```
...@@ -97,7 +97,7 @@ def stress_sampling(V2_stress=0,V3_stress=0,stress_time=5,V2_sampling=1,V3_sampl ...@@ -97,7 +97,7 @@ def stress_sampling(V2_stress=0,V3_stress=0,stress_time=5,V2_sampling=1,V3_sampl
device.smu_value(2,V2_stress) device.smu_value(2,V2_stress)
device.smu_value(3,V3_stress) device.smu_value(3,V3_stress)
#time #time
zeit=device.stress_time(stress_time) device.stress_time(stress_time)
device.start_stress() device.start_stress()
while device.operation_completed() == False: while device.operation_completed() == False:
......
...@@ -32,7 +32,6 @@ class HP4155a(object): ...@@ -32,7 +32,6 @@ class HP4155a(object):
def stress_time(self,time): def stress_time(self,time):
command = f":PAGE:STR:SET:DUR {time}" command = f":PAGE:STR:SET:DUR {time}"
self.inst.write(command) self.inst.write(command)
return time
#start stress operation #start stress operation
def start_stress(self): def start_stress(self):
......
This diff is collapsed.
%% Cell type:code id:a72da0c4-0a83-4dfa-8698-c215725b0034 tags: %% Cell type:code id:a72da0c4-0a83-4dfa-8698-c215725b0034 tags:
``` python ``` python
import module import module
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np
from IPython.display import display, clear_output from IPython.display import display, clear_output
V2_stress=10 #vds V2_stress=10 #vds
V3_stress=-12 #vgs V3_stress=-12 #vgs
stress_time=10 stress_time=10
V2_sampling=10 V2_sampling=10
V3_sampling=2 V3_sampling=2
sampling_mode='L10', sampling_mode='L10',
number_of_points=21 number_of_points=21
integration_time='MED' integration_time='MED'
str_comp = 0.1 str_comp = 0.1
samp_Vgs_comp = 10**(-3) samp_Vgs_comp = 10**(-3)
samp_Vds_comp= 0.1 samp_Vds_comp= 0.1
``` ```
%% Cell type:code id:70e1ccaf-faef-482e-899c-4d5803c5a0bc tags: %% Cell type:code id:70e1ccaf-faef-482e-899c-4d5803c5a0bc tags:
``` python ``` python
#connect to device #connect to device
device = module.HP4155a('GPIB0::17::INSTR') device = module.HP4155a('GPIB0::17::INSTR')
device.reset() device.reset()
device.stress_page() device.stress_page()
#define smus to numbers in mode and values for stress #define smus to numbers in mode and values for stress
#mode #mode
device.smu_mode(1,'COMM') device.smu_mode(1,'COMM')
device.smu_mode(2,'V') device.smu_mode(2,'V')
device.comp_stress(2,str_comp) device.comp_stress(2,str_comp)
device.smu_mode(3,'V') device.smu_mode(3,'V')
device.comp_stress(3,str_comp) device.comp_stress(3,str_comp)
device.smu_mode(4,'COMM') device.smu_mode(4,'COMM')
device.sync(4,0) device.sync(4,0)
#names #names
device.str_smu_name(2,'VD') device.str_smu_name(2,'VD')
device.str_smu_name(3,'VG') device.str_smu_name(3,'VG')
#values #values
device.smu_value(2,V2_stress) device.smu_value(2,V2_stress)
device.smu_value(3,V3_stress) device.smu_value(3,V3_stress)
#time #time
zeit=device.stress_time(stress_time) device.stress_time(stress_time)
device.start_stress() device.start_stress()
while device.operation_completed() == False: while device.operation_completed() == False:
pass pass
``` ```
%% Cell type:code id:61370e17-f1be-478d-ba50-2ca2caeae94f tags: %% Cell type:code id:61370e17-f1be-478d-ba50-2ca2caeae94f tags:
``` python ``` python
#start with sampling measurement #start with sampling measurement
device.measurement_mode('SAMP') device.measurement_mode('SAMP')
#set the mode of smus for sampling #set the mode of smus for sampling
device.smu_mode_meas(1,'COMM') device.smu_mode_meas(1,'COMM')
device.smu_mode_meas(2,'V') device.smu_mode_meas(2,'V')
device.smu_mode_meas(3,'V') device.smu_mode_meas(3,'V')
device.smu_mode_meas(4,'COMM') device.smu_mode_meas(4,'COMM')
#set the names of the smus #set the names of the smus
device.smu_vname(1,'VS1') device.smu_vname(1,'VS1')
device.smu_iname(1,'IS1') device.smu_iname(1,'IS1')
device.smu_vname(2,'VDS') device.smu_vname(2,'VDS')
device.smu_iname(2,'ID') device.smu_iname(2,'ID')
device.smu_vname(3,'VGS') device.smu_vname(3,'VGS')
device.smu_iname(3,'IG') device.smu_iname(3,'IG')
device.smu_vname(4,'VS2') device.smu_vname(4,'VS2')
device.smu_iname(4,'IS2') device.smu_iname(4,'IS2')
#set the values of smu for sampling #set the values of smu for sampling
device.constant_smu_sampling(2,V2_sampling) device.constant_smu_sampling(2,V2_sampling)
device.constant_smu_sampling(3,V3_sampling) device.constant_smu_sampling(3,V3_sampling)
#time log10 #time log10
device.sampling_mode(sampling_mode) device.sampling_mode(sampling_mode)
#minimum initial interval #minimum initial interval
#device.initial_interval(2*10**(-3)) #device.initial_interval(2*10**(-3))
device.number_of_points(number_of_points) device.number_of_points(number_of_points)
device.integration_time(integration_time) device.integration_time(integration_time)
device.display_variable('X','@TIME') device.display_variable('X','@TIME')
device.display_variable('Y1','ID') device.display_variable('Y1','ID')
device.display_variable('Y2','IG') device.display_variable('Y2','IG')
device.constant_smu_comp(2,samp_Vds_comp) device.constant_smu_comp(2,samp_Vds_comp)
device.constant_smu_comp(3,samp_Vgs_comp) device.constant_smu_comp(3,samp_Vgs_comp)
device.single_measurement() device.single_measurement()
while device.operation_completed() == False: while device.operation_completed() == False:
pass pass
device.autoscaling() device.autoscaling()
time = device.return_data('@TIME') time = device.return_data('@TIME')
IG = device.return_data('IG') IG = device.return_data('IG')
ID = device.return_data('ID') ID = device.return_data('ID')
``` ```
%% Cell type:code id:b7011797-0264-48e8-a10f-1f3f7325582e tags: %% Cell type:code id:b7011797-0264-48e8-a10f-1f3f7325582e tags:
``` python ``` python
fig, ax1 = plt.subplots() fig, ax1 = plt.subplots()
color = 'tab:red' color = 'tab:red'
ax1.set_xlabel('time') ax1.set_xlabel('time')
ax1.set_ylabel('IG', color = color) ax1.set_ylabel('IG', color = color)
ax1.plot(time, IG, color = color) ax1.plot(time, IG, color = color)
ax1.tick_params(axis ='y', labelcolor = color) ax1.tick_params(axis ='y', labelcolor = color)
# Adding Twin Axes to plot using dataset_2 # Adding Twin Axes to plot using dataset_2
ax2 = ax1.twinx() ax2 = ax1.twinx()
color = 'tab:green' color = 'tab:green'
ax2.set_ylabel('ID', color = color) ax2.set_ylabel('ID', color = color)
ax2.plot(time, ID, color = color) ax2.plot(time, ID, color = color)
ax2.tick_params(axis ='y', labelcolor = color) ax2.tick_params(axis ='y', labelcolor = color)
# Adding title # Adding title
plt.title('sampling plot!', fontweight ="bold") plt.title('sampling plot!', fontweight ="bold")
# Show plot # Show plot
plt.show() plt.show()
``` ```
%% Output %% Output
%% Cell type:code id:c95e9802-5c76-451a-a0ef-7c29d13b9c5e tags: %% Cell type:code id:c95e9802-5c76-451a-a0ef-7c29d13b9c5e tags:
``` python ``` python
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment