Error when using (self created) library block in a model
Afficher commentaires plus anciens
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 ...
Réponse acceptée
Plus de réponses (1)
Fangjun Jiang
le 30 Mai 2024
Modifié(e) : Fangjun Jiang
le 30 Mai 2024
0 votes
Follow this.
If possible, don't do delete_block() and add_block(). Using replace_block() might work.
Catégories
En savoir plus sur Interactive Model Editing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!