Serial plotter X-axis compression

Hi,

I am new to this and I am unable to get the X-axis to be more compressed (but slower I assume?)
Right now the plot is very jagged. Can I compress the X-axis to a smaller interval so I get a better plot over a longer period of time?

Sample code (I have 3 of this group = 9 curves)

  Serial.print("t1r1: ");
  Serial.println(tx_rx(PIN_TX1, PIN_RX1));
  Serial.print("t2r1: ");
  Serial.println(tx_rx(PIN_TX2, PIN_RX1));
  Serial.print("t3r1: ");

It is also displaying only 8 at a time, is this the maximum arduino serial plotter can plot?

Thank you!

Hi,
A simple but rough way is to do this;

  delay(100); // delays the print for 100ms
  Serial.print("t1r1: ");
  Serial.println(tx_rx(PIN_TX1, PIN_RX1));
  Serial.print("t2r1: ");
  Serial.println(tx_rx(PIN_TX2, PIN_RX1));
  Serial.print("t3r1: ");

Changing the delay time will spread or compress your output.

Tom.. :smiley: :+1: :coffee: :australia:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.