I have the code below being printed out of the serial monitor.
Serial.print("Raw Value 1 = " ); // shows pre-scaled value
Serial.print(RawValue1 / numReadings);
Serial.print("\t mV 1 = "); // shows the voltage measured
Serial.print(Voltage1, 3); // the '3' after voltage allows you to display 3 digits after decimal point
Serial.print("\t Amps 1 = ");
Serial.print(Amps1, 3);
Serial.print("\t Power1 = ");
Serial.print(Power1, 3);
Serial.println();
Serial.print("Raw Value 2 = " );
Serial.print(RawValue2 / numReadings);
Serial.print("\t mV 2 = ");
Serial.print(Voltage2, 3);
Serial.print("\t Amps 2 = ");
Serial.print(Amps2, 3);
Serial.print("\t Power2 = ");
Serial.print(Power2, 3);
Serial.println();
Serial.print("Raw Value 3 = " );
Serial.print(RawValue3 / numReadings);
Serial.print("\t mV 3 = ");
Serial.print(Voltage3, 3);
Serial.print("\t Amps 3 = ");
Serial.print(Amps3, 3);
Serial.print("\t Power3 = ");
Serial.print(Power3, 3);
Serial.println();
Serial.print("Raw Value 4 = " );
Serial.print(RawValue4 / numReadings);
Serial.print("\t mV 4 = ");
Serial.print(Voltage4, 3);
Serial.print("\t Amps 4 = ");
Serial.print(Amps4, 3);
Serial.print("\t Power4 = ");
Serial.print(Power4, 3);
Serial.println();
Serial.print("Raw Value 5 = " );
Serial.print(RawValue5 / numReadings);
Serial.print("\t mV 5 = ");
Serial.print(Voltage5, 3);
Serial.print("\t Amps 5 = ");
Serial.print(Amps5, 3);
Serial.print("\t Power5 = ");
Serial.print(Power5, 3);
Serial.println();
Serial.print("Raw Value 6 = " );
Serial.print(RawValue6 / numReadings);
Serial.print("\t mV 6 = ");
Serial.print(Voltage6, 3);
Serial.print("\t Amps 6 = ");
Serial.print(Amps6, 3);
Serial.print("\t Power6 = ");
Serial.print(Power6, 3);
Serial.println();
Serial.print("Raw Value 7 = " );
Serial.print(RawValue7 / numReadings);
Serial.print("\t mV 7 = ");
Serial.print(Voltage7, 3);
Serial.print("\t Amps 7 = ");
Serial.print(Amps7, 3);
Serial.print("\t Power7 = ");
Serial.print(Power7, 3);
Serial.println();
Serial.print("Raw Value 8 = " );
Serial.print(RawValue8 / numReadings);
Serial.print("\t mV 8 = ");
Serial.print(Voltage8, 3);
Serial.print("\t Amps 8 = ");
Serial.print(Amps8, 3);
Serial.print("\t Power8 = ");
Serial.print(Power8, 3);
Serial.println();
Serial.println();
This is what I am able to paste, but this is not how it's displayed in the monitor window.
Please see screenshot below.
Any reasons why? Thanks.
If it helps I can paste the entire code.
Raw Value 1 = 493 mV 1 = 2409.580 Amps 1 = -0.026 Power1 = -0.634
Raw Value 2 = 497 mV 2 = 2429.130 Amps 2 = -0.026 Power2 = -0.634
Raw Value 3 = 492 mV 3 = 2404.692 Amps 3 = 0.000 Power3 = 0.000
Raw Value 4 = 492 mV 4 = 2404.692 Amps 4 = 0.000 Power4 = 0.000
Raw Value 5 = 496 mV 5 = 2424.242 Amps 5 = 0.000 Power5 = 0.000
Raw Value 6 = 494 mV 6 = 2414.467 Amps 6 = -0.026 Power6 = -0.634
Raw Value 7 = 496 mV 7 = 2424.242 Amps 7 = -0.079 Power7 = -1.902
Raw Value 8 = 491 mV 8 = 2399.804 Amps 8 = -0.053 Power8 = -1.268
Raw Value 1 = 492 mV 1 = 2404.692 Amps 1 = -0.053 Power1 = -1.268
Raw Value 2 = 497 mV 2 = 2429.130 Amps 2 = -0.026 Power2 = -0.634
Raw Value 3 = 491 mV 3 = 2399.804 Amps 3 = -0.026 Power3 = -0.634
Raw Value 4 = 493 mV 4 = 2409.580 Amps 4 = 0.026 Power4 = 0.634
Raw Value 5 = 496 mV 5 = 2424.242 Amps 5 = 0.000 Power5 = 0.000
Raw Value 6 = 494 mV 6 = 2414.467 Amps 6 = -0.026 Power6 = -0.634
Raw Value 7 = 497 mV 7 = 2429.130 Amps 7 = -0.053 Power7 = -1.268
Raw Value 8 = 490 mV 8 = 2394.917 Amps 8 = -0.079 Power8 = -1.902
Raw Value 1 = 493 mV 1 = 2409.580 Amps 1 = -0.026 Power1 = -0.634
Raw Value 2 = 496 mV 2 = 2424.242 Amps 2 = -0.053 Power2 = -1.268
Raw Value 3 = 490 mV 3 = 2394.917 Amps 3 = -0.053 Power3 = -1.268
Raw Value 4 = 491 mV 4 = 2399.804 Amps 4 = -0.026 Power4 = -0.634
Raw Value 5 = 494 mV 5 = 2414.467 Amps 5 = -0.053 Power5 = -1.268
Raw Value 6 = 494 mV 6 = 2414.467 Amps 6 = -0.026 Power6 = -0.634
Raw Value 7 = 498 mV 7 = 2434.018 Amps 7 = -0.026 Power7 = -0.634
Raw Value 8 = 489 mV 8 = 2390.029 Amps 8 = -0.106 Power8 = -2.536
Raw Value 1 = 493 mV 1 = 2409.580 Amps 1 = -0.026 Power1 = -0.634
Raw Value 2 = 497 mV 2 = 2429.130 Amps 2 = -0.026 Power2 = -0.634
Raw Value 3 = 490 mV 3 = 2394.917 Amps 3 = -0.053 Power3 = -1.268
Raw Value 4 = 492 mV 4 = 2404.692 Amps 4 = 0.000 Power4 = 0.000
Raw Value 5 = 495 mV 5 = 2419.355 Amps 5 = -0.026 Power5 = -0.634
Raw Value 6 = 494 mV 6 = 2414.467 Amps 6 = -0.026 Power6 = -0.634
Raw Value 7 = 497 mV 7 = 2429.130 Amps 7 = -0.053 Power7 = -1.268
Raw Value 8 = 490 mV 8 = 2394.917 Amps 8 = -0.079 Power8 = -1.902