필터 지우기
필터 지우기

Reset vs Held in While Iterator Simulink

조회 수: 6 (최근 30일)
rantunes
rantunes 2015년 4월 16일
Hey,
I am new in Simulink programming and I am quite struggling with the distinction between Reset and Held for the while iterator.
The picture I attach shows the simple model diagram whose purpose is to count until 100 (external condition) within no longer than 20 iterations. If I set "reset" in the function block parameters, I get "out1 = 14" and if I choose "held" I get "out1 = 1". My question is why? I understand that with "reset" the iteration counter always resets to 1, so why "out1" is not always 1? Why "out1" increases up to 14 if we are always resetting the initial blocks.
I hope I am clear enough.
Thanks, Rodrigo

답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by