Skip to content

Label header not working #14

Open
Open
@per1234

Description

@per1234

Describe the problem

The official Arduino Serial Plotter protocol specification documents two formats for labeling variables:

  • labeled data points (<label>:<value>)
  • header

🐛 Labels defined via a data set header are not recognized.

To reproduce

Equipment

  • Arduino board
    You can also send the equivalent data directly to the web app if that is more convenient to you.

Steps

  1. Upload the following sketch to your Arduino board:
    void setup() {
      Serial.begin(9600);
      while (!Serial) {}
      Serial.println("label0:\tlabel1:\tlabel2:");
    }
    void loop() {
      for (byte value = 0; value < 4; value++) {
        for (byte variableOffset = 0; variableOffset < 3; variableOffset++) {
          Serial.print(value + variableOffset);
          Serial.print('\t');
        }
        Serial.println();
      }
      delay(100);
    }
  2. Open "Serial Plotter"
  3. Select "9600 baud" from the dropdown baud rate menu at the bottom right corner of the "Serial Plotter" window.

🐛 The variables are not labeled:

image

Expected behavior

Support for label headers.

serial-plotter-label-header

OR

  • Clear documentation of breaking change
  • Comprehensive survey and repair of all important content broken by change

Version

eac6d39

Operating system

Windows

Operating system version

10

Additional context

The demo works as expected when using the Arduino IDE 1.8.19 Serial Plotter.


Examples of existing programs broken by this bug:


A label header is more efficient than printing labels redundantly for each data point.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions