Programmatic execution of Simulink (with an FMU in Simulink)
Ältere Kommentare anzeigen
I am trying to co-simulate Simulink and another external code. Here is my manual process:
- Run external code to generate FMU to be used in a Simulink model
- Open the .slx file and double-click on the FMU block to the load the generated FMU from step 1
- Run external code again to start "listening" over TCP/IP
- Run Simulink to begin co-simulation
The manual process works fine on a single machine. However, I would like to do this all programmatically and I think steps 1, 3, and 4 should be doable using a script in Matlab. I also think the Simulation object should allow me to execute the first half of step 2. What I am unsure of is how to script the second part of step 2 i.e., load the externally generated FMU into the FMU block in Simulink.
Appreciate your thoughts in advance!
Thanks.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


