Variables in Simscape blocks don't get updated by a Matlab app

조회 수: 1 (최근 30일)
Sam136
Sam136 2020년 11월 23일
편집: Sam136 2020년 11월 24일
I am trying to create an exceutable file from a Matlab app. This app calls a Simulink model which includes Simscape blocks as well. There are some variables in the model which should be defined in the app. The problem that I have right now is that the variables in Simscape blocks don't get updated by the app while Simulink blocks do. I have created an example to better explain my problem. If you change the variables (e.g. Stiffness) you'll see that the output for the SImulink blocks changes but the output of the Simscape blocks are remained unchanged:
modified example: attached
BTW, I have tried this solution and it didn't work.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by