simulink2025a 导出fmu时,参数丢失,试了2022版本没有问题

simulink2025a 导出fmu时,参数C和R丢失

1 Comment

Broy
Broy on 22 Jan 2026
Edited: Broy on 22 Jan 2026
Hi @niu,
I understand the issue being faced where parameters are missing when exporting an FMU from Simulink R2025a.
This issue typically occurs because the code generation settings treat Model Arguments as inlined rather than tunable variables during the standalone FMU build.
A possible resolution to the issue could be as follows:
  • Open Model Configuration Parameters (Ctrl+E).
  • Navigate to Code Generation -> Optimization.
  • Set the Default parameter behavior to Tunable.
Here is a useful Documentation regarding Limitations for Parameter Tunability in Generated FMUs:
Hope this is helpful.

Sign in to comment.

Answers (0)

Products

Release

R2025a

Tags

Asked:

niu
on 19 Jan 2026

Edited:

on 22 Jan 2026

Community Treasure Hunt

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

Start Hunting!