Simulink Error Message Inquiry

5 次查看(过去 30 天)
DJ V
DJ V 2024-9-26
回答: Yukthi S 2024-10-3
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.

回答(1 个)

Yukthi S
Yukthi S 2024-10-3
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.

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by