wait for a command
Archiver
Posts: 46,084
hi
i am reading a temperature with BS2 and sends it to VB.
My question is how i use the serin command to always check for a
command from vb.
if no command then read temp.
if command then send data.
Regrads
Robert
i am reading a temperature with BS2 and sends it to VB.
My question is how i use the serin command to always check for a
command from vb.
if no command then read temp.
if command then send data.
Regrads
Robert
Comments
SERIN Spin, Baud, 2000, No_Cmd, [noparse][[/noparse]cmdByte]
... will wait for 2000 milliseconds for the command byte to arrive. If
it doesn't the program will branch to the label No_Cmd.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: robanowitch2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=7OPRFbKu2NRuvI0--zNWgsmAnYLbAXvnC79MutyiuHD7_kGco9dSwRh3hlXiCGLxdno0cEcuUCHkzJKQzLrFWo4DoBCX]robert.bohlin@b...[/url
Sent: Monday, April 12, 2004 5:29 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] wait for a command
hi
i am reading a temperature with BS2 and sends it to VB.
My question is how i use the serin command to always check for a
command from vb.
if no command then read temp.
if command then send data.
Regrads
Robert