How to export variables from Simulink to Workspace while running a simulation?
2 次查看(过去 30 天)
显示 更早的评论
Problem: I need 'live'-values of certain variables from a simulink model while running. The variables shall be used for the simulation which is controlled by a script.
I already tried to use the block 'to-Workspace' but with no success so far. The values just will be updated by the end of the simulation
0 个评论
回答(1 个)
Arunkumar M
2018-12-2
You can use interpreted MATLAB function to get the output of your simulation and store it to base workspace using assignin command
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!