Prevent execution of a block if link to library is not resolved
Mostrar comentarios más antiguos
I'm trying to protect some custom Simscape blocks (*.ssc) to run if the link to my library is not resolved.
This behaviour can be found with blocks of Simscape Power System library, but I can't find where this protection is implemented. It doesn't seem to be in block callback because you can remove them after breaking the link and the block won't run.
Does anyone have an idea or a lead to implement such a protection properly (forbid to run a block if its library link is not resolved) ?
Respuestas (1)
Aghamarsh Varanasi
el 29 de Dic. de 2020
1 voto
Hi,
To protect the custom Simscape block, you can use the ‘Lock Links’ feature under the Library Tab. This doesnot allow the user to break the link of the block from the Parent Library
1 comentario
Arthur Roué
el 31 de Dic. de 2020
Categorías
Más información sobre Simulink Environment Customization en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
