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?
Best Answer