Rectifying port width error

조회 수: 2 (최근 30일)
MARIMUTHU CHINNAMAMUNDI
MARIMUTHU CHINNAMAMUNDI 2020년 7월 22일
답변: Joel Van Sickel 2020년 8월 4일
While running SimPower systems project in Matlab 2020, The following error meaasge came.
Error in port widths or dimensions. 'Output Port 1' of 'Grid12072020/powergui/EquivalentModel1/Gates/From12' has 3 elements. This port does not accept the dimensions (or orientation) specified by the output signal.
Component:Simulink | Category:Model error
Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 12' of 'Grid12072020/powergui/EquivalentModel1/Gates/Mux'.
how do i rectiify it ?

채택된 답변

Joel Van Sickel
Joel Van Sickel 2020년 8월 4일
Hello Marimuthu,
simulink wires can carry multiple signals (aka, they can be vectors instead of scalars). This can be controlled with the mux and demux blocks, or the selector block. Your simulation is reporting a mismatch, so you might be using a power systems block that requires more signals than you are passing to it, or you might be passing too many signals. You will to make sure your input lines have the appropriate dimensions for the input ports they are connecting to. The error tells you the specific signal that is causing the problem.
Regards,
Joel

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Electrical Sensors에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by