Error related to a absence of specfic module

조회 수: 1 (최근 30일)
Mirko Alessi
Mirko Alessi 2022년 5월 6일
답변: Omega 2023년 11월 16일
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Error due to multiple causes.
  • Impossibile trovare il modulo specificato. (ENG: Impossible find the specification modulo)
  • Error evaluating MATLAB function in '29_04_2022/If Action Subsystem/COMPRESSORE'
Hi everyone! The error that you can see in description, is related to a matlab script that is in the path. I also tried to change script name to update the simulink model, but it didin't work.
Can you help me to solve the problem.
Thanks!
Have a nice day.

답변 (1개)

Omega
Omega 2023년 11월 16일
Hi Mirko,
The error message suggests that the specified module or function is not found. To resolve this issue, you can try the following steps:
  • Check the MATLAB script or function referenced in the Simulink model. Make sure the script or function is present in the specified location and has the correct name.
  • Verify that the MATLAB script or function is on the MATLAB search path. You can use the "path" command in MATLAB to view and modify the search path. Ensure that the directory containing the script or function is included in the search path.
  • If the MATLAB script or function is located in a different folder, you can add the folder to the MATLAB search path using the "addpath" command. For example, if the script is located in the folder "C:\Scripts", you can add it to the search path using addpath('C:\Scripts').
  • If the script or function is part of a toolbox or external library, make sure the toolbox or library is properly installed and accessible to MATLAB.
The second error message indicates that there is an issue with the MATLAB function block named "COMPRESSORE" within the Simulink model, specifically within the subsystem named "If Action Subsystem".
To troubleshoot this error, you can follow these steps:
  • Open the Simulink model and locate the "If Action Subsystem" block and identify the MATLAB function block named "COMPRESSORE".
  • Double-check the MATLAB code within the "COMPRESSORE" block for any syntax errors or issues. Ensure that all variables and functions used within the code are defined and accessible.
  • Check if any inputs or parameters required by the "COMPRESSORE" MATLAB function block are properly connected within the Simulink model and have the correct dimensions and data types.
  • If the MATLAB code within the "COMPRESSORE" block uses any external functions or scripts, verify that those functions or scripts are accessible and correctly referenced within the MATLAB search path.
If none of the above steps resolve the issue, please provide more details about the specific MATLAB script, Simulink model, and any additional error messages or warnings you encounter. This will help in further troubleshooting the problem.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by