How can I use a vertical cursor feature in the Simulink Scope viewer?
6 次查看(过去 30 天)
显示 更早的评论
I want to change the y-axis range of a Simulink Scope viewer automatically or manually while the simulation is running. For instance, I want a y-axis scroll bar or range adjustment button be added to a Simulink Scope viewer. This capability would allow the scope to display data that exceeds the y-axis limits, even while the simulation is still running.
采纳的回答
MathWorks Support Team
2012-12-28
This enhancement has been incorporated in Release 2012b (R2012b) in the form of data cursors. For previous product releases, read below for any possible workarounds:
The Simulink Scope viewer does not have a vertical cursor feature.
To workaround this issue, you can create a custom GUI that logs the desired signal and implements button callbacks that shift the y-range upwards and downwards.
It is also possible to write an M-Function to automatically re-scale the Y-Axis so that the data is always visible on the scope display. The attached solution includes a sample MATLAB file showing how to do this.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 View and Analyze Simulation Results 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!