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.