필터 지우기
필터 지우기

Error while turning on and off pump with stateflow depending on physical signal

조회 수: 1 (최근 30일)
I am trying to turn on and off a pump depending on the pressure within a hydraulic system. The pressure is measured within the system, feed into a stateflow chart, evaluated and then - depending on the current pressure - a pump is turned on and off through a stateflow output.
However this Setup gives me the error "stateflow chart updates a persistent or state variable while computing outputs, therfore it cannot be used in an algebraic loop."
How can I correct this error?
Thank you!

채택된 답변

Alicia Roder
Alicia Roder 2017년 3월 20일
Adding a delay block in the algebraic Loop should solves the problem.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by