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 Center および File ExchangeElectrical Sensors についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by