Sending a floating value from simulink model to workspace
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a simulink model with some output variables and I should use them in a realtime elaboration by m-file algorithms. For example I need to plot in 3d space an output position from model and so create a realtime 3d plotting. Ho can I do it ?
I've tried to use 'To Workspace' block but it doesn't allow to use variable value before simulation end (as realtime using).
Thanks
0 个评论
回答(1 个)
Kaustubha Govind
2011-10-17
See Accessing Block Data During Simulation. There is also a great demo that you can start with as an example:
>> sldemo_msfcn_lms
Start the simulation and double-click on the box where you are instructed to do so. The simulation runs for infinity, and the plot is continuously updated during simulation.
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Real-Time 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!