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!