Simulink "While Iterator" subsystem development and debugging

조회 수: 4 (최근 30일)
Andy
Andy 2013년 3월 13일
Historically, when I need to embed a Newton-Raphson iteration in Simulink, I develop it as a Matlab function, and then embed it in Simulink as a Matlab Function. In this job for this application, I would really like to use the subject "While Iterator" subsystem and build the system equations graphically. But, I am having a real problem debugging it. For instance, I can't figure out how to see the interim results. Any guiadance or help? Thanks.
  댓글 수: 1
NTR
NTR 2013년 3월 13일
It can be done by using temp array where u can store values at end Of each iteration

댓글을 달려면 로그인하십시오.

채택된 답변

Guy Rouleau
Guy Rouleau 2013년 3월 13일
The dataset logging format allows you to log all the iterations of For and While Iterator subsystems
I think the To Workspace block with Timeseries format also does it, but I am not 100% sure, I would need to verify.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by