-
Notifications
You must be signed in to change notification settings - Fork 8
Description
In the Arduino Serial Plotter, it is possible to send the name of a variable alongside the data value. The example for this is here.
In short, the datagram uses CRLF/LF to separate messages and uses comma/tab/space as a delimiter for variables, but the NaN portion preceding the numerical value (ending in a colon) is accepted as the name of the variable in question. So a sample datagram would look like this:
W.AvgPow(W):0.52,W.State:0.49W
or
W.AvgPow(W):0.52 W.State:0.49W
or
W.AvgPow(W):0.52 W.State:0.49W
Then the Serial Plotter displays a key with the variable names received from the datagram, and of course plots the new value received on the line chart.
I have noticed that when this recommended datagram structure is used with SerialAnalyzer, it causes the program to fail to plot any data. Once I modified my sketch to only include numerical values, the plot worked as expected.
Adding the ability to interpret NaN as a label name would be fantastic as it would make this program a drop-in replacement for the Arduino Serial Plotter.
Thank you!