There is an 'If Action' block that do exactly that, but all blocks in the subsystem must have same sample time as that of control block. I need to run that model in xPC Target.
MATLAB: Is there any way to conditionally trigger a subsystem having multiple sample time blocks in Simulink
simulinktrigger
Best Answer