Good day,
I am trying to sent data to excel using plx daq, but only the labels are recorded and it stopped.
Please help.
/*Arduino code for capturing the ROC load cell outputs in real time in excel
*Written by T. Nghipulile in November 2018/
*/
#include <Q2HX711.h>
const byte hx711_data_pin = A1;
const byte hx711_clock_pin = A0;
Q2HX711 hx711f(A1, A0);
float lc_f;
const byte hx711_data_pin1 = A3;
const byte hx711_clock_pin1 = A2;
Q2HX711 hx711m(A3, A2);
float lc_m;
unsigned long millis_time;
void setup()
{
Serial.begin(9600);
Serial.println("CLEARDATA");
Serial.println("LABEL, Computer Time, Time (ms), lc_f, lc_m");
Serial.println("RESENTTIMER");
}
void loop()
{
millis_time=millis();
lc_f=hx711f.read();
lc_m=hx711m.read();
Serial.print("DATA, TIME,");
Serial.print(millis_time);
Serial.print(",");
Serial.print(lc_f);
Serial.print(",");
Serial.println(lc_m);
}