Code generation for a 2013 simulink model on a 2020b matlab

3 visualizaciones (últimos 30 días)
Mohamed habib Ouali
Mohamed habib Ouali el 23 de Jun. de 2023
Respondida: Parth Saraf el 25 de Jun. de 2023

Hello, I need to generate code from a 2013 simulink model that is not an AUTOSAR SW-Component, and using matlab 2020b for the code generation. Does anyone have any idea on how to do it ? Thank you.

Respuestas (1)

Parth Saraf
Parth Saraf el 25 de Jun. de 2023
Hello,
You may follow these steps in order to solve your issue:
  1. Open the simulink model in the R2020b version
  2. Set the solver type, sample time, and other model-specific settings in the model configuration settings
  3. In the Code generation category (in the Configuration parameters), choose the particular software or hardware platform (for which you want to generate the code) in the System target file section
  4. Configure the code generation options and generate the code
You may look at this documentation for more details of code generation:
Hope it helps !!

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by