How to export variables from Simulink to Workspace while running a simulation?
조회 수: 1 (최근 30일)
이전 댓글 표시
Problem: I need 'live'-values of certain variables from a simulink model while running. The variables shall be used for the simulation which is controlled by a script.
I already tried to use the block 'to-Workspace' but with no success so far. The values just will be updated by the end of the simulation
댓글 수: 0
답변 (1개)
Arunkumar M
2018년 12월 2일
You can use interpreted MATLAB function to get the output of your simulation and store it to base workspace using assignin command
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!