Skip to content
Snippets Groups Projects
Commit 4918036a authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

tested memristor measurement

parent 14c066dc
Branches
No related tags found
No related merge requests found
......@@ -163,7 +163,7 @@ def on_set_button_clicked(b):
valid = check_values(step.value,Vset.value,Vreset.value)
if valid == True:
if sampling.value == True and first_sampling == True: #do sampling set before set process(100mV)
if sampling.value == True: #do sampling set before set process(100mV)
R_mean = sampling_check(0.1,device)
print(f"Average Resistance(Sampling Check):{R_mean} Ohm")
first_sampling = False
......@@ -207,7 +207,7 @@ def on_reset_button_clicked(b):
if valid == True:
if sampling.value == True and first_sampling == True: #do sampling set before reset process(10mV)
if sampling.value == True: #do sampling set before reset process(10mV)
R_mean = sampling_check(0.01,device)
print(f"Average Resistance(Sampling Check):{R_mean} Ohm")
first_sampling = False
......@@ -346,6 +346,9 @@ def on_full_button_clicked(b):
plt.show()
print(len(resistances))
print(indexes)
change_state(buttons)
change_state(parameters)
#link buttons with functions
set.on_click(on_set_button_clicked)
......
%% Cell type:code id:33f299ef-2302-4e0a-b45f-291460d944c6 tags:
``` python
%run memristor.py
```
%% Output
%% Cell type:code id:2fc85780-0e32-4b77-9de5-684c87f55a6b tags:
``` python
#file_path = initialize_tkinter(sample_series,field,DUT)
```
%% Cell type:code id:dcd920ad-e15c-4297-b12d-01e96f4a89e0 tags:
``` python
#print(file_path)
```
%% Cell type:code id:4952f0fc-4d0e-4508-b241-7f7905fc2b21 tags:
``` python
change_state(buttons)
```
%% Cell type:code id:0f54e781-c19e-4d46-8764-efaf60005a0d tags:
%% Cell type:code id:9613a247-7ebb-46b8-ae8f-5d4ba21e5d43 tags:
``` python
```
......
This diff is collapsed.
%% Cell type:code id:13f0597a-f7c3-4539-8f52-da86b9ba5112 tags:
``` python
from help import *
```
%% Cell type:code id:1405aabf-8b1c-4415-b2aa-598d0ca53946 tags:
``` python
device = module.HP4155a('GPIB0::17::INSTR')
device.reset()
#smu1 and smu3 are disabled
device.smu_disable_sweep(1)
device.smu_disable_sweep(3)
#disable vmus and vsus
device.disable_vsu(1)
device.disable_vsu(2)
device.disable_vmu(1)
device.disable_vmu(2)
```
%% Cell type:code id:a4e130de-95f2-4b56-acbc-b1d69a9bfb28 tags:
``` python
device.user_function('R','OHM','V2/I2')
```
%% Cell type:code id:5c30b5e6-266a-485f-96d7-b81681243cd9 tags:
``` python
r_mean=sampling_check(device)
print(r_mean)
```
%% Output
218.0976
%% Cell type:code id:d6dcbb7c-64a6-443e-ad9a-a10047fd6bdb tags:
``` python
del device
```
%% Cell type:code id:266500b3-809e-4a06-b85a-4b2ff630bfab tags:
``` python
r_mean*10**(-9)
```
%% Output
2.180976e-07
%% Cell type:code id:2331b94d-e1fd-4669-9cd3-ca466ba876eb tags:
``` python
```
......@@ -200,7 +200,7 @@ class HP4155a(object):
#for memristor we need as a sampling completiton the Total sampling time
#only for linear and thinned out
def total_sampling_time(period):
def total_sampling_time(self,period):
command = f":PAGE:MEAS:SAMP:PER {period}"
self.inst.write(command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment