How to send back a continuously updating constant to workspace from Simulink ?
显示 更早的评论
I have a analog read block to read the value of a potentiometer (using arduino). I want to save that value to my workspace in a constant so that i could later use it . I have tried it using ' To Workspace' and 'Simout' blocks , the problem is that the value is stored when the session of the simulink ends , which is clearly what i donot want . I want the constant to update continuously.
Any advice would be appreciated.
1 个评论
Kaustubha Govind
2013-9-3
Could you explain more about how you plan to use the saved constant simultaneously as the model is running. Is there a MATLAB file that you are running in parallel?
回答(1 个)
Kaustubha Govind
2013-9-3
0 个投票
Please see Access Block Data During Simulation for the recommended technique to access signal data during a simulation.
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!