Hi MikMo,
that is possible.
The interesting thing is that it produces 1 row of data, places the cursor on the next row and then dies (and only one number in each cell, so it is not the case that the data is getting through and just going into one cell),
so it is failing to do more than 1 iteration of the for loop below:
That makes me think that something is going wrong with readSerialString(serInString, 1000); from the gobetwino,
which makes me think that gobetwino and open office don't talk to each other in the same way that excel and gobetwino do!
Anyway, I got what I needed by just logging it as a csv file and then cleaning it up by hand - I was recording waves on a beach, and in the end it worked ok. Real time would be more spectacular though!
Cheers,
Leon
void sendPotValues()
{
char buffer[5];
int potValue1;
int potValue2;
for (int i=1; i<=15; i++){
//Read the two pot values - could be any sensor value or whatever
potValue1=analogRead(1);
potValue2=analogRead(2);
//Send the values as though it was typed into Excell, using the SENDK command
// This is the total line that is send: #S,SENDK,[pId; potValue1 {TAB} potValue2 {DOWN} {LEFT} ]#
Serial.print("#S|SENDK|[");
Serial.print(itoa((pId), buffer, 10));
Serial.print("&");
Serial.print(itoa((potValue1), buffer, 10));
Serial.print(" {TAB} ");
Serial.print(itoa((potValue2), buffer, 10));
Serial.print(" {DOWN} ");
Serial.print(" {LEFT} ");
Serial.println("]#");
// wait up to 1000 ms for answer from Gobetwino, answer will be in serInString, answer is 0 if all is OK
readSerialString(serInString, 1000);
//Deal with answer here - omitted in this example
delay(2000);
}