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

Decimated Buffer Ramp Zeros Voltage Bug #8

Open
mserlin opened this issue Dec 7, 2018 · 2 comments
Open

Decimated Buffer Ramp Zeros Voltage Bug #8

mserlin opened this issue Dec 7, 2018 · 2 comments

Comments

@mserlin
Copy link
Contributor

mserlin commented Dec 7, 2018

If you run the decimated buffer ramp from the same start to end voltage, it sets the voltage of that channel to 0 instead of keeping it the same. For example, if you run the following code it sets the voltage on channel 0 to 0, instead of 1 (Even if the voltage was previously not 0).

dac.buffer_ramp_dis([0],[0],[1.0],[1.0],1,0,1)

@ckometter
Copy link
Member

ckometter commented Dec 7, 2018

Does it work with 2 steps? It looks like a division by zero with 1 step here:

v = vi[i]+(vf[i]-vi[i])*j/(nSteps-1);

@mserlin
Copy link
Contributor Author

mserlin commented Dec 7, 2018

Yup, two steps works fine.

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

2 participants