A new block named 'modelName/blockName' cannot be added.
Show older comments
Hello,
I am using Matlab 7.10.0.499 (R2010a) and have a strange bug.
When I launch my program, I got an error "A new block named 'modelName/blockName' cannot be added." When I comment out the line "add_block('blockPath', 'modelName/blockName' ), the program works. More strangely, if I write the same line in console the block is added to the model with no error.
Anyone has any idea why it does not work? Is there any concurrency issues or something like that?
Regards
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Functions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!