diff --git a/biastest.py b/biastest.py index 506c06d..f0a8e61 100644 --- a/biastest.py +++ b/biastest.py @@ -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 diff --git a/live_measurement.py b/live_measurement.py index 9ec6d52..ae253cc 100644 --- a/live_measurement.py +++ b/live_measurement.py @@ -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) diff --git a/measurement.py b/measurement.py index 6ee585b..eb91894 100644 --- a/measurement.py +++ b/measurement.py @@ -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)) diff --git a/relaistest.py b/relaistest.py index 5ea38b2..8a17291 100644 --- a/relaistest.py +++ b/relaistest.py @@ -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: