arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.28k stars 388 forks source link

Request for XY-plotter #1697

Open johan1937 opened 4 years ago

johan1937 commented 4 years ago

The serial plotter in the Arduino IDE does a fine job plotting one or several Y-axis values along the millisecond X-axis. I guess it could be a simple thing to do to include the possibility to plot an XY-chart of two values. Simplest mode: just read two values from one line from the serial input and plot the corresponding pixel. This needs a clear button. Advanced features: Have the pixels fade in some seconds. Draw a line from pixel to pixel. Draw a Bezier spline from pixel to pixel. Read two or more pairs of values from each line and plot them with different colours, scale the coordinate system dynamically.

This feature has been asked on the arduino.cc forum and in the comments people have suggested transfering the data to Excel to get it drawn, but that's not a realtime solution. You want to twist some knobs on your circuit while looking at a changing hysteresis curve.

RobTillaart commented 4 years ago

@johan1937 No experience but this looks quite good - https://www.megunolink.com/documentation/plotting/xy-plot/

johan1937 commented 4 years ago

Yes, I'm using Meguno right now. The problem is that the Arduino IDE needs the same COM port as Meguno to communicate with the Arduino board. And that can't happen at the same time. Maybe some special settings somewhere can allow two programs in Windows use the same COM port with the same external device.

RobTillaart commented 4 years ago

No experience - https://freeserialportsplitter.com/ update - minor experience Arduino IDE + Teraterm ==> works.

per1234 commented 1 year ago

I believe this was closed by accident because I don't see that https://github.com/arduino/arduino-ide/commit/2aad0e3b163f27c51b15b58a6f35aab757a643fb provides the requested functionality.

kittaakos commented 1 year ago

I believe this was closed by accident because I don't see that 2aad0e3 provides the requested functionality.

Thank you! For the record, https://github.com/arduino/arduino-ide/pull/1927 should have closed #1679 instead of #1697.

Feel free to hide this comment if off topic. I wanted to leave some info on why it was closed accidentally.