Simulating 2 instances of the same model

1 view (last 30 days)
John Fiaschetti
John Fiaschetti on 5 Jan 2022
Hi everyone,
I am trying to simulate redundancy in my system. I have a primary and backup system which I manage via variants. I would like to run both variants at the same time in the same simulation.
Each of the primary and backup consist of several reference models, each of which is controlled via variants. Most of the components have a "primary" and "backup" variant. While in the implementation, each runs on separate hardware. In simulation, I would need to run each of the variants in the same top model at the same time, each of which would talk to the other.
It doesn't appear there's a way to have both variants running in the same model even if I call them by reference. Each variant is trying to generate the same output signals, and this confuses Simulink. In addition, referencing the variants is very challenging because the one model can't exist in two variants in one place.
Would running each in a separate instance of Matlab work? I would have to exchange data between the two instances and synch the simulations, which seems like real nightmare.
Any suggestions?

Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by