triggered events or triggered switch

조회 수: 9 (최근 30일)
Andreas
Andreas 2020년 1월 14일
댓글: Andreas 2020년 1월 14일
Hello everyone,
I built a model showing a tank filling routine. A pulse generator gives a start signal for filling the tank and will open a valve.
A counter (integrator) measures the tank volume and when a certain level is reached, the valve will be shut until start of the next cycle.
When a cycle is not complete, the system keeps filling and misses one trigger event (on purpose).
Is there any better way to model without memory block? Maybe some kind of triggered switch, which keeps its signal path until the next trigger signal?
Any help is appreciated.
  댓글 수: 1
Andreas
Andreas 2020년 1월 14일
This one inspired me a bit:
So I changed the model to be built with logical blocks, but still have to use memory blocks.
With step size and solver set to auto, both versions (in one model, chose via manual variant sink) create different output. When the maximum step size is reduced, output becomes similar.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ports and Subsystems에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by