Rectifying port width error

2 vues (au cours des 30 derniers jours)
MARIMUTHU CHINNAMAMUNDI
MARIMUTHU CHINNAMAMUNDI le 22 Juil 2020
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 ?

Réponse acceptée

Joel Van Sickel
Joel Van Sickel le 4 Août 2020
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

Plus de réponses (0)

Catégories

En savoir plus sur Electrical Sensors dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by