Load command stuck in compiled matlab function. No errors, function just times out.
Show older comments
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
Answers (1)
Image Analyst
on 18 Nov 2014
0 votes
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.
1 Comment
MikeStein
on 18 Nov 2014
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!