Error in port widths or dimensions.

825 visualizzazioni (ultimi 30 giorni)
Leo Sekar
Leo Sekar il 16 Ott 2015
Commentato: laiche zeghdi il 24 Mar 2024
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 Commenti
Vinay Gurram
Vinay Gurram il 27 Dic 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 il 12 Apr 2023
Hello everyone!
Please, can someone help to solve this widths ou dimension error?

Accedi per commentare.

Risposta accettata

Dennie
Dennie il 16 Ott 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 Commenti
sandesh khadka
sandesh khadka il 1 Dic 2020
can you suggest me hall decoder for bldc motor
sandesh khadka
sandesh khadka il 9 Dic 2020
i have tried that option also. i can't get answer

Accedi per commentare.

Più risposte (2)

sandesh khadka
sandesh khadka il 1 Dic 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 Commenti
Muhammad Kamran Mustafa
Muhammad Kamran Mustafa il 14 Giu 2023
Spostato: DGM il 2 Dic 2023
how to solve this error ?
Urveshkumar Dharmendrabhai
Spostato: DGM il 2 Dic 2023
I am also facing the same problem..kindly let me know if anybody of you have got the solution

Accedi per commentare.


Haftamu Lemlem
Haftamu Lemlem il 2 Dic 2023
Modificato: Haftamu Lemlem il 2 Dic 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 Commenti
Nihal Shaji
Nihal Shaji il 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 il 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

Accedi per commentare.

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by