Azzera filtri
Azzera filtri

Simulink inport issue while running

3 visualizzazioni (ultimi 30 giorni)
Alireza Babaei
Alireza Babaei il 11 Ago 2023
Risposto: Prathamesh il 25 Ago 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.

Risposte (1)

Prathamesh
Prathamesh il 25 Ago 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.

Categorie

Scopri di più su Schedule Model Components in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by