I open a blank Simulink model and put the S-function Builder block in the diagram. I then used this S-function Builder block to construct and compile the S-function.
Then in my main model I used the regular S-function block with the DLL obtained from the S-function Builder block. I can run my main model in normal mode, but when I try to run it in accelerated mode, I get the following error:
Error using ==> accelbuild_private Error using ==> slbuild Error using ==> RTW.makertw.make_rtw Error using ==> rtw_c Error(s) encountered while building model "name of the model"
Best Answer