フィルターのクリア

ERROR IN PORT WIDTHS OR DIMENSIONS: output port 1 of a Simulink Function is a one dimensionale vector with 1 elements

86 ビュー (過去 30 日間)
I have a simulink program with Discrete Event Chart where I modeled machine failure. To associate the duration of maintenance I used a simulink function called "maintenance duration" where there is a "Random number" block connected to the outport. And also, to check the time in which maintenance happen I used a Simulink Function called TimeMaintenance where I put the Digital Clock connected to the outport.
However for all the functions that I created to use them in the Discrete Event Chart I keep getting this message error: "ERROR IN PORT WIDTHS OR DIMENSIONS. OUTPUT PORT 1 OF [the simulink function that I'm considering] IS A ONE DIMENSIONALE VECTOR WITH 1 ELEMENT".
How can I solve this issue?

回答 (1 件)

Vinayak
Vinayak 2022 年 11 月 17 日
You receive the following error because the dimensions of the Output does not match what Simulink expects from you.
It is difficult to contemplate the technical intricacies and root cause of the issue in the absence of any project files.
However, it seems to me that the Output of the Discrete Chart does not seem to be in accordance with what simulink expects.
A possible workaround could be to double click each of the signals and get an inherent idea of its respective dimensions.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by