What is a SubrefProxy block?

조회 수: 97 (최근 30일)
Yuri Orlov
Yuri Orlov 2017년 7월 27일
댓글: Tilman 2023년 5월 24일
Hi,
Simulink is providing very strange error message: "Invalid output port data type. Data type of output port 11 of 'MyModel/MyModelRef/MyModelRef_In2_SelectorProxy' is invalid. This error message is indirectly related to a hidden SubrefProxy block. Consider manually inserting such a block to debug the problem."
What is a SubrefProxy block? Where to find it?

답변 (1개)

Wilson A N
Wilson A N 2017년 7월 31일
I think these error messages usually appear when the signals being fed to the bus creator block do not have their data types configured correctly.
To see the real error, try commenting out the model reference block in the harness model (and the bus selector block downstream from this model block) and then simulate the model.
For example, the signals feeding into the bus creator may be all doubles but the bus object expects {boolean, boolean, boolean, uint32}. Correcting this may help in resolving the issue.
As this error only happens when an incorrect bus signal is fed to a model reference block, commenting out the model reference block can help narrow down the real error.
  댓글 수: 1
Tilman
Tilman 2023년 5월 24일
I also had this issue. I tried to debug it as described above: by commenting out the bus creator blocks.
In the end I found the bus creator causing the problem and I recreated it from scratch, which solved the problem.
Also if you have this problem, check that the signal order going into the bus creator is the same as the order of the bus object you defined in matlab. This might also cause this problem.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by