L D[AR2P#0.0]
Lifetime Supporting Member
You could write a simulation block that takes the Tank valves as inputs and internally generates an analogue tank level based on the time valves are open. You could also add some noise to simulate the ripple in the tank as it fills/empties. You would then use comparators to generate the boolean values for the level signals. You can write to inputs in your program if you do it at the start of OB1