How to run a simulink model with a "co-simulation" fmu and bus signals?

4 views (last 30 days)
Hello together,
i want to handle some bus signals with an imported FMU.
The picture below shows the desired functional struturce of the model. The model has a Co-Simulation module.
The FMU-block:
The FMU works itself fine without any interruption or warnings. The Matlab-function block only do some basic calculations and all in- and outputs are from data type double.
But when i simulate the parent simulink model, which includes the fmu block, i receive the following error messsage:
An error occurred while running the simulation and the simulation was terminated
Caused by:
I used the debugger, but it shows me only the same error message again.
MathWorks only shows an example of a simulink model which use bus signals and a "Model-Exchange" FMU.
So i am asking me, if it´s even possible to run a simulation with bus signals and a co-simulation module?
When yes, why does this error appear?
Does anyone have a solution for this problem?
Or is it also possible to export a model-exchange fmu with matlab?
Thanks and kind regard
Tobias

Answers (0)

Categories

Find more on Create Standalone FMU in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!