triggered events or triggered switch

7 visualizaciones (últimos 30 días)
Andreas
Andreas el 14 de En. de 2020
Comentada: Andreas el 14 de En. de 2020
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 comentario
Andreas
Andreas el 14 de En. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ports and Subsystems en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by