FMU internal solver time step - Is there any possibility to dynamically change the FMU time step after generated?
11 views (last 30 days)
Show older comments
When exporting a Simulink model as a standalone FMU, I have seen information regarding how to make some parameters visible in the FMU block to allow certain configurability.
I was wondering, if there is any way to make something similar with the time step of the internal solver, so after having your FMU you can decide the time step it is running internally with. If I understood well, there is not any limitation associated with the FMI standard and I heard some compilers support this feature.
Thanks in advance.
0 Comments
Answers (1)
Aiswarya
on 30 Jan 2024
Based on my understanding of your question, it seems that you want to modify the time step size of the FMU block. In order to do this, you need to change the 'Communication Step Size' parameter of the FMU block. This parameter allows to specify the time interval between two simulation instants for the block. This parameter is described in the following documentation of the FMU block: https://www.mathworks.com/help/simulink/ref_extras/fmu.html?searchHighlight=FMU%20time%20step&s_tid=srchtitle_support_results_1_FMU%20time%20step#mw_42952658-dc8a-4e9f-86e9-9462049cd341
You can also set this parameter in the Simulation tab of Block Parameters of the FMU block as shown in the figure below:
1 Comment
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!