Thank you for your code,
I used your Generator to create an FMU implementation and imported it into the Simulink canvas. Simulink prompted me to choose between Co-simulation and Model-exchange mode. I selected Model-exchange mode. However, during the simulation, I received the following message: 'TerminateSimulation' flag was set to true by FMU 'FMUDemo/FMU' during event iteration. Simulation will stop after the current time step at '0'. This seems to prevent the subsequent simulation from running correctly.
Could you please let me know in which part of the implementation code the 'TerminateSimulation' flag is set?
Thank you for your code,
I used your Generator to create an FMU implementation and imported it into the Simulink canvas. Simulink prompted me to choose between Co-simulation and Model-exchange mode. I selected Model-exchange mode. However, during the simulation, I received the following message: 'TerminateSimulation' flag was set to true by FMU 'FMUDemo/FMU' during event iteration. Simulation will stop after the current time step at '0'. This seems to prevent the subsequent simulation from running correctly.
Could you please let me know in which part of the implementation code the 'TerminateSimulation' flag is set?