Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > wait for replay
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 6053 of 6157
Post > Topic >>

wait for replay

by Winbug <Roger.Valand@[EMAIL PROTECTED] > May 13, 2008 at 01:31 PM

Hi
I am sending commands to an instrument over a serial link and expect a
response from the instrument.  Certain commands have to be sent
repeatedly by a loop. Every command is answered with a respons by the
instrument. The problem is that  the instrument have no time to
respond successfull or failed before the loop is over.  Sometimes the
wait is some milliseconds and other times up to a seconds.
The problem is wich strategy to choose.  There is one procedure
initiating the loop, by a button.  Another function is processing
replys from the serial component.  Somehow, the procedure have to be
notified when the replay arrives and the loop can continue.

So, should I use messages or threads or both.  Threading is new to me,
so if there is another easier way...

Any thoughts
Roger
 




 5 Posts in Topic:
wait for replay
Winbug <Roger.Valand@[  2008-05-13 13:31:02 
Re: wait for replay
"Maarten Wiltink&quo  2008-05-13 23:12:49 
Re: wait for replay
ham <ham@[EMAIL PROTEC  2008-05-14 12:02:30 
Re: wait for replay
Winbug <Roger.Valand@[  2008-05-14 02:55:22 
Re: wait for replay
"Maarten Wiltink&quo  2008-05-15 11:10:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 11:15:06 CDT 2008.