Multiple Simulink models in one system

I am creatig simscape and simulink models to apply several tasks in a mechanical system.
Can I create different models from simulink in one file (for example, creating simscape electrical with simscape fluid and simulink HDL)?
If it is possible, what are the methods of integrating them in one system?
And if not, how can I use them together to plot their results in one screen?

 Risposta accettata

Fangjun Jiang
Fangjun Jiang il 4 Gen 2023
You can construct Simulink model and physical system model seamlessly in Simuink. See This example
There is PS to Simulink and Simulink to PS converter for connection.

3 Commenti

Ayman
Ayman il 4 Gen 2023
Modificato: Ayman il 4 Gen 2023
Thank you for your instant reply. But my model focuses on other several things that cannot be constructed from one model, and at the same time I can not add 2 solvers in the same file.
So that I want to know if there is a method to add 2 models together, such that each model has its own solver.
I know that Model reference using different solver was in the works by the Mathworks but didn't remember which version. You are in luck because it seems R2022b has it. See this example,Use Model Reference with Local Solver in DC Motor. Hope you know model reference already.
Thank you for your feedback. I think that this will solve the issue of integrating the models.

Accedi per commentare.

Più risposte (0)

Prodotti

Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by