Sx/b and pink serin string
10gigbill
Posts: 79
OK HERE'S THE DEAL
I have my SX28 hooked to my Pink module.· I would like to read a
string variable in the pink into a temp var in the sx then send it to
a local display hooked to the sx.·· The local display of strings works
fine. I just can't figure how to read a string in from the pink....
I send the pink:· serout topink,slowbaud,"!NB0Ro3"
then :· serin frompink,slowbaud,temp
where temp is var· byte(16)
this don't work??
·
I have my SX28 hooked to my Pink module.· I would like to read a
string variable in the pink into a temp var in the sx then send it to
a local display hooked to the sx.·· The local display of strings works
fine. I just can't figure how to read a string in from the pink....
I send the pink:· serout topink,slowbaud,"!NB0Ro3"
then :· serin frompink,slowbaud,temp
where temp is var· byte(16)
this don't work??
·
Comments
Then we won't have to guess.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
Ok The BS-2 will let you read a serin string into a multi byte var.
I don't see any examples of this with the sxb
so If I send to the NetBurner :
Serout RC.7,1200,"!NBOR03"
The NetBurner will spit out the asci contents of it's Variable 3
which can be any length up to 64 bytes. is that right? so I can use serin on the sx and take one character
at a time and check for the end of line char that I put in the NB var.
I would like to store the string from the NB in the sx.
comments?
Thanks Bill
The SXB SEROUT command can only send one character also. So "!NBOR03" will only send the "!".
Same with SERIN it will only read one character at a time.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
Bill
at a time to a VF display at 9600 baud and it works... Now to read it in and store the
string as data in the sx.
Thanks for the help.
Bill