Passing Custom Command Line Arguments to a Compiled Simulink Model
이전 댓글 표시
Hello,
I'd like to pass command line arguments to a compiled GRT Simulink model. The idea is to overwrite pre defined variables used in the model, e.g. in a Constant block. So far I could not find any information on this.
Thank you in advance for your help!
Best,
Leon
채택된 답변
추가 답변 (1개)
Reid Spence
2024년 8월 1일
0 개 추천
If your goal is standalone simulation on a desktop then Simulink Compiler might make your life easier. You can write the code in MATLAB to accept command line arguments for the generated EXE.
Otherwise what others have said is correct for ERT generated code, you will need to modify the generated code and main file. Simulink Compiler would save you some of this work.
카테고리
도움말 센터 및 File Exchange에서 Simulink Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!