rwtbuild using parallel computing toolbox aborts because no project is currently loaded
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I am currently trying to generate code using rtwbuild coupled with Parallel Computing Toolbox.
I have read the instructions from https://www.mathworks.com/help/xpc/ug/building-referenced-models-in-parallel.html as well as https://www.mathworks.com/help/rtw/ug/reduce-build-time-for-referenced-models.html and found it was encouraging.
Hereunder is described the procedure I used trying to generate code in parallel:
First I begin with setting configuration parameter "EnableParallelModelReferenceBuilds" to all of my models.
Then I execute parpool() command and MATLAB told me it was OK.
Then I run rtwbuild on my top model using "OpenBuildStatusAutomatically" to see what is happening:
this command starts to display encouraging messages such as "Parallel workers initialization completed" and several "Starting parallel model reference RTW..."
Allas this was just a fake as the generation aborts suddenly with the following error message:
Error using simulinkproject
No project is currently loaded
I tried again checking that simulinkproject is effectively loaded using isLoaded command just before executing rtwbuild command: this new trial failed although isLoaded has proved that simulinkproject was loaded.
Does anyone know what is wrong in my procedure ?
Thank you in advance for yourhelp.
Best regards.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!