Hi all,
I am having problem reading the data from serial port(COM2) into a variable. The data coming back from the comm control has some special caracters,carriage and linefeed, along with my data.I have tried all the Baud rates and parities. It doesn't work. So i thought of parsing the value in the input buffer and take the value i need.
My code is:
Comm1.Object.CommPort = 2
Comm1.Object.Settings = "2400,O,7,1"
Comm1.Object.InputLen = 0
Comm1.Object.PortOpen = True
InString$ = Comm1.Object.Input
My program throws error when getting the input value in INSTRING$. I tried to assign the input to a string variable and byte variable. It won't work. Any idea? Thanks for all your help.
Subha
I am having problem reading the data from serial port(COM2) into a variable. The data coming back from the comm control has some special caracters,carriage and linefeed, along with my data.I have tried all the Baud rates and parities. It doesn't work. So i thought of parsing the value in the input buffer and take the value i need.
My code is:
Comm1.Object.CommPort = 2
Comm1.Object.Settings = "2400,O,7,1"
Comm1.Object.InputLen = 0
Comm1.Object.PortOpen = True
InString$ = Comm1.Object.Input
My program throws error when getting the input value in INSTRING$. I tried to assign the input to a string variable and byte variable. It won't work. Any idea? Thanks for all your help.
Subha