I have a function func1 that calls another function func2, which, in turn, starts a timer object. I need func1 to pause until the timer stops. How can I do this?
The timer is not a SingleShot Timer but a Periodic Timer stopped using stop() on a condition tested in its TimerFcn.
@timerCallbackbut only after it finished calling the callback (as many times as you define, but y default just once).