Effacer les filtres
Effacer les filtres

Error in port widths or dimensions.

520 vues (au cours des 30 derniers jours)
Leo Sekar
Leo Sekar le 16 Oct 2015
Error in port widths or dimensions. Output port 1 of 'last/Subsystem/powergui/EquivalentModel1/Gates/From2' is a one dimensional vector with 2 elements.
AND
Error in port widths or dimensions. Invalid dimension has been specified for input port 2 of 'last/Subsystem/powergui/EquivalentModel1/Gates/Mux'.
I am using MATLAB 2010a. problem occurred in the switching circuit of invert. Anticipating your answers...
  2 commentaires
Vinay Gurram
Vinay Gurram le 27 Déc 2022
Hello Sir,
Can you please let us know how to solve the error what you face with POWER GUI block? It would be a great help.
Atsafack Blondelle Melina
Atsafack Blondelle Melina le 12 Avr 2023
Hello everyone!
Please, can someone help to solve this widths ou dimension error?

Connectez-vous pour commenter.

Réponse acceptée

Dennie
Dennie le 16 Oct 2015
Hello Leo,
It is difficult to see from the pictures, but it looks like you have predefined the sizes of your signals. The dimensions of the signals going into the mux is not matching with what Simulink is expecting from the output. You can check this by double clicking on the problematic blocks and see which rule Simulink uses to determine the size and type of the signal.
To me it looks like the state space block is expecting a signal of the size 10x1, and the signal given to the mux is larger than that.
Kind regards,
Dennie
  5 commentaires
sandesh khadka
sandesh khadka le 1 Déc 2020
can you suggest me hall decoder for bldc motor
sandesh khadka
sandesh khadka le 9 Déc 2020
i have tried that option also. i can't get answer

Connectez-vous pour commenter.

Plus de réponses (3)

Joel Van Sickel
Joel Van Sickel le 10 Juin 2024
It seems like question is getting a lot of activity, so I'll post another answer here. The issue with this type of port width issue has to do with using specialized power systems. Under the hood, ALL of the simulink signals going into your circuit go into a single simulink s -funciton. So this means all gate signals, any signals to controlled sources, any voltages torques, speeds, etc, going into machines. If you get this error, it means that your simulink model is putting the incorect size signal into the model. For instance, the model at the very top is having vectorized signals go into the gate port of a switch. The gate port of a switch only takes 1 signal. However, some other prebuilt converters might take additional signals. Unfortunately, the way specialized power systems works can make tracking this down a bit harder, and you need to pay close attention to the input sizes of all the ports. If you want to avoid this problem, you can use simscape (the blue components) and you won't have the issue, or if you do, it will point more specifically to where the problem is.

sandesh khadka
sandesh khadka le 1 Déc 2020
Invalid setting for input port dimensions of 'BLDC/DECODER/Demux1'. The dimensions are being set to [-1]. This is not valid because the total number of input and output elements are not the same
  9 commentaires
Muhammad Kamran Mustafa
Muhammad Kamran Mustafa le 14 Juin 2023
Déplacé(e) : DGM le 2 Déc 2023
how to solve this error ?
Urveshkumar Dharmendrabhai
Déplacé(e) : DGM le 2 Déc 2023
I am also facing the same problem..kindly let me know if anybody of you have got the solution

Connectez-vous pour commenter.


Haftamu Lemlem
Haftamu Lemlem le 2 Déc 2023
Modifié(e) : Haftamu Lemlem le 2 Déc 2023
i know how irritating this error could be. i also encountered the same error just yesterday and i am giving this incase someone found it helpful. i was running a delta connected CHB STATCOM and got this error repeatedly. i looked for some solutions including this very page. it might be helpful for some people but it wasnt very helpful for me. this error maybe caused because of many reasons and mine was because of the a PWM generator. i used three level PWM generator after the inverse park transformation to help me generate signals for the IGBT switches. but it turns out that the PWM generator generates 12 pulses for each phase which i connected using one line. That was the mistake and it was solved as soon as i removed the PWM from the model. so there is different reasons for this error. so just focus on your model and put each and every part carefully and reasonably.
Cheers!
Haftamu!
  2 commentaires
Nihal Shaji
Nihal Shaji le 20 Mar 2024
I am doing something very similar involving Field Oriented Control of a PMSM, and the connections of the FOC is giving me the same error. I used a normal PWM instead of a two level but it still didn't solve itself. Did you try anything else?
laiche zeghdi
laiche zeghdi le 24 Mar 2024
i also have same problem but i got this :''Error in port widths or dimensions. Output port 1 of 'Stat_Chikh_2_trois_niv/powergui/EquivalentModel1/Gates/From27' is a [1x2] matrix.''
and this :''Error in port widths or dimensions. Invalid dimension has been specified for input port 27 of 'Stat_Chikh_2_trois_niv/powergui/EquivalentModel1/Gates/Mux'.''
help me

Connectez-vous pour commenter.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by