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

1 回表示 (過去 30 日間)
Aleks Bohosyan
Aleks Bohosyan 2019 年 11 月 13 日
回答済み: Fangjun Jiang 2019 年 11 月 13 日
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

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2019 年 11 月 13 日
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.

カテゴリ

Help Center および File ExchangeComponent-Based Modeling についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by