Skip to content

Serial Plotter Plotting Bug #9946

Open
Open
@rithviknishad

Description

@rithviknishad

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

Activity

rithviknishad

rithviknishad commented on Mar 28, 2020

@rithviknishad
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

nikolaradulov commented on Mar 28, 2020

@nikolaradulov

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.

added and removed on Apr 7, 2020
madsdyd

madsdyd commented on Apr 7, 2020

@madsdyd

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Serial Plotter Plotting Bug · Issue #9946 · arduino/Arduino