Generate c++ code using imported model from Amesim

27 views (last 30 days)
Adrian Velasco
Adrian Velasco on 2 Jul 2019
Is it possible to generate c++ code in simulink using an imported model from Amesim?

Answers (1)

Hari Krishna Ravuri
Hari Krishna Ravuri on 17 Jul 2019
I understand that, you are trying to generate C++ code for a Simulink Project which uses an imported model from Simcenter Amesim. Using Amesim model in Simulink depends on the Hardware on which you are going to deploy. If the Hardware is compatible with both the Simulink and the imported Amesim model, then it is possible to generate C++ code for your Simulink Project. Amesim model cannot be imported into Simulink directly, for this Amesim provides an Amesim/Simulink interface by which you can construct a model of subsystem in Amesim and convert it into Simulink S-Function. This conversion can be achieved by “Interface Icon Block” in Amesim. Once the S-Function was generated, you can easily include in your Simulink Project. Then you can generate C++ code for your Simulink Project.
Please refer to the following documentations.

Community Treasure Hunt

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

Start Hunting!