the scope in simulink doesn't show some specific signal.

8 views (last 30 days)
the signal after the block of intergration is unplotted by scope who can be used to probe the other signals that I am sure the scope is good.
and the signal unplotted as well as the signal processed from the former one cann't be plotted either.
  2 Comments
Sahas
Sahas on 4 Sep 2024
Hi @ED,
Can you share the model file? It would help me undertand the issue and assist you better.
ED
ED on 4 Sep 2024
Edited: ED on 4 Sep 2024
the scope is blank with some signal, but normal with other signals.
I browse online, someone suggests it has something to do with GPU which I really doubt for it seemingly depents on the signal probed.

Sign in to comment.

Answers (1)

Jatin
Jatin on 4 Sep 2024
Hi @ED,
There can be few reasons for the signal not being plotted in the scope block, kindly see if the following points are helpful to you:
  1. Make sure the scope block has enough input ports to accommodate all signals you want to plot. You can specify the number of ports in scope block.
  2. You can adjust the Y-axis limits of the scope to ensure the signal is within the visible range.
If you are sure that the scope block is configured properly, then you can make sure the below points are covered:
  1. If the system has discontinuities, you can enable zero-crossing detection for better accuracy.
  2. Ensure simulation time is sufficient to capture signal changes, also check the step size, too large of a step size might miss signal transitions.
If everything looks fine, kindly inspect the signal using Display block or Simulation Data Inspector for any unexpected behaviour.
You can also refer the documentation below for more details on ‘Scope block’:
Hope this Helps!
  4 Comments
Sam Chak
Sam Chak on 5 Sep 2024
Hi Ed, the reason is probably because some functions at a specific point where the division by zero occurs, is indeterminate 0/0 but it has a limit.
You probably remember L'Hôpital's rule in the Calculus class...
ED
ED on 5 Sep 2024
Hi Both:
It happens at time 0 with 0/0, I really get confused that the model configuration has default of none for inf and NaN block out other than warning or even error. After switched into error, it makes sense by stopping simulation with location of the issue highlighted.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!