IF statement output value is being held but needs to reset to 0
1 view (last 30 days)
Show older comments
Hello,
I have implemented different states in my Simulink model and put the 'state when action is resumed' parameter on reset. But I want it to reset to 0. The IF state is true if the tank level is below 20% and as you can see in the figures at around t=700 the tank level gets above 20% and the state stops operating, but the state still retains the last value. I've read that you can reset that to 0 with the state parameter on reset but that does not work for me.
Answers (0)
See Also
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!