co-simulation within Simulink
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
Yifeng Tang
2021년 8월 22일
1 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Simulink Cosimulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
