Simulink Error Message Inquiry

5 visualizaciones (últimos 30 días)
DJ V
DJ V el 26 de Sept. de 2024
Respondida: Yukthi S el 3 de Oct. de 2024
I'm not getting error messages relative to a new integration problem that I've mapped into Simulink. Its telling me the following when I run it:
Simulation 8 3
10:54 AM Elapsed: 2 sec
Output port 1 of 'SimIntegrator/Cpsi2' is not connected.
Component:Simulink | Category:Block warning
Output port 1 of 'SimIntegrator/P' is not connected.
Component:Simulink | Category:Block warning
Output port 1 of 'SimIntegrator/Q1' is not connected.
Component:Simulink | Category:Block warning
Output port 1 of 'SimIntegrator/R2' is not connected.
Component:Simulink | Category:Block warning
Output port 1 of 'SimIntegrator/Spsi2' is not connected.
Component:Simulink | Category:Block warning
Output port 1 of 'SimIntegrator/U' is not connected.
Component:Simulink | Category:Block warning
Output port 1 of 'SimIntegrator/V1' is not connected.
Component:Simulink | Category:Block warning
Output port 1 of 'SimIntegrator/W2' is not connected.
Component:Simulink | Category:Block warning
Error evaluating 'StartFcn' callback of MultiPlot Graph block (mask) 'SimIntegrator/Output Graph3'.
Callback string is 'sfun_multiplot([],[],[],'Start')'
Caused by:
There should be a single port of width NU.
Component:Simulink | Category:Block error
Error evaluating 'StartFcn' callback of MultiPlot Graph block (mask) 'SimIntegrator/Output Graph4'.
Callback string is 'sfun_multiplot([],[],[],'Start')'
Caused by:
There should be a single port of width NU.
Component:Simulink | Category:Block error
Error evaluating 'StartFcn' callback of MultiPlot Graph block (mask) 'SimIntegrator/Output Graph5'.
Callback string is 'sfun_multiplot([],[],[],'Start')'
Caused by:
There should be a single port of width NU.
Component:Simulink | Category:Block error
I understand the reason for the warnings, but I don't grasp the basis for the errors. Does anyone else? ("There should be a single port of width NU?") Please respond if you do. Thank you.
I've attached the file.

Respuestas (1)

Yukthi S
Yukthi S el 3 de Oct. de 2024
I've been able to reproduce the error at my side. It seems that the issue might be due to a bug in the callback function code.
I noticed that some constant blocks in the Simulink model had the "Interpret vector parameters as 1-D" option unchecked. After enabling this option for all the Constant blocks, the error was resolved. This might be a possible workaround for the issue.

Categorías

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

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by