MATLAB Answers

0

Can you help me fix a faulty self-resetting integrator?

Asked by Aleks Bohosyan on 13 Nov 2019 at 15:48
Latest activity Answered by Fangjun Jiang
on 13 Nov 2019 at 15:55
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?
Image2.JPG
Image1.JPG

  0 Comments

Sign in to comment.

1 Answer

Answer by Fangjun Jiang
on 13 Nov 2019 at 15:55

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 Comments

Sign in to comment.