Simulink inport issue while running

3 次查看(过去 30 天)
Dear all,
I have a MATLAB Function imported in the Simulink matlab function block to simulate a nonlinear system.
But I keep getting different bugs, apparently I have resolved them all unless on ebug:
Error loading external input data.
I am attaching the simulink model (.slx) file; I appreciate if sb can give me a hint here to de-bug this simulink model.
Thanks a lot.

回答(1 个)

Prathamesh
Prathamesh 2023-8-25
Hi,
I understand that you are encountering an error message “Error loading external input data.” while running the Simulink model.
I see in the model the system is the top-level system and is not part of any subsystem. But you have given input to the system with the help of “inport” block.
The “inport” block links a signal from the outside/external system into current system. Since in the model there is no external system, you are encountering this error.
To resolve this problem, you can create an external system and then link that signal to your system, or you can try to give input directly from workspace or with the use of other blocks.
To know more about the “inport” blocks refer the documentation attached below.

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by