whatiscontrols
Mechanical
- Dec 19, 2006
- 5
I'm trying to model a PI controller.
The way it works is that for every 5 minutes of positive error an integrator number is incremented by 1. I want to know how to "reset" the timer for the discrete-time integrator so that when there is a zero crossing (i.e. positive to negative) a timer will start at 0 (and if it stays at negative for 5 minute) decrease integrator number by 1...
Please help if you can, I am new to Simulink.
The way it works is that for every 5 minutes of positive error an integrator number is incremented by 1. I want to know how to "reset" the timer for the discrete-time integrator so that when there is a zero crossing (i.e. positive to negative) a timer will start at 0 (and if it stays at negative for 5 minute) decrease integrator number by 1...
Please help if you can, I am new to Simulink.