wait for replay
- From: Winbug <Roger.Valand@xxxxxxxxx>
- Date: Tue, 13 May 2008 13:31:02 -0700 (PDT)
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
.
- Follow-Ups:
- Re: wait for replay
- From: ham
- Re: wait for replay
- From: Maarten Wiltink
- Re: wait for replay
- Prev by Date: TMediaPlayer problem
- Next by Date: Re: wait for replay
- Previous by thread: TMediaPlayer problem
- Next by thread: Re: wait for replay
- Index(es):