Error when using (self created) library block in a model
显示 更早的评论
I have created a block in a library.
This block works (correct / expected behavior) when I try it in library directly.
But when I import the block in a model, I got error: parameter callback errors.
The block behavior is to modify its content (remove or add block inside) according to parameter values.
It can works in model if i cut the link to the library, but after I got lot of warning from advisor ...
采纳的回答
更多回答(1 个)
Fangjun Jiang
2024-5-30
编辑:Fangjun Jiang
2024-5-30
0 个投票
Follow this.
If possible, don't do delete_block() and add_block(). Using replace_block() might work.
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!