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?

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 4 de En. de 2023

0 votos

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 comentarios

Ayman
Ayman el 4 de En. de 2023
Editada: Ayman el 4 de En. de 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.
Fangjun Jiang
Fangjun Jiang el 5 de En. de 2023
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.
Ayman
Ayman el 5 de En. de 2023
Thank you for your feedback. I think that this will solve the issue of integrating the models.

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2022b

Etiquetas

Preguntada:

el 4 de En. de 2023

Comentada:

el 5 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by