Clear Filters
Clear Filters

Why does the xy graph block not show any plot?

43 views (last 30 days)
In my simulink file, the old xy graph scope is automatically replaced by the new xy graph block. But it does not work the same as before. I could see each signal time-graph, but when I switch to "xy graph" it shows nothing. I have tried to play with all the x and y range settings but it does help. Besides there is no explanation about the setting of triggering which appears on the left-hand side of the display. What is it for? The settings of the new version is very difficult to understand.

Answers (1)

Divit
Divit on 10 Oct 2023
Hi Somboon,
I understand that you are facing issues with the new “XY Graph” block in Simulink which was introduced in MATLAB R2021a.
If you can see the signal time graphs but you are unable to see XY Plot, then you would need to manually select the signals for XY Plot. You can do so by clicking on the “Show Signals” and checking the checkboxes for the signals you would like to plot in your XY Plot.
The triggering settings on the left-hand side of the display are used to control when the signal recording starts. By default, the recording starts at the beginning of the simulation. However, you can change this by specifying a trigger signal and a trigger condition. When the trigger signal meets the trigger condition, the recording starts. This can be useful if you only want to record the signals when certain conditions are met.
You can have a look at this example “Plot circle using XY Graph” to understand better: https://www.mathworks.com/help/simulink/ug/plot-circle-with-xy-graph.html
To learn more, you can refer to the following documentation links:

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!