How to replace a Constant block with a From Workspace block programatically?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Peter Babu
il 13 Nov 2013
Commentato: Peter Babu
il 13 Nov 2013
How to replace a Constant block with a From Workspace block programatically? I have tried with replace_block but shows an error InvalidBlockHandle . If to replace the same constant block with inport its working fine .
0 Commenti
Risposta accettata
The Matlab Spot
il 13 Nov 2013
Modificato: The Matlab Spot
il 13 Nov 2013
Try this... e.g. Model is open, block is named as 'Constant'...
replace_block(bdroot,'Name','Constant', 'built-in/FromWorkspace')
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Interactive Model Editing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!