Simulink Error Message Inquiry
5 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Yukthi S
on 3 Oct 2024
Hi @DJ V
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.
0 Comments
See Also
Categories
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!