How to Run Sim command for non display matlab.

I am facing following error while running Model in Non display matlab using sim()
Error:
Harness operations are not supported because MATLAB was started with -nodisplay option. Please restart MATLAB without this option to enable
harness operations.

댓글 수: 6

https://www.mathworks.com/help/sltest/test-harnesses.html
Test harness appears to require a display.
I am trying to create harness and load using
sltest.harness.create(mdlname,'Name','controller_harness');
save_system(mdlname);
sltest.harness.load(mdlname,'controller_harness');
Now its giving error as "Harness creation aborted due to Model compilation failure"
So I ran model manually and it is compiling.
Test harness cannot be used when you do not have a display.
@Walter Roberson Thanks for your reply!
Now I am stuck as I have to simulate models over remote hpc server (using parallel computing).For this reason,We are trying to submit job but as it is non display system,its throwing these errors.Do you have any idea about how to proceed with this problem?
I would recommend opening a technical support case.
@Walter Roberson Yes,I will check with support team.Thank you for your help!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

태그

질문:

2019년 7월 10일

댓글:

2019년 7월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by