"S-Function does not exist" but is clearly in the Matlab path!
Mostra commenti meno recenti
Hello,
I am working with a huge simulink model that uses a lot of custom library blocks and S-functions.
But 3 of them dont work, the error is just: "Error in S-function 'modelname/subsystem/block': S-Function 'sfun_name' does not exist"
But I have a folder in my model library with the files name.cpp, name.h, sfun_name.cpp and also the simulink model of the library block.
This folder is definetely added to the path, I checked with the path command
It used to work but now simulink says these S-functions do not exist, but they do.
I tried to replace the blocks from the library but it did not help.
Does anyone have an idea about this? Or what else would I need to provide? (I am not allowed to upload any files from the model)
Thank you!
2 Commenti
Paresh yeole
il 3 Feb 2021
Also add the mex file of the sfun to the path
Sergio
il 12 Dic 2024
check if running matlab as an administrator (right click on the icon and run as an administrator) solves the problem. It worked for me
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Naming Conventions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!