Why do I receive the error "There is no block named..." when adding a MATLAB file (level-2) S-Function to a SIMULINK model using the function ADD_BLOCK?
Show older comments
I receive the following error when adding a MATLAB file (level-2) S-Function to a SIMULINK model using the function ADD_BLOCK:
ERROR: ??? Error using ==> add_block
There is no block named 'simulink/User-Defined Functions/MATLAB file (level-2) S-Function'.
To reproduce this error, you can use the following code:
new_system('mySystem')
open_system('mySystem')
add_block('simulink/User-Defined Functions/MATLAB file (level-2) S-Function', 'mySystem/mySFunction')
Accepted Answer
More Answers (0)
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!