Simulink Error Message Inquiry
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Yukthi S
2024 年 10 月 3 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Event Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!