Simulink inport issue while running

2 Ansichten (letzte 30 Tage)
Alireza Babaei
Alireza Babaei am 11 Aug. 2023
Beantwortet: Prathamesh am 25 Aug. 2023
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.

Antworten (1)

Prathamesh
Prathamesh am 25 Aug. 2023
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.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by