Bus Creator hierarchy conflicting with Bus Objects

93 vues (au cours des 30 derniers jours)
Moritz Schrader
Moritz Schrader le 21 Jan 2018
Réponse apportée : Pramil le 18 Sep 2024
Hi, I am trying to create a bus signal as an input for a C s-function (created with the s-function builder). I used the demo "sfbuilder_bususage" as a guideline, as well as the documentation provided in the first reply here.
My bus signal INPUT_BUS has two sub-buses called "ego" and "object". The image below shows the block parameters for the final Bus Creator (the one that creates INPUT_BUS out of object and ego).
And here is the base workspace containing the bus objects (you might need to open the image in a new tab to get the full size):
The bus creators for "object" and "ego" have the assigned output data type Bus: OBJECT_BUS and Bus: EGO_BUS, respectively.
When I run the model I receive the following error:
"Error occurred while propagating bus signal hierarchy to input port 2 of the block 'Model_v0_7/Preconditioning/Bus Creator'. The propagated signal hierarchy is inconsistent with the bus object 'INPUT_BUS' specified on the block. This bus object directly or indirectly has a bus element with data type 'OBJECT_BUS' that does not match the propagated signal hierarchy."
The block in question is the one creating the INPUT_BUS (screenshot above).
I thought I did everything the way it was shown in the demo "sfbuilder_bususage", but I must have missed something essential. I am using 2017b.
Any help is appreciated!
  1 commentaire
ayushi
ayushi le 15 Juil 2021
Could you resolve this problem? I am facing the ssame issue in my model. Please sshare if done. Thank you.

Connectez-vous pour commenter.

Réponses (1)

Pramil
Pramil le 18 Sep 2024
Hi Mortiz,
I have faced a similar issue, and this error occurs when there is a mismatch between the signal order in the “Bus Creator” block and the actual signal connected to the “Bus Creator” block.
As seen in the image below, the “Bus Creator” block defines signals in order “egofollowed byobject”, but the signals connected to it are in order “object” followed by “ego”, resulting in an error.
Now, if we change the order in which the signals are connected to the “Bus Creator” block, it resolves the issue.

Catégories

En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by