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!