A bus data type should be specified for the block 'xxxx/Out' since a bus is entering its input port. This message is related to a hidden Outport block

61 ビュー (過去 30 日間)
Solomon
Solomon 2024 年 2 月 1 日
コメント済み: Matthew 2024 年 11 月 12 日 14:02
I have a Simulink model that have hundreds of output signals in a bus and output into a port. The simulink model runs without error, however the test harness throws error that says "A bus data type should be specified for the block 'xxxx/Out' since a bus is entering its input port. This message is related to a hidden Outport block". I am new to Simulink any help would be appreciated.
  1 件のコメント
Filupix
Filupix 2024 年 2 月 9 日
I have the same question. Why can't Simulink resolve this datatype automatically?

サインインしてコメントする。

回答 (1 件)

Sachin Lodhi
Sachin Lodhi 2024 年 2 月 12 日
The issue is related to the data type settings for the output port of a block within your model. In Simulink, when a bus signal is routed through a model, each block that outputs a bus signal must have its data type explicitly defined to match the structure and type of the bus. This includes not only Bus Creator blocks but also any other blocks that output bus signals, such as subsystems or custom blocks.
By specifying the bus object as the data type for the output ports that are issuing bus signals, you can resolve the type mismatch errors that Simulink reports.
  1 件のコメント
Matthew
Matthew 2024 年 11 月 12 日 14:02
I am having the same issue, but once I rename the bus, I am having the data type flag up saying that I am missing variables?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by