필터 지우기
필터 지우기

Observer Port error: Observer Port is mapped to an invalid block, because this block is inside a function-call subsystem.

조회 수: 9 (최근 30일)
Hello,
I'm testing the Simulink model at the component level by using Simulink test. I need to verify some internal signals. In this way I tried to use the Observer Reference Block and Observer Ports. I followed the steps from the link: Access Model Data Wirelessly by Using Observers - MATLAB & Simulink (mathworks.com).
I get the following error:
Observer Port is mapped to an invalid block, because this block is inside a function-call subsystem.
I was wondering if this is a tool limitation or is it somethig that I am doing wrong?
I appreciate a lot your support! Thank you very much!
Diana
  댓글 수: 3
Diana
Diana 2024년 2월 12일
Hi, thanks for your response!
Could you please give me a hint without checking the model? I am not allowed to share the models.
Diana
Diana 2024년 2월 14일
Hello, could you please support with a solution for this error?
Thanks much!

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

채택된 답변

Varun
Varun 2024년 2월 27일
Hi Diana! As per the following documentation link (https://www.mathworks.com/help/sltest/ug/access-model-data-wirelessly-by-using-observers.html), the "Observer Port" block can observe the following signals:
  • Continuous-time and Discrete-time signals
  • Zero-order hold signals
  • Scalar signals
  • Wide signals
  • Nonvirtual bus signals
  • Messages
  • Conditional subsystem signals
  • Stateflow® local data parameters, except locals, parameters, signals, and other data defined in a Simulink subsystem inside a Stateflow state.
  • Stateflow state self activity, except if that activity is in a Simulink subsystem inside a Stateflow state.
So, it appears that a function-call subsystem is probably not supported yet. But to achieve similar results, you can propagate and log the signal outside the function-call subsystem using a "Data store" block.
You can refer to the following documentation link to learn more: https://www.mathworks.com/help/simulink/ug/data-store-basics.html.
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by