Logging data via Gobetwino - not a well formed command string error

Hi, I am relatively new to the Arduino platform and I am trying to log data as a text file from two thermometer readings using Gobetwino. My code currently reads:

void setup() {
Serial.begin(9600);
Serial.print("#S|TEMP|[sensorValue, sensorValue2]#");
}

void loop() {
int sensorValue = analogRead(A0);
Serial.print(sensorValue,DEC);
Serial.print(",");
int sensorValue2 = analogRead(A1);
Serial.println(sensorValue2, DEC);
delay (10000);
}

When I open Gobetwino a status message reads that the string received is not a well formed command string. I have tried following the example http://electronics.divinechildhighschool.org/Home/Arduino-Lessons/using-gobetwino-to-control-windows-through-arduino but to no avail. Sorry my code isn't well annotated but I am fairly unfamiliar with it and any advise would be greatly appreciated

dcotton123:
I am trying to log data as a text file from two thermometer readings using Gobetwino.

If that's all you want to do, it is surely easier to use an ordinary terminal programme, like RealTerm.

Ideally I want it to be transferred to excel but just a simple first step at the moment. My lecturer suggested Gobetwino and I have seen previous mentions on the arduino forum. I have seen some people have had success with it but no mention of this error which I do not fully understand how to rectify.

I have not heard of Real Time, are there any related examples you know of? A quick google search hasn't provided any arduino based examples

Its RealTerm
It, and many others, can log and timestamp data into a csv file ready for transfer to Excel and all are freebies..

Gobetwino may have some value in other arenas but it's not pleasant and I wouldn't dare ask what on earth motivated your lecturer to suggest it for this purpose. If Excel is your intention and he knew what he was doing, he surely would have suggested PLX-DAQ or the like. PLX is a free macro for Excel which effectively makes it a terminal, thereby allowing you to send data from Arduino direct into Excel. This enables you to draw real-time (yes, that's the word) graphs, something RealTerm cannot do.

This note might be useful

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2PLX.pdf

The reason your existing implementation using Gobetwino is not working is that you need to output a complete Gobetwino command string each time, i.e.:

#S|TEMP|[sensorValue, sensorValue2]#

(Substitute your actual values for 'sensorValue' and 'sensorValue2'.)

Currently your loop is only printing the values, not the rest of the command string.

However, I agree with Nick_Pyner's recommendation. Gobetwino is not a particularly good fit to your requirements.