필터 지우기
필터 지우기

Scope block doesn't show any data inside a reference model block

조회 수: 13 (최근 30일)
Mohamed Abdullah
Mohamed Abdullah 2023년 6월 1일
답변: Ayush 2023년 8월 31일
Hello, I am running one of the reference applications in simulink. Inside that model there are several reference model blocks....what I am trying to do is to place a scope inside one of those blocks to see the resulted signals rather than going back to the visualization block. I tried several solutions like auto scale and limited data options in the scope settings but with no success. I think there might be an option to adjust because the scope works fine for the output signals from the reference block itself but inside the ref model block, it doesn't show anything . I also tried the logging signals option it also woorks fine inside the model reference block
  댓글 수: 2
Daniel
Daniel 2023년 6월 1일
Which reference model are you running? I have an idea what the cause might be, but it would be nice to confirm it before sharing an answer which might be incorrect.
Mohamed Abdullah
Mohamed Abdullah 2023년 6월 1일
편집: Mohamed Abdullah 2023년 6월 1일
Thanks for your help.I am using the reference application of electric vehicle and the reference module that I am talking about is the powertrain control module

댓글을 달려면 로그인하십시오.

채택된 답변

Ayush
Ayush 2023년 8월 31일
Hey Mohamed Abdullah,
I understand that you are running a reference application in Simulink and want to place a scope inside one of the reference model blocks to view the resulting signals. You have tried options like auto scale and limited data in scope block settings, but it doesn't work within reference model. The logging signals option works fine inside the block.
This might be happening as your model might be running in “accelerated mode” and “Scopes” don’t work well in this mode because Simulink generates a C-MEX S-function for the model for run-time execution, and “Scopes” are not part of that S-function.
To see the output of internal signals in a reference model, you can try the following approaches:
  1. Using "outport" blocks in the model reference and scoping the relevant signals from the top-level model.
  2. Using the Simulation Data inspector (either from the top-level model or from the model reference) and logging the desired signals.
For more information about the Scope block, you can refer its documentation : Display signals generated during simulation - Simulink - MathWorks India
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by