Generating an Executable for Simulink Model using Embedded Coder: Setting Inputs and Displaying Outputs
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have been working on a Simulink model and would like to generate an executable using Embedded Coder. However, I'm facing difficulties in setting the inputs and displaying the outputs when using the generated executable.
Is there any specific settings I need to configure to be able to set inputs and display outputs with the generated executable?
I would appreciate some guidance on how to configure the settings correctly in order to achieve my goal.
0 commentaires
Réponses (1)
Harsh
le 20 Mar 2025
You can set the “Input” and “Output” parameters in the “Data Import/Export” pane of the Configuration Parameters dialog box to control the input and output behavior. The “Input” parameter can be used to load external input data for simulation and the “Output” parameter can be used to log data for top-level output ports. Please refer to the following documentation page for more information - https://www.mathworks.com/help/releases/R2022b/simulink/gui/data-import-export-pane.html
You can call the entry-point functions such as “step” and “initialize” from the generated code directly also. The interfaces in the generated code can also be controlled by their names, field names, etc. For more information regarding this please refer to the following documentation - https://www.mathworks.com/help/releases/R2022b/rtw/ug/control-data-interface-in-the-generated-code.html
0 commentaires
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!