How do I run parallel programs in Matlab?
2 views (last 30 days)
Show older comments
Hi I wish to run two loops independently. Specifically, one loop will be playing a sound at random intervals while another loop will be constantly looking for a voltage source from a button click. Is it possible to run two programs simultaneously?
Thanks.
0 Comments
Answers (2)
E K
on 31 Jul 2012
i can not understand why you saw them as two different programs from your explanation it looks like you can run it as one but;
might help.
Jan
on 31 Jul 2012
You can start the sound from a TIMER, which modifies its interval in the callback. But looking for a button click is usually not done in a loop, but by the callback mechanism of the button. Clicking on the button triggers the event, not looking for the status of the button in an endless loop.
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!