Problem: how to get datas from integrator block in simulink
Show older comments
heya everyone
im new to this community, so if i didn't write in a proper way pls forgive me :)
My real problem is animation, because i have simulink model, which i have to simulate via GUI, and i made it and it works perfectly, but in addition i want to create animation from that simulation.
My real task is to animate, two connected containers with liquid, and how they works when you simulate whole model, i completed model and when i simulate it works, but of course it represents results in one graph
So basicly at the beginning i drew two connected containers, and now i have to add animation to that, so basicly when i hit "Simulate" button, that everyone can see how it works
And now i'm wondering is it possible to get datas from integrators bcs in integrators are stored data of water level which i think i can use for area, set etc. functions, and with refreshdata i can easily get animation...
Thank you in advance, and i hope that you understand what is my problem, if you need more info pls write it here, or email me at:
Accepted Answer
More Answers (2)
Kaustubha Govind
on 18 Aug 2011
0 votes
On the Integrator block dialog, there is an option called "Show state port" that you can select to output the current state. Does this answer your question?
2 Comments
Kostbone
on 19 Aug 2011
Kaustubha Govind
on 19 Aug 2011
Yes. It looks like Fangjun answered your question correctly. I think I misinterpreted your question. :)
Guy Rouleau
on 18 Aug 2011
0 votes
My favorite way to send data each time step from a model to a GUI is with an event listener. See those links:
Categories
Find more on Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!