フィルターのクリア

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 Center および File ExchangeLarge-Scale Modeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by