Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the instrument response #26

Open
dottcake opened this issue Mar 24, 2023 · 0 comments
Open

Problem with the instrument response #26

dottcake opened this issue Mar 24, 2023 · 0 comments

Comments

@dottcake
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant