Create Bus Element Ports from Bus Creator with a Bus Object

5 ビュー (過去 30 日間)
Mark Wörner
Mark Wörner 2021 年 1 月 19 日
回答済み: Jatin 2024 年 8 月 28 日
Hi,
i have loaded a Bus Object in the workspace. Then in Simulink I created a Bus Creater, added several inputs to it and assigned the Bus Object to it.
Not I want to transform the Bus Creator to Bus Element Ports. But it fails with an Error Message.
Is something wrong with the Bus Object?
Armin

回答 (1 件)

Jatin
Jatin 2024 年 8 月 28 日
As per my understanding you are trying to transform Simulink.bus object to Simulink Bus elements ports. This is achievable using Bus Creator.
The error you are encountering generally occurs when the parameter “Output Data Type” is set to a non-default value. You can follow the steps mentioned below to set the “Output Data Type” of the Bus Creator:
1. Open the Block Parameters of Bus Creator by double clicking on the bus creator block.
From the dropdown on “Output Data Type” select “Inherit: auto” this will automatically set the output bus element ports name and type.
2. You can also choose “Bus <object name>” from the dropdown and replace the <object name> with the name of the object.
You can also check the options such as “require names of inputs to match names above” for custom checks.
Kindly refer to the below documentation to learn more about the Bus creator :

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by