ERROR IN PORT WIDTHS OR DIMENSIONS: output port 1 of a Simulink Function is a one dimensionale vector with 1 elements
조회 수: 60 (최근 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?
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!