Bus Creator hierarchy conflicting with Bus Objects

89 次查看(过去 30 天)
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 个评论
ayushi
ayushi 2021-7-15
Could you resolve this problem? I am facing the ssame issue in my model. Please sshare if done. Thank you.

请先登录,再进行评论。

回答(1 个)

Pramil
Pramil 2024-9-18
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.

类别

Help CenterFile Exchange 中查找有关 Block and Blockset Authoring 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by