Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

I want to make simulink executable that can be used on another PC

1 Ansicht (letzte 30 Tage)
Oyewale Oyelami
Oyewale Oyelami am 15 Jun. 2011
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 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.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by