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 comentarios

Walter Roberson
Walter Roberson el 10 de Jul. de 2019
https://www.mathworks.com/help/sltest/test-harnesses.html
Test harness appears to require a display.
Rahul Shinde
Rahul Shinde el 12 de Jul. de 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.
Walter Roberson
Walter Roberson el 12 de Jul. de 2019
Test harness cannot be used when you do not have a display.
Rahul Shinde
Rahul Shinde el 12 de Jul. de 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?
Walter Roberson
Walter Roberson el 12 de Jul. de 2019
I would recommend opening a technical support case.
Rahul Shinde
Rahul Shinde el 12 de Jul. de 2019
@Walter Roberson Yes,I will check with support team.Thank you for your help!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Multicore Processor Targets en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Jul. de 2019

Comentada:

el 12 de Jul. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by