Why is the Simulink Real-Time "Target Scope" block not available in R2020b or later?
39 views (last 30 days)
MathWorks Support Team on 20 Jan 2021
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?
MathWorks Support Team on 8 Aug 2022
Edited: MathWorks Support Team on 8 Aug 2022
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:
1) Use Simulink Data Inspector (SDI) to observe signals that you have marked for logging inside your model or using Simulink Real-Time Explorer: https://www.mathworks.com/help/slrealtime/ug/minimize-data-loss-with-simulation-data-inspector-buffered-mode.html
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: https://www.mathworks.com/matlabcentral/answers/1566953
2) Add a Simulink Scope block in your model and start the simulation using the "Run on Target" button: https://www.mathworks.com/help/simulink/slref/scope.html
3) Design an App Designer instrument panel app to stream data using instrument objects. Below is an example of such an app: https://www.mathworks.com/help/slrealtime/ug/add-app-des-app-to-inverted-pendulum-mdl.html
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:
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: