The Arduino code looks reasonable, and should print out lines like "#S|LOGTEST|[xxx]#" every second or so. Do you see those lines appear correctly in the serial monitor in the Arduino IDE?

You need to install Gobetwino on your PC and then launch it by running Gobetwino.exe. In Windows 7, in order for Gobetwino to be able to save configuration changes you need to run it with administrator privileges. Your Arduino should be connected to the USB port and running your sketch before you launch Gobetwino. You must not have any other applications running which use the Arduino's serial port, such as the Arduino IDE. People have also reported problems with management software for mobile devices which connect by USB such as phones - some of this software probes serial ports and interfere with other applications trying to use them. If you have this type of software installed and have trouble getting Gobetwino to recognise your Arduino, try stopping them.

Gobetwino opens a window which has a menu bar with three menus: File, Settings, Commands. Click on Settings to display the Gobetwino configuration window and then click on the Serial Port tab. Here you need to select the serial port corresponding to your Arduino. You should also have the baud rate set to 9600, data bits set to 8, parity set to none, stop bits set to one, handshake set to none. Click the Update button to save your changes. Display the Status and Log tab and select (tick) Show Status Messages and Log Status Messages, and set the status message level to 1. Click the Update button to save your changes. Then click Exit to close the configuration window.

You only need to do the actions above once. After making these changes, I seem to remember it was necessary to exit Gobetwino and restart it in order for these changes to take effect - but I did this a long time ago and may have mis-remembered.

After you restart Gobetwino you should see a message like "Serial port : COMx opened at 9600 baud" followed by the output from your sketch. At this stage you won't have configured Gobetwino to recognise the commands so it should log them but not do anything about them. I suggest you confirm you've got this far before you try configuring the commands.

I only provide help via the forum - please do not contact me for private consultancy.

This look to me like you are sendeing something to GoBetwino AND something that is not meant to go to GoBetwino. That will not work. When you use GoBetwino you can ONLY send well formed GoBetwino commands, otherwise GoBewtino will try to interpret it a commands and fail miserably.

I bet you get all kinds of errormessage in he GoBetwino window - right ?

This look to me like you are sendeing something to GoBetwino AND something that is not meant to go to GoBetwino. That will not work. When you use GoBetwino you can ONLY send well formed GoBetwino commands, otherwise GoBewtino will try to interpret it a commands and fail miserably.

I bet you get all kinds of errormessage in he GoBetwino window - right ?

. Your Arduino should be connected to the USB port and running your sketch before you launch Gobetwino. You must not have any other applications running which use the Arduino's serial port, such as the Arduino IDE.

well Thanks a looooooot guys !! cause when I removed the code lines //Serial.print("Inch value="); //print inch text//Serial.println(inchvalue); and when I closed the Arduino IDE It Worked perfectly !!!!!!thanks a looot and all my respect !

This look to me like you are sendeing something to GoBetwino AND something that is not meant to go to GoBetwino. That will not work. When you use GoBetwino you can ONLY send well formed GoBetwino commands, otherwise GoBewtino will try to interpret it a commands and fail miserably.

In my experience Gobetwino copes fine with non-command messages, it logs them and carries on just as you'd hope.

However, having the Arduino's serial port held open by another application will definitely stop Gobetwino from working.

I only provide help via the forum - please do not contact me for private consultancy.