Simulink scope does not show the graph

42 ビュー (過去 30 日間)
Pauli Hytölä
Pauli Hytölä 2022 年 2 月 10 日
回答済み: Sabin 2022 年 12 月 21 日
I'm using the Simscape Electrical to simulate a power grid. Now I've come across this problem when I run the model: there is no graph in any of the scopes I'm using (there are several scopes in the model). This model is almost an exact copy of a different model in which the scopes appeared just as they should. I have already tried the following tricks without any luck:
  1. check that the scope is actually connected to the measurement block (obviously!)
  2. limit data points to last 5000, 10000, 100000 etc.
  3. scale X & Y axes limits (this doesn't do anything since the scope shows no graph whatsoever)
  4. zoom in & out
  5. save, quit, and restart the model
  6. edit the model using the other properly functioning model as a template
  7. summon the Dark Lord of Matlab...
The Simulink model is completely useless without the graphs and the problem seems quite absurd since the other model, which is almost identical, works just fine. Please, help.
  2 件のコメント
Benjamin Thompson
Benjamin Thompson 2022 年 2 月 10 日
The Dark Lord of MATLAB would like to summon a posting of the model in question... :)
Pauli Hytölä
Pauli Hytölä 2022 年 2 月 10 日
The whole model is way too large to fit in one decent sized picture of sufficient quality (the printed PDF pixelates if zoomed in) but here's a part of the model:

サインインしてコメントする。

回答 (1 件)

Sabin
Sabin 2022 年 12 月 21 日
As we don’t have access to full model is not easy to investigate what the issue might be. First things are indeed to uncheck the ‘Limit data points to last’ and check the zoom scale. As you already did this, next thing I would check the model for warnings/errors. If we have a division by zero somewhere and the signal value is NaN then nothing would be displayed in the scope. You can also log signals to Simulink Data Inspector as an alternative to Scopes . See Scope block and Simulink Data Inspector documentation for more insights.

カテゴリ

Help Center および File ExchangeData Logging についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by