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

6 次查看(过去 30 天)
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 个评论
Sahas
Sahas 2024-9-4
Hi @ED,
Can you share the model file? It would help me undertand the issue and assist you better.
ED
ED 2024-9-4
编辑:ED 2024-9-4
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.

请先登录,再进行评论。

回答(1 个)

Jatin
Jatin 2024-9-4
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 个评论
Sam Chak
Sam Chak 2024-9-5
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 2024-9-5
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by