triggered events or triggered switch

11 ビュー (過去 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 Center および File ExchangePorts and Subsystems についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by