Error in port widths or dimensions.

825 views (last 30 days)
Leo Sekar
Leo Sekar on 16 Oct 2015
Commented: laiche zeghdi on 24 Mar 2024 at 9:26
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 Comments
Vinay Gurram
Vinay Gurram on 27 Dec 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 on 12 Apr 2023
Hello everyone!
Please, can someone help to solve this widths ou dimension error?

Sign in to comment.

Accepted Answer

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

Sign in to comment.

More Answers (2)

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

Sign in to comment.


Haftamu Lemlem
Haftamu Lemlem on 2 Dec 2023
Edited: Haftamu Lemlem on 2 Dec 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 Comments
Nihal Shaji
Nihal Shaji on 20 Mar 2024 at 18:47
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 on 24 Mar 2024 at 9:26
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

Sign in to comment.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!