Create a function which can stop itself if its internal function gives no reaction within XX seconds ??
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
Hi, I am just wondering if there is any way to impletment a function like this:
function rslt = example1()
% start call main function
...
try % start followin function, if no feedback within XX seconds, then catch the error
% call function another thread
rslt = callback();
catch
rslt = 'error!!';
end
...
end
Anyone has an idea?
Thnks
Antworten (1)
per isakson
am 2 Mai 2014
0 Stimmen
AKAIK: There is no simple way to do that.
We discussed a function, watchdog, in another thread a year ago. I think you could apply the approach of my watchdog_demo. (The conditional break point must be set at an appropriate line in your function, callback.)
2 Kommentare
SSOI SS
am 14 Mai 2014
per isakson
am 14 Mai 2014
I don't understand the problem you see.
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!