PLX-DAQ works but do not save DATA

I would like to collect data from a pressure sensor using an aduino uno.

Here is the code:

void setup() {
Serial.begin(9600);
Serial.println("LABEL,Current time,Pressure value");
}

void loop(){
int sensorVal=analogRead(A1);

float voltage = (sensorVal*5.0)/1024.0;

float pressure_pascal = (3.0*((float)voltage-0.47))*1000000.0;
float pressure_bar = pressure_pascal/10e5;
Serial.print(",");
Serial.println(pressure_bar);

delay(100);
}

I'm not a programmer, so I've used a code that I found in the internet and it works.

I want to collect DAT using PLX-DAQ but it doesn't work.

Where do you want to save the data to ?
An SD card might be a good choice as it offers the chance to analyse the data using a PC

mery1990:
I would like to collect data from a pressure sensor using an aduino uno.
I've used a code that I found in the internet and it works.

I want to collect DAT using PLX-DAQ but it doesn't work.

I assume that, by "works", you mean that, when you say "Serial.print(pressure):, it does that - on the serial monitor. This suggests;

  1. there is nothing fundamentally wrong with your code
  2. there is nothing wrong at all with the wiring
  3. all your problems are at the other end.

It could be that you are simply using the wrong version of PLX, which is only good for Office 2003 and earlier. Check here. If you have already done so, and are using that version, that would be the forum in which to raise problem.

This is not the way to send data to PLX-DAQ:

Serial.println(pressure_bar);

Study the examples that come with the latest version of PLX-DAQ, linked above, for correct ways to do this.

One of many possible examples. This sends one row of data to the spreadsheet.

      Serial.print("DATA,DATE,TIME,");
      Serial.print(i++); Serial.print(",");
      Serial.println(millis());