co-simulation within Simulink
Mostra commenti meno recenti
I am looking for options for co-simulation within simulink.
Scenario: I need one subsystem in simulink to run for 60 sec and send the average result (lets say 'a') to next subsystem, which takes 'a' as input and will continue the simualtion for 600 secs. How can I do that with in simulink?
Risposta accettata
Più risposte (1)
Yifeng Tang
il 22 Ago 2021
1 voto
It sounds to me that the easiest way is to set up two Simulink simulations. Save the output from the 1st one to the MATLAB workspace, so the 2nd simulation can use it as the input. You can also use MATLAB code to manipulate the result form the first one, say taking average. Use out=sim() function to run the Simulink models from script.
1 Commento
Shemin Sagaria
il 25 Ago 2021
Categorie
Scopri di più su Simulink Cosimulation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
