How to correct error in port width or dimension in simulink ?
Mostrar comentarios más antiguos
I am getting the following port dimension errors when I try to run my simulink model:
"Invalid setting for input port dimensions of 'CONT_assignment/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"
"Error in port widths or dimensions. Invalid dimension has been specified for output port 1 of 'CONT_assignment/Transfer Fcn'."
Here is an image of the model. It's a simple PID controller model. The controller gain values are specified in a .m file as global parameters.

Does anyone have a solution for this ?
1 comentario
Guy Rouleau
el 20 de Sept. de 2024
See my analysis of this question here: How to correct errors in port width or dimension in Simulink? » Guy on Simulink - MATLAB & Simulink (mathworks.com)
Respuesta aceptada
Más respuestas (2)
Achille Jacquemond
el 16 de Jun. de 2018
0 votos
1 comentario
Amru Al Ghafri
el 22 de Mzo. de 2020
Hi
I have same problwm, how did you managed to sort it out
Guy Rouleau
el 20 de Sept. de 2024
0 votos
See my analysis of this question here: How to correct errors in port width or dimension in Simulink? » Guy on Simulink - MATLAB & Simulink (mathworks.com)
Categorías
Más información sobre Configure and View Diagnostics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!