Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I want to make simulink executable that can be used on another PC
조회 수: 1 (최근 30일)
이전 댓글 표시
i make a simulink executable.. only to find out that the executable is not displaying anything other than some thing like ' the model is set for an infinite time' . i want to deploy it and to be able to display the simulation as it proceeds. Thanks
댓글 수: 0
답변 (1개)
Kaustubha Govind
2011년 6월 16일
The execution of the generated code is governed by the code generated in ert_main.c. By default, the main() consists of an empty while loop - the reason is to force users to configure the execution according to their application.
However, if all you'd like to do is run your simulation and log the data in the form of a MAT-file, select "MAT-file Logging" on from the Real-Time Workshop > Interface pane of your model's Configuration Parameters window. When you generate code this time, the model step function is called and any logged outputs/states are saved to a MAT-file.
Alternatively, you can add your own code to the main() function before building it, in order to visualize it using your own C libraries.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!