Azzera filtri
Azzera filtri

Port width/dimension error connected to a demux

5 visualizzazioni (ultimi 30 giorni)
Sarah MacDonald
Sarah MacDonald il 16 Mar 2024
Commentato: Dhruv il 22 Mar 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.

Risposte (1)

Dhruv
Dhruv il 20 Mar 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 Commenti
Sarah MacDonald
Sarah MacDonald il 20 Mar 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 il 22 Mar 2024
Could you please send your model file?

Accedi per commentare.

Categorie

Scopri di più su Large-Scale Modeling in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by