Facing resource Acquirer, how to set serveral resources to acquire
4 次查看(过去 30 天)
显示 更早的评论
When using .m generate the block--resource Acquirer, I need set serveral resources to acquire. I use
set_param(acquirerPath, 'ResourceName', 'Crane','Resourceamount', '2');
but it only receives one resoure. If in next line I use
set_param(acquirerPath, 'ResourceName', 'Station','Resourceamount', '1');
it will replace the previous line.
0 个评论
采纳的回答
Laurent Royer
2025-7-23
Try
set_param(acquirerPath, "ResourceName", "Crane|Station", "ResourceAmountSource", "Dialog|Dialog", "ResourceAmount", "2|1");
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!