ser.rxDec question
realolman
Posts: 65
· I have these two lines in my propeller code:
the only variable that receives info from rxDec is the second one... doesn't matter which one it is.
If I reverse the order of the two lines, InputVariable will receive the info.
If I only have one line, it seems that the execution stops until I serially transmit something with a chr(13).
I am sending the two lines from VB express. They are both the same and they both send a chr(13) at the end.
I even inserted a delay between the two transmissions... the only one that gets any info is the second one.
what am I doing wrong?
thanks
InputVariable := ser.rxDec WhichVariable := ser.rxDec
the only variable that receives info from rxDec is the second one... doesn't matter which one it is.
If I reverse the order of the two lines, InputVariable will receive the info.
If I only have one line, it seems that the execution stops until I serially transmit something with a chr(13).
I am sending the two lines from VB express. They are both the same and they both send a chr(13) at the end.
I even inserted a delay between the two transmissions... the only one that gets any info is the second one.
what am I doing wrong?
thanks
Comments
Bob
When I copy and paste this stuff here I lose the Indentations...
I was trying to boil it down to what I thought were the important lines:
Whichever one I have last gets the info... the first one just seems to ignore it, yet when I have only one line, doesn't matter which one, ·it seems to stop execution and wait for serial transmission to be received and get a chr(13) ... doesn't the frist line stop and wait until it gets a chr(13)?
Post Edited (realolman) : 2/1/2009 6:05:38 PM GMT
I was forgetting that the first digit I was sending serially was being "used" by ser.Rxcheck to see if there was anything there or not.
thanks for looking
Post Edited (realolman) : 2/1/2009 6:23:42 PM GMT