Filter löschen
Filter löschen

Port width/dimension error connected to a demux

5 Ansichten (letzte 30 Tage)
Sarah MacDonald
Sarah MacDonald am 16 Mär. 2024
Kommentiert: Dhruv am 22 Mär. 2024
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.

Antworten (1)

Dhruv
Dhruv am 20 Mär. 2024
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 Kommentare
Sarah MacDonald
Sarah MacDonald am 20 Mär. 2024
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 am 22 Mär. 2024
Could you please send your model file?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Large-Scale Modeling 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