필터 지우기
필터 지우기

Port width/dimension error connected to a demux

조회 수: 5 (최근 30일)
Sarah MacDonald
Sarah MacDonald 2024년 3월 16일
댓글: Dhruv 2024년 3월 22일
There is a port width/dimension error of the demux as it states the number of input and output elements are not the same and the PS-Simulink converter also has an error in port width/dimensions, it's a one dimensional vector with one element. These 2 are shown to be connected in the image. Any advice on how to fix this problem would be appreciated. I'm not sure how to change the port dimensions of these 2 components.

답변 (1개)

Dhruv
Dhruv 2024년 3월 20일
The error concerning port width or dimension is a common issue encountered in Simulink, typically triggered when there is a mismatch in the signal dimensions. This inconsistency arises when the size of the signal element expected by a specific block does not align with the actual size being provided.
The '?' symbol signifies that the dimensions are not consistent. To effectively resolve this issue, it is crucial to look into the details of the error message. The error message will provide insights into both the dimension of the output signal and the dimension expected by the block.
Additionally, you may navigate to ‘Format -> Port/Signal Displays -> Signal Dimensions’ which will display the dimensions of the various signals in your model, further aiding in the identification and correction of the dimension mismatch.
  댓글 수: 2
Sarah MacDonald
Sarah MacDonald 2024년 3월 20일
Thank you, the error is that the dimensions of the demux are set to 1 as the converter is a one dimensional vector with 1 element being the input to the demux. How would I change/fix this specifically?, I'm fairly new to simulink so hadn't come across this error previously.
Dhruv
Dhruv 2024년 3월 22일
Could you please send your model file?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Large-Scale Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by