Can you help me fix a faulty self-resetting integrator?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
My self-resetting integrator in Simulink doesn't behave as expected. I feed back the state port to the reset input and when the state port is negative, the output should be reset to the initial condition equal to zero. Despite that I still get negative values. How can I fix this?
0 comentarios
Respuestas (1)
Fangjun Jiang
el 13 de Nov. de 2019
Right now, the reset trig is "falling" edge. Pure negative value won't trig it.
You could add a Comparison block to compare the value of state to >=0 and then connect to reset.
0 comentarios
Ver también
Categorías
Más información sobre Component-Based Modeling en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!