How to Export FMU with Source Code from Simulink with Matlab 2020b?

Hi
I need to export simulink/simscape (Matlab 2020b) model as FMU with source code. This is becasue i need to be able to build this FMU in Typhoon HIL which accepts plant model as FMU.
When i try to use 'exportToFMU2CS' with argument 'SaveSourceCodeToFMU', i get error about 'Invalid input options specified to exportToFMU2CS function'. When i see documentation in Matlab 2020b i see that this Name pair argument dosn't exist in Matlab 2020b but exist for higher versions.
I wanted to ask, how can i export FMU with source code from simulink with Matlab 2020b version?

2 commentaires

Standalone FMU export with souce code is a feature started in R2021a. You might want to consider upgrading your MATLAB version.
Hi Li
Thank You for this clarification.

Connectez-vous pour commenter.

Réponses (0)

Produits

Version

R2020b

Question posée :

le 23 Jan 2024

Commenté :

le 24 Jan 2024

Community Treasure Hunt

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

Start Hunting!

Translated by