Scope display from Simulink within MATLAB GUI
显示 更早的评论
I'm looking to display live simulation data from a scope within a MATLAB figure/ UI I've created. I'm aware you're able to send Simulink data to the workspace and plot afterwards, however, I would like to see a 'live' plot in sync with the simulation.
I have a basic model which outputs variables such as 'speed', 'distance', 'fuel consumption' etc... and have made my GUI programmatically (not using GUIDE).
I'm aware 'event listeners' can be used to show 'live' simulation data within a GUI however I'm unsure of how to do this. I've seen an example which was rather complicated and difficult to follow.
I hope you can help! An example code would be very useful, I simply want to just display the data from some scopes I've set up within a GUI.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
