How do I use an Bus Entity parameter as resource acquire amount parameter?

1 回表示 (過去 30 日間)
The Resource Acquirer receives an Bus Entity, and I would like to get the values and use it as a Parameter to the Amount, as shown in the picture. but I get the Following error:
_ "You have configured the 'Project1/Node1/Resource Acquirer' block to require an incoming entity that has an attribute named 'entity.cpu'. However, entities that will arrive at this block will not have such an attribute."_
It is receiving the entity from a Queue. And I'm pretty sure that it is receiving the right object.
Any Ideias on what could be wrong?
Best Regards, Mathias

採用された回答

Mathias Santos de Brito
Mathias Santos de Brito 2016 年 10 月 17 日
Ok! Got the error... must use entity.data.cpu, etc...
  1 件のコメント
Simone Rosa
Simone Rosa 2020 年 1 月 15 日
I tried to do the same and I still got the error. =( any suggestion?

サインインしてコメントする。

その他の回答 (1 件)

Mathias Santos de Brito
Mathias Santos de Brito 2016 年 10 月 12 日
One more thing, if I use entity.cpu in the events dialog... no errors...

カテゴリ

Help Center および File ExchangeResource Allocation Modeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by