detectin that codegen has finished
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there a way to detect in matab that codegen has finished. The following code does not work because codegen runs asynchronously and has not finished before the call to myfun_mex
>> codegen myfun % generates myfun_mex.mexw64
>> myfun_mex
댓글 수: 0
답변 (1개)
Kaustubha Govind
2012년 7월 16일
AFAIK, the codegen command is not asynchronous. Perhaps it takes a few seconds for the file system to register the new file? You could try adding a pause(1) command to pause for a second before attempting to run the file (you could experiment with increasing/decreasing the pause time).
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Input Specification에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!