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

Add copy button #27

Open
tigoe opened this issue Nov 5, 2015 · 7 comments
Open

Add copy button #27

tigoe opened this issue Nov 5, 2015 · 7 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@tigoe
Copy link
Member

tigoe commented Nov 5, 2015

The serial plotter is great, but it blocks the serial monitor, and there's no way to copy/paste values from it.

As an example:

  1. Open File -> Examples -> Basics -> AnalogReadSerial, and upload to a board
  2. Open Plotter
  3. use whatever analog sensor is attached to A1.

The plot will move too fast to see the changes, and you can't scroll back and look at details. That's a useful feature of a plotter. Perhaps it could have an autoscroll button like the serial monitor does.

Also, there's no way to capture the serial data when the plotter's open. This is a feature that's been very useful from the serial monitor for years.

As a fix, I suggest
(a) adding a button that has the same functionality as autoscroll in the serial monitor
(b) adding the ability to copy the serial output from the plotter, same as in the serial monitor

@ffissore ffissore self-assigned this Nov 6, 2015
@henningpohl
Copy link

This is due to the serial connection object being a part of the serial monitor instance. This pattern was kept in place for the serial plotter. However, only one connection can be opened per port. To have both the plotter and the monitor open, the serial connection would need to be managed elsewhere. This could be a SerialConnection singleton, or some other mechanism. Both plotter and monitor could then subscribe to serial events. As that is a bigger refactoring, I didn't touch this when writing the serial plotter.

@tigoe
Copy link
Member Author

tigoe commented Nov 11, 2015

Fair enough. It just makes the plotter less useful than it may seem at first appearance. given that, I would at least implement the autoscroll stop/start.

@madsdyd
Copy link

madsdyd commented Apr 7, 2020

@per1234 Mayybe this should be labelled "SerialPlotter" too?

@madsdyd
Copy link

madsdyd commented Apr 7, 2020

Any idea how hard it would be to refactor SerielPlotter to be a text monitor as SerielMonitor? Purpose would be to have a text pane (hideable) that would show the raw serial output.

@madsdyd
Copy link

madsdyd commented Apr 7, 2020

This is really 2 issues in one:

  • Ability to pause the serial plotter: This is in Ability to pause the serial plotter? Arduino#4860 (and have a workaround, actually)
  • Ability to capture the serial input when the plotter is running and/or have access to the serial monitor at the same time as serial plotter is open.

To make this clearer, I suggest that this bug is solely about bullet to, and ways to work around/solve this problem.

@cousteaulecommandant
Copy link

Any idea how hard it would be to refactor SerielPlotter to be a text monitor as SerielMonitor? Purpose would be to have a text pane (hideable) that would show the raw serial output.

Sounds nice, but if this is being done it makes no sense to keep the old Serial Monitor. Just have a single tool that combines Serial Monitor and Serial Plotter, with tabs or buttons to switch between "text view" and "plot view". "Serial Monitor" menu entry would just open this tool in text view, and "Serial Plotter" in plot view.

@per1234 per1234 changed the title Serial plotter blocks monitor Autoscroll and copy button for Serial plotter Oct 6, 2020
@per1234 per1234 closed this as completed Nov 18, 2022
@per1234 per1234 reopened this Nov 18, 2022
@per1234 per1234 transferred this issue from arduino/Arduino Nov 18, 2022
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Nov 18, 2022
@per1234 per1234 changed the title Autoscroll and copy button for Serial plotter Add copy button Nov 18, 2022
@per1234 per1234 mentioned this issue Nov 18, 2022
3 tasks
@per1234
Copy link
Contributor

per1234 commented Nov 18, 2022

it could have an autoscroll button like the serial monitor does.

This component of the request has been implemented in the Arduino IDE 2.x Serial Plotter (STOP/RUN button).

image

image

you can't scroll back and look at details

I moved this request to a dedicated issue: #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

6 participants