Rectifying port width error

2 次查看(过去 30 天)
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