Re: Waiting in a loop
- From: "Edward " <edwaugh@xxxxxxxxxxx>
- Date: Mon, 15 Oct 2007 18:02:26 +0000 (UTC)
Hey Matt,
There is a function for this that passes control out of the
while loop. I can't remember the name now but it is part of
the GUI tools. If you hunt around in that part of the
manual for a while you should find it.
ed
"Matt " <keebler303@xxxxxxxxx> wrote in message
<ff09ab$jkr$1@xxxxxxxxxxxxxxxxxx>...
I have written a gui program to send data to externalThe
hardware. Around 15000 values are sent to the hardware.
buffer is around 500 values. It takes around an hour tosetup
send all the data as the buffer is gradually read and
emptied by the external hardware. I have a while loop
so that it will wait until the buffer has space before
sending more data. While it is waiting, it ties up the
processor almost completely. Sometimes, I want to cancel
the routine by clicking a cancel button in the gui. The
mouse is delayed and jumpy and there is some delay when I
click the button. How can I setup my waiting routine so
that the processor is not bogged down in this while loop
waiting to send another chunk of data? I want to free up
the processor when the buffer is full instead of tying it
down in a while loop.
Thanks
Matt
.
- References:
- Waiting in a loop
- From: Matt
- Waiting in a loop
- Prev by Date: Re: using java in matlab
- Next by Date: Creating a report
- Previous by thread: Waiting in a loop
- Next by thread: Re: Waiting in a loop
- Index(es):
Relevant Pages
|