Info
This question is closed. Reopen it to edit or answer.
I want to make simulink executable that can be used on another PC
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Kaustubha Govind
on 16 Jun 2011
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 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!