Replies: 3 comments 7 replies
-
Dear @Amuri44 , as far as I understand you correct, this is not really an issue. (2,3) FMI is for simulating dynamic models, so a simulation from (1) Further, you are right, an addition-FMU is slow compared to a pure-C-addition-statement, but this should be expected, because there is much much more happening in the background, than just the simple addition process. If you really just want to add two numbers, FMI is not the right way to do. If you have larger systems and benchmark the simulation time compared to the simulation time in pure C, the timing will be much better, because a FMU is basically compiled C-Code. Best regards! EDIT: I moved this to discussions. |
Beta Was this translation helpful? Give feedback.
-
Best regards! |
Beta Was this translation helpful? Give feedback.
-
Dear @Amuri44 ,
Some users might want to do very customized stuff during simulation, so you can build a custom loop using The function definition of If you only wnat to change a FMU input, this is already supported by using:
where
If you have a high-frequency input you may want to decrease the Best regards! |
Beta Was this translation helpful? Give feedback.
-
I have a simple fmu file which is addition module (for testing) with two inputs
var1,var2
and single outputy
. I have three issues:1- When I run it, the execution time is 0.068864 second for the
fmiSimulate(myFMU, 0.0, 0.0; recordValues="y")
function. It is kind of slow. Any reason why and how to speed it up?2- I tried to change the values of inputs and simulate, as below. However, the
fmiSetReal
worked butfmiSimulate
did not take the new values and returned zero values (default). Any reason for that and how to solve the problem?3- When using
fmiSimulateME()
Instead offmiSimulate()
, it gives error. Any reason for that?Beta Was this translation helpful? Give feedback.
All reactions