Sort Internal Variables in FMU
6 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
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.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!