Sort Internal Variables in FMU

Hi,
I am exporting a Simulink model with some pre-defined internal variables as a FMU. There are properly exported. However, the order is not respected; they seem to be randomly sorted inside the FMU object.
Is there any way I could solve this issue?
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez

 Accepted Answer

dpb
dpb on 3 Sep 2025
Moved: dpb on 4 Sep 2025
exportToFMU documentation has no input parameter to control the output order of saved variables, no.
I suspect the order will be/is dependent upon the structure of the model and the order in which components/variables were created or are linked/used.

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Products

Release

R2024b

Asked:

on 3 Sep 2025

Moved:

dpb
on 4 Sep 2025

Community Treasure Hunt

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

Start Hunting!