get rid of experimentations in the scripts
This commit is contained in:
@@ -25,7 +25,6 @@ count = range(18, 901, 9)
|
||||
with ModuleTestBox(hints=hints, verbose=True) as hvp, KeithleyDMM6500(find_visa(hint='0x05E6::0x6500')) as dmm:
|
||||
hvp.SelectChannel(ch)
|
||||
hvp.Bias_Enable(1)
|
||||
# hvp.Bias_SetV(0.5)
|
||||
|
||||
R = 1223.6841 #load resistance in Ohm
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ from time import sleep
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
|
||||
channel = 7
|
||||
channel = 1 # Set the channel you want to use
|
||||
|
||||
|
||||
hints=["VID:PID=CAFE:4001"]
|
||||
@@ -19,11 +19,11 @@ try:
|
||||
mtb.Bias_Enable(False)
|
||||
mtb.HV_Enable(True)
|
||||
|
||||
# sleep(2)
|
||||
sleep(1)
|
||||
|
||||
while True:
|
||||
current = mtb.GetI() / 1e6
|
||||
print(current)
|
||||
print(current) # in uA
|
||||
sleep(0.5)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
@@ -75,15 +75,10 @@ if __name__ == '__main__':
|
||||
hv.Bias_Enable(False)
|
||||
hv.HV_Enable(True)
|
||||
|
||||
# hv.SetMeanCount(60)
|
||||
# hv.AdjustScaleI(0) # ppm
|
||||
# hv.AdjustScaleV(-4512) # ppm
|
||||
|
||||
# perform voltage ramp measurement with kei
|
||||
kei.apply_voltage(compliance_current=1.1e-5)
|
||||
kei.source_voltage = vStart
|
||||
kei.enable_source()
|
||||
# kei.current_nplc = 10
|
||||
kei.measure_current(10)
|
||||
kei.current_range = 10e-6
|
||||
|
||||
@@ -100,16 +95,11 @@ if __name__ == '__main__':
|
||||
kei.source_voltage = v
|
||||
sleep(0.1)
|
||||
i_kei = kei.current
|
||||
# i_kei = 0
|
||||
# i_dmm = 0
|
||||
i_dmm = dmm.current
|
||||
# i_hv = hv.GetI() * -1e-12
|
||||
i_hv = 0
|
||||
i_hv = hv.GetI() * -1e-12
|
||||
|
||||
while i_dmm > 1:
|
||||
i_dmm = dmm.current
|
||||
# i_calc = v / 100.003e6
|
||||
# i_calc = v / 5068423720.2
|
||||
i_calc = v / 102980719.7
|
||||
|
||||
values.append((v, i_kei, i_dmm, i_hv, i_calc))
|
||||
|
||||
@@ -4,12 +4,6 @@ from time import sleep
|
||||
hints=["VID:PID=CAFE:4001"]
|
||||
|
||||
with ModuleTestBox(hints=hints, verbose=True) as hvp:
|
||||
# hvp.SelectADC(1)
|
||||
# hvp.Relais_SetCh(1)
|
||||
# hvp.SelectADC(4)
|
||||
# hvp.Relais_SetCh(1)
|
||||
# hvp.SelectADC(8)
|
||||
# hvp.Relais_SetCh(1)
|
||||
while True:
|
||||
try:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user