Port width/dimension error connected to a demux

11 次查看(过去 30 天)
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by