Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoEvents: Getting other events to process during a loop

Status
Not open for further replies.

DSPdude

Electrical
Jul 24, 2003
4
I have a simple while loop:
____________________________
while play
wavplay(wavout,Fs)
end
____________________________

The problem is that it is supposed to stop when the user presses the stop button, which will make play = 0, stopping the loop. But during the loop, the user can't press anything. I need something equivalent to the DoEvents in Visual Basic, that will let other events process.Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor