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

6 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 1 Feb 2019
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.

Più risposte (0)

Categorie

Scopri di più su Event Functions in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Prodotti


Release

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by