Executing a routine only once in a simulink model for mpc555
이전 댓글 표시
Hi, I am using simulink and real time workshop to develop my project which will be downloaded on phyCORE MPC555. Now simulink acts like a while loop where at each sampling time all the blocks are updated. What can I do if I want a block to execute only once. To be specific I want to provide a routine for the user to initialize the microcontroller clock if he presses a button say s1 in the 1st second after reset.
All I can think of is using an enabled subsystem. S1 triggers the clock initialize subsystem to be enabled and the remaining algorithms in another subsystem to be disabled. But the clock subsystem has to remain enabled till all inputs have been given by the user. any ideas or suggestions?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Code Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!