PLX DAQ v2.9 not sending data continuously

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);

}

Welcome to the forums. Please take a minute and read this: How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum

It explains how to post your code using code tags so others can easily cut & paste.

What does the serial monitor display without excel? Are you getting a stream of data?

Good day. After some troubleshooting I realized that the data is transmitted for as long as the machine whose load is measured is OFF. When I put it ON, the data transmission stops. What could be the problem?

Please edit your post to add code tags.

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