필터 지우기
필터 지우기

Why does the xy graph block not show any plot?

조회 수: 58 (최근 30일)
Somboon Sangwongwanich
Somboon Sangwongwanich 2022년 1월 25일
댓글: Somboon Sangwongwanich 2023년 10월 14일
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.

답변 (1개)

Divit
Divit 2023년 10월 10일
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:

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by