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