Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
I want to make simulink executable that can be used on another PC
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Kaustubha Govind
il 16 Giu 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 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!