Load command stuck in compiled matlab function. No errors, function just times out.
이전 댓글 표시
Hello,
I'm baffled at the moment... I have a (large) simulation that I've compiled using the R2013b MCC on a Linux platform. From the logs, it starts correctly, but execution seems to get stuck in the
load([filename '.mat'])
command. There is no error reported, but the simulation times out.
I've verified that the script works uncompiled with the same input parameters, loaded .mat file, and included paths (using the -a switches for mcc). Note that filename is an absolute (not relative) path, that I've verified.
I've searched around, and I've seen that there are issues if you try to load in ascii files, but I don't think this is ascii... I have a separate script that executes
save([filename '.mat'])
at the end (with no -ascii switches). So doesn't this avoid the ascii issues? I'm practically begging for thoughts here... I'm by no means a Matlab novice, but I am out of ideas. Without an error message, I don't have direction...
Thoughts? Thanks, Mike
답변 (1개)
Image Analyst
2014년 11월 18일
0 개 추천
I deal with this all the time. Not hanging, but filenames in compiled apps. It should throw an exception that the file is not found. I believe the problem is that the file is not where you think it is. Did you know the real executable path is not where you think it is? It's really in some other secret hidden folder. I don't have time to get into it now, but specify the full path of the file. If it's relative then get the REAL path of your executable. Don't just give the base filename or start off the path with ../. Ask tomorrow if you still need help.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!