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

Memristor constant pulse measurement fixed!

parent 583ebf3a
Branches
No related tags found
No related merge requests found
...@@ -9,7 +9,6 @@ import os ...@@ -9,7 +9,6 @@ import os
from datetime import datetime from datetime import datetime
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np
import module
import time import time
import pandas as pd import pandas as pd
from IPython.display import display, clear_output from IPython.display import display, clear_output
...@@ -172,12 +171,6 @@ def constant_meas(dictionary,device): ...@@ -172,12 +171,6 @@ def constant_meas(dictionary,device):
mode = 'VPULSE', mode = 'VPULSE',
func = 'CONS' func = 'CONS'
) )
smu_help.update(
iname = 'I3',
vname = 'V3',
mode = 'V',
func = 'VAR1'
)
smu_ground.update( smu_ground.update(
iname ='I4', iname ='I4',
vname = 'V4', vname = 'V4',
...@@ -203,9 +196,16 @@ def constant_meas(dictionary,device): ...@@ -203,9 +196,16 @@ def constant_meas(dictionary,device):
device.measurement_mode("SWE") device.measurement_mode("SWE")
device.smu_disable(1) device.smu_disable(1)
device.smu_disable(3)
device.setup_smu(2,smu_v) device.setup_smu(2,smu_v)
device.setup_smu(3,smu_help)
device.setup_smu(4,smu_ground) device.setup_smu(4,smu_ground)
# define the vsu that can be used as help (commands taken from the manual as this is an emergency)
# set it up VSU1
device.inst.write(":PAGE:CHAN:VSU1:VNAME 'VHELP'") #Name
device.inst.write(":PAGE:CHAN:VSU1:FUNC VAR1") # sweep mode
device.setup_var1(sweep_params) device.setup_var1(sweep_params)
device.setup_pulse(sweep_params) device.setup_pulse(sweep_params)
device.setup_cons_smu(2,cons) device.setup_cons_smu(2,cons)
...@@ -246,9 +246,9 @@ def constant_meas(dictionary,device): ...@@ -246,9 +246,9 @@ def constant_meas(dictionary,device):
times = (elapsed_time,expected_time) times = (elapsed_time,expected_time)
values = (V_i,I_i,R_i) values = (V_i,I_i,R_i)
device.autoscaling() device.autoscaling()
# disable VSU1
device.inst.write(":PAGE:CHAN:VSU1:DIS")
return times,values return times,values
def plot_constant_pulse(values): def plot_constant_pulse(values):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment