How to extract a value of a variable in Simulink?
3 次查看(过去 30 天)
显示 更早的评论
I want to extract a value of a variable in an algebraic loop, if the certain criteria is fulfilled. For example I want X to be equal 300, if it is, i want it to take take this value and use in another place in simulation.
I tried to stop simulation if the criteria is fulfilled but then I cannot use the value of X anymore. With To Workspace Block, X is changing in time, so I can only extract the matrix X=[0 0 0 ... 300]
Is there a way for example to stop subsystem, but the rest of the simulation still runs. (when I used Stop Block whole simulation stopped).
Any idea how can i extract this last value of X?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!