arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.15k stars 7.01k forks source link

Problems in "Serial Plotter" Y-axis resolution (1.6.6 Hourly build 2015/09/04) #3767

Closed q2dg closed 9 years ago

q2dg commented 9 years ago

Hello. I've detected two problems.

First If I execute...:

void setup() {  Serial.begin(9600); }
void loop() {  Serial.println(2);  }

...value 2 is shown at the top of Serial Plotter but Y-axis doesn't show the numerical coordinates. If I put a greater value (like 10, for instance), then it's fine.

Second If I execute...

void setup() {  Serial.begin(9600); }
void loop() {  Serial.println(random(55));  }

...graph is shown fine, but if I add a delay after Serial.println() (only if delay time is more than 700ms aprox.!!) , the Y-axis boundaries are not updated accordingly, showing always from 0 to 400 values (and not from 0 to 60 or similar, as expected).

Thanks

ffissore commented 9 years ago

Fixed. Fix will be available in next hourly build. http://www.arduino.cc/en/Main/Software#hourly

As for the effect due to the delay, it's due to the size of the buffer used by the plotter: Y axis uses min and max buffer values, some initial value is higher than all the subsequent values, but until the buffer exhausts (and the plot slides to the left) that Y axis will keep on show greater values than expected

q2dg commented 9 years ago

Ok, thanks