How to execute a Matlab function block with a trigger as soon as a condition holds.
이전 댓글 표시
I want to activate a Matlab function block as soon as a condition holds. In the attached figure, the two Matlab function blocks are triggered by using a delayer. However, it takes a time since a satisfying condition is true. I want to execute the function blocks as soon as the related conditions are satisfied. Could you help me find a way of doing that?
답변 (2개)
Udaya Mallampati
2015년 7월 31일
0 개 추천
Hi Jin,
You can put your MATLAB function block inside an inside an Enabled and Triggered Subsystem as indicated in this link .
Hope this helps!
Anatolii Tcai
2018년 10월 18일
0 개 추천
Just press Edit Data button and there you can choose Add Trigger from the menu 'ADD' or by pressing corresponding button.
카테고리
도움말 센터 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!