How can I find error part in simulink

19 ビュー (過去 30 日間)
Merve Ala
Merve Ala 2023 年 4 月 18 日
コメント済み: Daniel 2023 年 4 月 19 日
I am working on a simulink project and it gives me this error. 'System 'hwmid/Aerodynamic_Data' is missing a block that corresponds with input port 1. Ports must be numbered consecutively starting with 1' I can not find my error, and when ı click on the error it doesn't show disturbed part. what can ı do to see my error?

採用された回答

Daniel
Daniel 2023 年 4 月 19 日
Each Inport in a system or subsystem has a number assigned. The error is telling you that all your inports need to be numbered consecutively, starting at 1. In this case, that verification check fails within the hwmid/Aerodynamic Data subsystem. Simulink can't highlight a specific block because it's looking for a block that doesn't exist: an Inport with its "Port number" parameter set to 1. To fix the error, find your inports and set the port numbers consecutively. You can find the inports to a subsystem or model by going to the Modeling tab, selecting the Model Data Editor, and looking at the Inports/Outports pane.
  2 件のコメント
Merve Ala
Merve Ala 2023 年 4 月 19 日
So should I look for mostly other input values like port 2 and 3 , or constant and variable values that depends on port 1?
Daniel
Daniel 2023 年 4 月 19 日
To get the model to compile, you'll need to find all the inports and number them consecutively.
To get it to work properly, you'll need to check how Aerodynamic Data is hooked up to hwmid, and ensure that the right signals make it to the right ports.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by