How can I pass a CAN_MESSAGE object as an input to a Model Reference block in Simulink 7.9 (R2012a)?

조회 수: 6 (최근 30일)
I have a model which is packing a CAN Message and then sending it into a Model Reference block which should do the unpacking. When I try to update this model, I get the following error:
Invalid root Inport block data type. Data type of root Inport block 'MYMODEL/MYBLOCK' in model 'MYMODEL' is 'CAN_MESSAGE'. This data type is not supported for referenced models; data types must be builtin, or fixed-point, or registered from Simulink.DataType or Simulink.Bus objects This error message is related to a hidden Inport block.
If I use a Subsystem instead of a Model Reference block, this model updates fine. Are there any workarounds besides this, so that I can keep the Referenced Model as a separate model for concurrent development?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2019년 2월 1일
The ability to pass CAN_MESSAGE objects into a Model Reference block is not available in Simulink 7.9 (R2012a).
As a workaround, in order to preserve this referencing behavior, the Model Reference block could be converted to a subsystem and then placed into a Block Library. This way, any changes in the library block will also be automatically reflected in any model that is linked to this block.

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by