Filter löschen
Filter löschen

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

38 Ansichten (letzte 30 Tage)
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?

Antworten (1)

Vinayak
Vinayak am 17 Nov. 2022
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.

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by