How can I warn users that a simulation was run using the 'sim' function vs the GUI play button?
显示 更早的评论
From within a StopFcn callback, I need to determine if the simulation was run using the 'sim' function vs using the GUI play button.
This is because the simulation outputs are not available in the callback for the command-line simulations and I have post-processing script running in the StopFcn callback.
How can I robustly determine whether the 'sim' function was used to run the simulation?
Because I want to detect when someone calls the 'sim' function, and throw a warning or an error telling them to run using the GUI play button.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!