Unexpected behavior when using TimePlot constructor

Support forum for MegunoLink
Post Reply
RBerliner
Posts: 7
Joined: Wed Apr 03, 2019 11:07 pm

Sat Apr 06, 2019 9:30 pm

In the Sinewave example in an Arduino Uno, if I enable channels and specify the output stream as:

TimePlot MyPlot("Waveforms", Serial);

I find that the remaining setup commands

MyPlot.SetXlabel("Time");
MyPlot.SetYlabel("Amplitude");

// Set the plotting parameters. "Sinewave" = series name, Plot::Blue = line colour
// 2 = line width, Plot::Square = marker style
MyPlot.SetSeriesProperties("Sinewave", Plot::Blue, Plot::Solid, 2, Plot::Square);
MyPlot.SetSeriesProperties("Cosinewave", Plot::Red, Plot::Solid, 2, Plot::Square);

have no effect.

Is this a bug or a feature or simply operator error?
philr
Posts: 244
Joined: Mon May 26, 2014 10:58 am

Sun Apr 07, 2019 8:12 am

Seems to work fine for me. Maybe you have accidentally selected no channels.
x2scrap.png
x2scrap.png (16.63 KiB) Viewed 21 times
Make sure either of the highlighted bits in the picture are highlighted otherwise I dont think it will work.

Cheers
Phil
Post Reply