MATLAB: In Simulink, how can I resolve a data dependency violation involving a triggered subsystem or a function-call subsystem

simulink

In Simulink, how can I resolve a data dependency violation involving a triggered subsystem or a function-call subsystem?

Best Answer

Latch the inputs in the subsystem, which would cause it to use the value from the previous time step.
This breaks the data dependency loop.
See more on the Inport documentation page: