Discontinuous display in Simulink Scope

24 Ansichten (letzte 30 Tage)
Ximeng Wu
Ximeng Wu am 22 Apr. 2022
Kommentiert: Ximeng Wu am 3 Mai 2022
Hi, I am running a simulink model, however, some of the signals are not displayed properly in the Scope. They are discontinuous in the scope, but if I export the data to workspace and plot them, they are continuous. Anyone knows how to solve this issue? Thank you.
Signal data in scope
I have checked the limit data points option and simulation period in the scope settings.

Antworten (1)

VBBV
VBBV am 22 Apr. 2022
Select the plot type as Auto in scope block. This plots the graph as continuous signals instead of discrete ones which you have.
  12 Kommentare
VBBV
VBBV am 22 Apr. 2022
After changing Marker , u could see some continuity of plot as lines and dashed lines but after some time it becomes discontinuous. Observe carefully the first few time seconds they are continuous.
Ximeng Wu
Ximeng Wu am 3 Mai 2022
Thanks for your reply. I found the reason, it seems it is caused by different sampling time settings for different subsystems, if I use the scope inside the subsystem, it is discontinuous, if I output the signal and use the scope outside the subsystem, it is continuous. For now, I have this solution.

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by