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

NaN on vertical axis #24

Closed
BNNorman opened this issue Dec 5, 2018 · 1 comment
Closed

NaN on vertical axis #24

BNNorman opened this issue Dec 5, 2018 · 1 comment

Comments

@BNNorman
Copy link

BNNorman commented Dec 5, 2018

Using V2.3.3 downloaded today (ZIP file).
I'm not sure if this is the same problem reported before (#19) but it relates to my previous issue #23.
If I only change the loop() code from this:-

void loop() 
{
 Vout=5.0*analogRead(SIG)/1023.0;
 p.Plot();
}

To this:-

void loop() 
{
 float Vnew=5.0*analogRead(SIG)/1023.0;
 if (Vout==Vnew) Vout=Vnew+.0001;
 p.Plot();
}

Then Listener.exe shows NaN on the vertical axis and no values are plotted. This was done to try to avoid consecutive values being the same (in case the NaN was caused by the previously reported bug #19)

@BNNorman
Copy link
Author

BNNorman commented Dec 6, 2018

I've done similar things in loop lately and they all worked so maybe this was a glitch.

@BNNorman BNNorman closed this as completed Dec 6, 2018
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