Cosimulation with Simpack: How to use a memory block in a loop?
이전 댓글 표시
I am doing a cosimulation with Simpack. Therefore i using the SIMAT block with multiple in and outputs. Dependent from the outputs of the SIMAT block a flipflop switches. For an specific input value of the SIMAT block I need to count how often R switches. Therefore i generated the following submodel.

n is then used in a matlab function block to calculate the input to the simat block. When i try to run the simulation a size error occurs.
When n is not connected to the matlab function block (instead I used a constant value), it works. Thank you in advance!
답변 (1개)
Mihael Plut
2019년 1월 9일
1 개 추천
Hi Carmen,
do you have recomendation of literature used or tutorials available to learn about SIMPACK - Simulink co-simulation. Thanks.
댓글 수: 1
Marco Brugnoli
2024년 6월 26일
News about tutorials or literature about Co-simulation?
카테고리
도움말 센터 및 File Exchange에서 Converters (High Power)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!