I want to put a command in order to make that the program continues if in some times there isn't input e.g In my program I execute an executable file, but sometimes it delays a lot of time to give me an input, then I'd like to put a sort of timer to skip it if it delays more than 1 min.

1 件のコメント

Image Analyst
Image Analyst 2015 年 11 月 26 日
What is the executable program? Is it commercially available software? Does that software use ActiveX, which might give MATLAB some chance at determining if that program has had any activity in it?

サインインしてコメントする。

回答 (1 件)

dpb
dpb 2015 年 11 月 27 日

0 投票

Start the external program with the trailing & to allow execution to continue immediately and then issue a pause for the desired time interval. This works with Windoes; not positive the system or unix function has that facility builtin on non-Windows platform. If that's the case probably have to get more creative like actually using the OS to dispatch another process manually if Matlab is waiting on the result when start the other program.

カテゴリ

質問済み:

2015 年 11 月 26 日

回答済み:

dpb
2015 年 11 月 27 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by