No data plotted in Serial Plotter

Continuing the discussion from Adios IDE 2.0 This is goodbye forever:

Correction to this post, "the serial plotter is not working" at all, the window appears but is empty. I tried the same program on 1.8.10 and got a good serial plot ... So I have to exert some caution when saying "2.3.2 works quite well" ... this part ain't !!!

Please post the program in a reply here.

Unfortunately there are some differences in the data formats accepted by Arduino IDE 1.x vs. 2.x Serial Plotter. It might be that your sketch is producing a data format that is only recognized by Arduino IDE 1.x, and only needs some small adjustments to be compatible with both IDEs.

This is what 1.8.10 plots ok:

//  Serial.print(cnt);
  Serial.print("SetPoint: ");
  Serial.print(tmp);
  Serial.print(",   ");
  Serial.print("CaRoule:  ");
  Serial.println(cnt);
  delay(1000);
}

and the plot from 1.8.10: Imgur: The magic of the Internet

Plot from 2.3.2: Imgur: The magic of the Internet

Even though I don't use "plotter" often, I'm still curious to learn what I'm doing wrong here.
Thank's for your answer

The problem is the spaces. Unfortunately the person who implemented the Serial Plotter made the decision to support spaces as a separator in addition to the standard comma and tab characters. So it is essential that you to not introduce spurious spaces into the data.

Try this:

  Serial.print("SetPoint:");
  Serial.print(tmp);
  Serial.print(",");
  Serial.print("CaRoule:");
  Serial.println(cnt);
  delay(1000);
}

(note that I removed all the unnecessary spaces from the strings in the Serial.print calls)

OK thanks again, this is really a minor itch ... but you must now realize that once used to do things a certain way, people tend to hate having to change for no "apparent" reasons. Anyway it is really great work you're doing.
One last thing I would like to compliment the Arduino Team for is making other boards like the ESP32, ESP8266, and recently the Pi Pico W available in the IDE. I recently started to play with the Pi Pico W, I think it is more efficiently used with a compiled program rather than Python, which it was initially designed to work with. This is a great result having both ways. The Pi Pico is really fun to use and understand, no fuss !

You are welcome.

I completely understand. I have also been quite frustrated by the lack of alignment in the behavior between the two versions of Serial Plotter, and the lack of documentation of the differences. The situation was actually far worse when the Arduino IDE 2.x plotter was first implemented and I had to do a tremendous amount of work to get it to the more aligned and correctly documented state it is in now, even though development and documentation of the Serial Plotter is completely outside my area of responsibility in my work for Arduino.

In the end, a lot of the blame lies with the poorly thought out and inaccurately documented implementation of the Arduino IDE 1.x Serial Plotter. This made it very difficult for the developers of the Arduino IDE 2.x Serial Plotter to emulate the obscure, inconsistent, and implementation-specific behavior of the Arduino IDE 1.x plotter.

The Arduino IDE 1.x plotter was contributed by a volunteer from the community, so we can't fault them much, but the Arduino IDE 1.x maintainers did not do their duty of carefully vetting the quality and design of the contribution. It should not have been accepted as it was submitted.

Thanks for your positive words!

Regards,
Per

Is the doc of the Arduino IDE 1.x serial plotter still around somewhere?

I think I used to remember features like using an initial line to name the variables instead of the x:123 y:456\n format

https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-serial-plotter/

...talks of the separators:

Further, you can also use '\t' (tab) or ' ' (space) as a delimiter instead of ',' (comma) in the above example.

But only shows naming by example.

Here it is:

https://github.com/arduino/Arduino/blob/master/build/shared/ArduinoSerialPlotterProtocol.md

Yes. Due to some significant technical differences between the implementations of the two plotters, the developer of the Arduino IDE 2.x Serial Plotter was not able to provide that feature:

That is exactly it. Thanks.