How to replace a Constant block with a From Workspace block programatically?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Peter Babu
el 13 de Nov. de 2013
Comentada: Peter Babu
el 13 de Nov. de 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 comentarios
Respuesta aceptada
The Matlab Spot
el 13 de Nov. de 2013
Editada: The Matlab Spot
el 13 de Nov. de 2013
Try this... e.g. Model is open, block is named as 'Constant'...
replace_block(bdroot,'Name','Constant', 'built-in/FromWorkspace')
Más respuestas (0)
Ver también
Categorías
Más información sobre Schedule Model Components en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!