arduino / arduino-ide

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

Communicate to user when Serial Plotter limitations exceeded #651

Closed per1234 closed 2 years ago

per1234 commented 2 years ago

Describe the current behavior

The Arduino IDE 2.x Serial Plotter has an undocumented maximum limit of 8 variables.

When this limit is exceeded, the plotter is a blank window, with no indication to the user of the cause of this behavior.

To Reproduce

  1. Upload the following code to an Arduino board
    void setup() {
     Serial.begin(9600);
    }
    void loop() {
     byte datapoint = 0;
     while (datapoint++ < 9) {
       Serial.print(random(100));
       Serial.print('\t');
     }
     Serial.println();
    }
  2. Select Tools > Serial Plotter from the Arduino IDE menus.

Note that the Serial Plotter window is blank:

image

Requested behavior

Communicate to the user when the limits of the plotter have been exceeded.

Desktop

Additional context

Since the classic Arduino IDE's Serial Plotter does not have this limitation, even experienced users users will not be familiar with it.

per1234 commented 2 years ago

Fixed by https://github.com/arduino/arduino-serial-plotter-webapp/pull/5 Even though that PR has not yet been merged, the fix there was already published to the npm registry and brought into Arduino IDE by https://github.com/arduino/arduino-ide/pull/698