From: Jurian Sluiman on
Hello experts,
In my model in Simulink, I have a loop with an integrator, e.g. the
model in this figure:
<http://juriansluiman.nl/storage/16/example.JPG>

Here includes the B subsystem an integrator.

The input from B cannot be zero, so I tried an if-case with two
if-action subsystems. After the sum, I detect if the input is zero.
The default action is to follow the loop, but if the input value is
zero, I will retutn nothing (the constant 0) to C (and D).

But I get an error:
"Input data dependency violation due to action subsystems.
Input ports (1, Action) of '[...]' are involved in the loop."

So I cannot use and switch or if case in a loop. How can I use an
integrator where it's possible to have an input of 0?

Thanks in advance,
Jurian Sluiman