wait(t)
| Parameter | Description |
|---|---|
| t | Timer object or timer object array. |
wait blocks until each timer in t stops. While it is waiting, Nelson continues processing timer callbacks so scheduled callbacks can complete.
Use wait in scripts and tests when later commands depend on timer callbacks having completed.
t = timer('ExecutionMode', 'fixedSpacing', ...
'Period', 0.05, ...
'TasksToExecute', 3, ...
'TimerFcn', @(src, event) disp('tick'));
start(t);
wait(t);
get(t, 'Running')
get(t, 'TasksExecuted')
delete(t);
| Version | Description |
|---|---|
| 2.0.0 | initial version |