Skip to content

Serial Plotter Plotting Bug #9946

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

Open
rithviknishad opened this issue Mar 28, 2020 · 3 comments
Open

Serial Plotter Plotting Bug #9946

rithviknishad opened this issue Mar 28, 2020 · 3 comments
Labels
SerialPlotter Tools > Serial Plotter Type: Bug

Comments

@rithviknishad
Copy link

When plotting using Serial.println and then pausing the Serial.println (just like a one time trigger), and then resetting the arduino to perform it again, the old serial plotted point is not erased and remains static in the plot window.

Annotation 2020-03-28 082557

@rithviknishad
Copy link
Author

Scnrshot after multiple reset
Annotation 2020-03-28 084645

What I did to arrive at this error was: (for pausing the SerialPlotter when a SONAR sensor has been activated and it's Echo and Trig Pins are monitored by another arduino)

image

@nikolaradulov
Copy link

nikolaradulov commented Mar 28, 2020

I don't know if this is of any help but the java code for plotter ca be modified such that a clear command can be introduced. In the ~/Arduino/app/src/processing/app/ directory modify the SerialPlotter.java file and add
if ( line.equals("<CLEAR>")) { graphs.clear(); // Clear the graphs xCount = 0; // Reset the count of data points }
in the public void message function right after the line trim occurs. In this way you should be able to manually send a clear message and make sure that the graph is cleared even after the resets. This should remove any graph points in the array, and hopefully also remove
the static point you get in the beginning. I have not tested this idea on the recent distrib of the IDE,as i just took it from an old project I developed with my friends back in 2017. Hope it helps.

@madsdyd
Copy link

madsdyd commented Apr 7, 2020

This is not a bug, but by design. The Arduino GUI, which the Serial Plotter is part of, have no way to know if you reset your board, e.g. by pressing a reset button.

@nikolradulov has made a remote command patch in #9953 but this has some overlap with #7461. It seems someone need to decide upon a roadmap or similar for Serial Plotter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SerialPlotter Tools > Serial Plotter Type: Bug
Projects
None yet
Development

No branches or pull requests

4 participants