You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so I have encountered one problem with dcplib use and synchronization:
If I have 2 slaves with FMU (low complexity model) that exchange information -> result plots are correct and they have the same number of data points, e.g. if the simulation is 10 seconds, we get 1000 samples for each slave if the step is 0.01s -> and here there is no problem BUT
If I have the same 2 slaves with FMU but joined with one FMU that is high computational demanding (e.g. particle filter), I see the "simple slaves" results have 1000 samples, but complex FMU has only ~50. So the conclusion is that it seems that the communication within dcp is not synchronized properly even if SYNC option and SYNC callbacks are used.
The files structure is similar to the structure that is available in the examples.
Thanks for the suggestions.
Here is an example 100 seconds of simulation, complex model only reached 7s.
The text was updated successfully, but these errors were encountered:
sorry for the late reply.
I am not sure if understand fully, but some general pointers:
The SYNC and ASYNC refer to the type of callback of the functions, ie, whether or not the callback is executed in its own thread or not.
E.g. if you use ASYNC in DoStep, it will run in its own thread, but then you will have to call computingFinished(); on your own, and so on.
There is no mechanism to slow down simulation time in SRT mode if one node computes a lot slower than the others.
In SRT all nodes try to keep up with real-time - with best effort as opposed to hard real time- and then effects like this can occur.
If you do not care about RT-capabilities but only care about simulation you could run NRT (which is basically what FMI does).
If you do care about RT then your models should be able to run at RT (or you need to deal with it somehow if they do not).
Hey,
so I have encountered one problem with dcplib use and synchronization:
Thanks for the suggestions.
Here is an example 100 seconds of simulation, complex model only reached 7s.
The text was updated successfully, but these errors were encountered: