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 Comments

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!

Sign in to comment.

Answers (0)

Categories

Asked:

on 10 Jul 2019

Commented:

on 12 Jul 2019

Community Treasure Hunt

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

Start Hunting!