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 Kommentare

https://www.mathworks.com/help/sltest/test-harnesses.html
Test harness appears to require a display.
Rahul Shinde
Rahul Shinde am 12 Jul. 2019
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.
Rahul Shinde
Rahul Shinde am 12 Jul. 2019
@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.
Rahul Shinde
Rahul Shinde am 12 Jul. 2019
@Walter Roberson Yes,I will check with support team.Thank you for your help!

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Multicore Processor Targets finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 10 Jul. 2019

Kommentiert:

am 12 Jul. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by