Why is the Simulink Real-Time "Target Scope" block not available in R2020b or later?
33 views (last 30 days)
Show older comments
MathWorks Support Team
on 20 Jan 2021
Edited: Stefanie Schwarz
on 30 Jan 2024
There is no more "Target Scope" block shipped with Simulink Real-Time R2020b or later releases. It used to be available in 'Graphical' and 'Numerical' modes.
How can I visualize or display the signal data on a screen connected to my Speedgoat target computer in newer releases?
Accepted Answer
MathWorks Support Team
on 19 Sep 2023
Edited: MathWorks Support Team
on 19 Sep 2023
Simulink Real-Time went through a major product update for the R2020b release. Graphics support has been removed as part of this in favor of a more performant SSH shell-based QNX real-time operating system. This means that it will not be possible to visualize signals on the target screen anymore.
As a workaround, visualize the data and signals on the host computer using one of the methods below:
Use Simulation Data Inspector (SDI) to observe signals that you have marked for logging inside your model or using Simulink Real-Time Explorer:
It is also possible to add and remove signals from SDI during runtime without requiring a rebuild, as explained in the MATLAB Answers post below:
You can access live signal plots from the model canvas by adding Simulink Scope or Dashboard Scope blocks to your model. Start the simulation using the "Run on Target" button (external mode).
Design a custom App Designer instrument panel app to stream data using instrument objects. This app can also be deployed as a standalone executable using MATLAB Compiler. See the following MATLAB Answer for an overview:
Starting in R2023b, you can add axes as a custom instrumentation tab in SLRT Explorer. For more information, see Customize Instrumentation Display.
(1) It will still be possible to connect a monitor to the target machine. A text-based status log will be visible on the target screen:
(2) To replicate a Target Scope in 'Numerical' mode, printing to the target machine status monitor might be a feasible workaround. An example can be found in the following link:
2 Comments
Stefanie Schwarz
on 28 Oct 2021
Edited: Stefanie Schwarz
on 30 Jan 2024
Hi Allen & Christopher, I am sorry to hear you've had this experience with our Simulink Data Inspector. From my own experience I can tell you that the performance has improved tremendously with our latest R2021b release, so I can only encourage you to always stay up to date with our latest MATLAB release.
Stefanie Schwarz
on 28 Oct 2021
Edited: MathWorks Support Team
on 25 May 2023
PS. as for decimating the data streamed to SDI, you can use the "Logging Sample Time" option that is discussed here: https://de.mathworks.com/matlabcentral/answers/882723-how-can-i-improve-the-signal-streaming-performance-of-simulation-data-inspector-sdi-when-using-sim
More Answers (0)
See Also
Categories
Find more on Signal Tracing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!