Either way, I'm trying to re label the first column of my worksheet, but it still remains the same (Date,Time,Timer,millis()).
void setup(){
Serial.begin(9600);
// while the serial stream is not open, do nothing:
while (!Serial)
{
// do nothing
} ;
Serial.println("CLEARSHEET");
Serial.println("CLEARDATA");
Serial.println("LABEL,A,B,C,D,E");
}
Pretty that's all there is to the code, please help??
Please post code that will compile and run, as described in the "How to use this forum" post.
Also, as explained in those instructions, tell us where you got PLX-DAQ, what version of Excel you are using, and whether you loaded it into Excel properly.
jremington:
Also, as explained in those instructions, tell us where you got PLX-DAQ, what version of Excel you are using, and whether you loaded it into Excel properly.
const int flexPin0 = A0; //pin A0 to read analog input
//Variables:
int value0; //save analog value
void setup(){
Serial.begin(9600);
// while the serial stream is not open, do nothing:
while (!Serial)
{
// do nothing
} ;
Serial.println("CLEARSHEET");
//Serial.println("CLEARDATA");
Serial.println("LABEL,A,B,C,D,E");
}
void loop(){
value0 = analogRead(flexPin0); //Read and save analog value from potentiometer
Serial.print("DATA,TIME,TIMER,");
Serial.println(value0); //Print value
delay (1000);
}
This works for me. It takes a moment to clear the sheet:
void setup(){
Serial.begin(9600);
// while the serial stream is not open, do nothing:
while (!Serial)
{
// do nothing
} ;
Serial.println("CLEARSHEET");
Serial.println("CLEARDATA");
delay(100);
Serial.println("LABEL,A,B,C,D,E");
}
void loop() {}