How can I change the amount of data displayed in the Serial Plotter window?

How can I change the amount of data displayed in the Serial Plotter window? In the Ardiuno version, this number is 500, in the Arduino IDE version it is 50. What is the difficulty in allowing the user to change this number? What interpolation method is used in the Arduino IDE Serial Plotter?

1 Like

What do you mean by "the Arduino version".

1 Like

Fear of "feature creep", probably. The serial monitor and plotter aren't meant to be serious tools anyway, just good for a sketch or lab demo, troubleshooting.

1 Like

There is none, it just plots single points.

I use the Arduino IDE version and can assure you it is 500.

If I have short data sets I was to display I add enough zero values to make the number up to 500 and so each data stays in the same place. Before you plot your first zero you might want to plot a fixed value higher than the maximum value you are expecting in your data to keep the scale the same as well.

1 Like

I think I figured out what @lev_gheonjian is talking about

IDE 1.8.x has 500 points, IDE 2.0 only has 50 points.

There is a request on github to make it configurable: Serial Plotter - Set maximum dataset points · Issue #1308 · arduino/arduino-ide · GitHub

2 Likes

Hi @lev_gheonjian. At this time, I don't know of any way to adjust this other than modifying the source code. For the Arduino IDE 2.x Serial Plotter, I believe it is set here:

https://github.com/arduino/arduino-serial-plotter-webapp/blob/0.2.0/src/ChartPlotter.tsx#L46

There is a feature request to make it user configurable here:

and a related request:

I am not very familiar with the Arduino IDE 2.x Serial Plotter code base (or TypeScript in general), so I might be wrong, but from what I can tell it is "monotone":

https://github.com/arduino/arduino-serial-plotter-webapp/blob/0.2.0/src/ChartPlotter.tsx#L180

There is a switch in the Arduino IDE 2.x plotter:

image

2 Likes

Indeed, I made my comments before the OP had made it clear he was talking about version 2 of the IDE. Not for the first time there has been missing vital information in an initial post.

OP never made it clear that he was talking about different IDE versions :smiley: He did not come back about that yet.

Thanks to everyone who responded to my questions! I think my problem will become clear if you look at the picture. Can I display using Arduino IDE 2.0.0
signals of two accelerometers as it turns out with Arduino 1.8.16
?

Thank you! You're right. I have been using Arduino 1.8.16 for a long time. Recently discovered Arduino IDE 2.0.0 and realized that this advanced version creates some problems.

Thank you! Arduino 1.8.16 and Arduino IDE 2.0.0 formally look for the user like two different versions :grinning:

Thank you! You are right, but sometimes you can do good things with simple tools. :grinning:

Thanks a lot!

:grinning: :grinning: :grinning:

Both are IDEs :wink: That is where the confusion came from.

Rather, both environments advertise themselves as an Integrated Development Environment. They are rather self-developing environments - ISDE :grinning:

Yes but the point is that in your first post you said:-

You only said that one was an IDE not both.

You should have said:-

In the Ardiuno IDE version 1.8.19 this number is 500, in the Arduino IDE version 2.0 it is 50.

1 Like

Is anybody still working on this? My AOScope program really doesn't work with the newer 2.0.x versions. I would really like to have 500 data points.

Well you saw the GitHub request early on in the post so check this for progress.

However I do feel the Arduino project is being "bounced" into a Version 2.0 by people with their own agenda. Probably a "software type" who is appalled how an embedded system really works. I had one software engineer work for me that ruined a whole product range and indeed contributed to the collapse of the company by insisting that things were done correctly.

I see the same sort of attitude with V2.0 here. The last straw for me was that this new software would automatically download new versions of libraries when they were updated. How stupid is that is a limited memory environment?

The update process of course requires downloading the new version of the library, and of course that download is done automatically. However, it seems you are implying that the update is done automatically. That is incorrect. The user is shown a notification when updates are available for an installed library

image

but the update is only done if the user requests it by clicking the button on the notification.

If anyone finds that updates are being done without their consent, please do submit a detailed report and I will be sure to investigate.

Are you referring to your PC? I don't see that the amount of hard drive space a library download occupies is significant in 2022. But of course updating a library might impact the sketches depending on it, so any library updates produced by the IDE without the user's direction would be considered a serious bug.