Borrar filtros
Borrar filtros

underspecified signal dimension from simulink model

15 visualizaciones (últimos 30 días)
wilson tan
wilson tan el 16 de En. de 2019
Editada: Joe Jones el 26 de Jul. de 2022
Hi ,
i got this error code while trying to run the simulink model
Simulation
1
Clear
04:34 PM Elapsed: 0.365 sec
Compilation of model 'lab' failed while trying to resolve underspecified signal dimensions.
Suggested Actions
Enable 'warning' or 'error' diagnostics for the list of underspecified signal dimensions.Open
Caused by:
  • Error in default port dimensions function of S-function 'lab/Subsystem/MATLAB Function1'. This function does not fully set the dimensions of output port 2
Component:Simulink | Category:Block diagram error
the code for the fucntion 1 is as follows :
function [lam1 , lam2p]= magnetic (i1, i2p)
La=1/((1/Lm1)+(1/Ll1)+(1/Ll2p));
lamm=La+((lam1/Ll1)+ (lam2p/Ll2p));
i1 = (1/Ll1)*(lam1-lamm);
i2p = (1/lam2p) * (lam2p-lamm);
Lm1, Ll1, Ll1m Ll2p, lam1, lam2p are part of a previous user define function.
  1 comentario
Joe Jones
Joe Jones el 26 de Jul. de 2022
Editada: Joe Jones el 26 de Jul. de 2022
Dear
Have you solved this problem? I also have the same problem recently. If possible, please help me. Thank you!

Iniciar sesión para comentar.

Respuestas (1)

Daro VAN
Daro VAN el 15 de Jun. de 2019
Hi!
Have you solved the problem? I have the same problem. I put the IC block before the function, the simulation doesnt show any error,but the divergence happened in my case. Maybe you can try to do so. Kindly Let's me know if you have found different approach.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by