-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hello,
when writing a script I found out that a function doesn't output what it should but rather the answer to a previous command.
Example (k1 is the initialized driver):
points = len(voltage_sweep)
k1.errorqueue.clear()
k1.smub.reset()
k1.smub.source.rangev = 10
k1.smub.source.level = 0
k1.smub.source.autorangev = 0
k1.smub.source.autorangei = 0
k1.smub.measure.rangev = 10
k1.smub.measure.rangei = current_limit
k1.smub.measure.autorangev = 0
k1.smub.measure.autorangei = 0
k1.smub.measure.autozero = 1
k1.smub.nvbuffer1.clear()
k1.smub.nvbuffer1.appendmode = 1
k1.smub.output = 1
test = k1.ConfigPulseVMeasureI(k1.smub, 0, v_, current_limit, 5e-3, 100e-3, 1, k1.smub.nvbuffer1, 1)
print(test) # -> True, this is the wrong answer
test = k1.ConfigPulseVMeasureI(k1.smub, 0, v_, current_limit, 5e-3, 100e-3, 1, k1.smub.nvbuffer1, 1)
print(test) # -> (True, "Pulse 1 configured") this is the expected answer