According to this microsoft article
http://support.microsoft.com/kb/115831COM ports higher than 9 are named like this: \\.\COM10
I don't have windows 7 to test it, but I think it will work if you change the line to:
com = fso.OpenTextFile("\\\\.\\COM25:9600,N,8,0", ForReading)
I changed the code line it also didn't work !! I still get the same problem !! could there be something wtrong with the Arduino Code itself ???
What have you done so far?
I have this Arduino Code
int configPin = 13; //Set the sonar Calibration Pin
int value = 877;
char buffer[5];
void setup() { //begin of program
Serial.begin(9600); //serial baud rate 9600
pinMode(configPin,OUTPUT); //make Calibration pin output
}
void loop(){ //looping of program
digitalWrite(configPin,HIGH); //raise the reset pin high
delay(120); //start of calibration ring
float sensorvalue = analogRead(0); //get analog sensor value from pin 0
float inchvalue = (254.0/1024.0) *2.0* sensorvalue ; //convert to inches
//float cm=inchvalue*2.54;
//Serial.print("Sensed a-d value:"); //print a-d text
//Serial.println(sensorvalue); //print a-d value
Serial.print("Inch value="); //print inch text
Serial.println(inchvalue);
//Serial.print("cm=");
//Serial.println(cm);
delay(500); //optional delay 1 second
digitalWrite(configPin,LOW); //turn off Calibration ring and sensor
delay(500); //delay 1 second
Serial.print("#S|LOGTEST|[");
Serial.print(itoa((value), buffer, 10)); //function. Itoa() is a function that will take an integer and return it
//converted to it’s string representation.
Serial.println("]#");
}
I can't understand how to display the results on Gobetwino
thanks a lot again