Resource acquire block programmatic use
Mostrar comentarios más antiguos
Hello,
I'm building a SimEvents model programmaticaly and I have the following problems regarding the "Resource Acquire", "Resource Release" and "Resource Pool" blocks:
- I am not able to find the using the "add_block" command. An error comes out saying there is no such a block in the library.
- I partially solved the problem by manually creating the blocks in a different model and then programmaticaly pasting them on a new model. The problem is still that I would like to be able to change block paramters directly from code. The parameters that i would like to change are:
- For Resource Acquire block: resource to be acquired and amount.
- For Resource Release block: resource to be released
- For Resource Pool block: resource name and relative amount.
Thanks.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Discrete-Event Simulation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!