Thanx Melanie (ladies first) & Dave, i didn't know that the SerIn behaved like that with lack of data.
Ok, i'll go fiddle my code to accomodate that, and see what happens ;-)
Thanx again.
Thanx Melanie (ladies first) & Dave, i didn't know that the SerIn behaved like that with lack of data.
Ok, i'll go fiddle my code to accomodate that, and see what happens ;-)
Thanx again.
Hi again,
For a quick test, i tried :
but nothing happens. (assuming a 1000ms timeout).Code:SerIn pin1,T9600,[1000],SerialData
Am i meant to be adding other code to accomodate the elapsed timeout? or does the SerIn just "let go" after 1000mS, and return back to any previous gosubs/code etc?
Once again, the PBP Manual is "light" with information in most of it's commands, i'd love to see an entire re-write someday.
Is there an ADVANCED PBP link/pdf i should be looking at these days???
Regards,
Marty.
The added code in red, wait for 500 ms the data, then jump to label JUMPOUT executing the serout command.Loop:
SerIn pin1,T9600,500 Jumpout,SerialData 'get serial data from Pin1,
'store it in variable "SerialData"
Jumpout:
SerOut pin2,T9600,[SerialData] 'send the variable to a terminal to
'view the variable value on screen.
GoTo Loop 'do it forever.
Al.
All progress began with an idea
Thanx AL, i discovered that just moments ago, and got it to work pretty much the same as you've indicated....
Marty
Bookmarks