How to make a kind of memory in simulink?
Mostrar comentarios más antiguos
Hello everybody,
I'm trying to make a model in simulink. This model have to simulate the outcoming flow of fluid from a tank. The flow is a variable, so in time it will and can be change (slider).
My problem is: I don't know how to built this kind of 'memory' in simulink. The new volume in the tank and the passed time have to set in a 'memory', so the same model can be used over en over again, in stead of building a model with dozen of 'copies', to simulate the process.
The example is attachment, it will show you how i've done it right now, but it isn't what i want. It's to complicated.
I hope somebody knows an answer/hint/trick or something to built a kind of memory for this problem.
Thanks
Respuestas (1)
Iain
el 27 de Ag. de 2014
1 voto
There are "memory" and integrator blocks built into simulink....
4 comentarios
Marcel Been
el 27 de Ag. de 2014
Iain
el 27 de Ag. de 2014
An integrator might be what you want.
If you set it to have the initial value that is the volume of water in the tank. You can then feed into it, the flow rate of water entering/exiting the tank...
Marcel Been
el 27 de Ag. de 2014
Marcel Been
el 27 de Ag. de 2014
Categorías
Más información sobre General Applications en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!