Facing resource Acquirer, how to set serveral resources to acquire

4 ビュー (過去 30 日間)
season
season 2025 年 7 月 23 日
コメント済み: season 2025 年 7 月 24 日
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.

採用された回答

Laurent Royer
Laurent Royer 2025 年 7 月 23 日
Try
set_param(acquirerPath, "ResourceName", "Crane|Station", "ResourceAmountSource", "Dialog|Dialog", "ResourceAmount", "2|1");

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

製品


リリース

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by