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 件のコメント

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

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMulticore 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