フィルターのクリア

How can I assign the value of a signal to an entity attribute in SimEvents?

1 回表示 (過去 30 日間)
Javier Baliosian
Javier Baliosian 2018 年 11 月 2 日
回答済み: Javier Baliosian 2018 年 12 月 4 日
I was looking arround for a way to assign the value of an arbitrary signal (or the parameter of a simulink function) to the attribute of a new entity in the new SimEvents but I didn't found examples or documentation about it. It was possible in the previous version of SimEvents, but the migration guidelines do not show an example of this. the examples are on random variables that you can create inside the event actions. Can someone give a tip on this? thanks.

採用された回答

Krishna Akella
Krishna Akella 2018 年 12 月 4 日
Hi Javier,
You can write the value of the signal to a 'Simulink Function' block. You can call a simulink function from the event action methods (available in most SimEvents blocks) to access the signal value. You can then assign the signal value to an attribute in the event action.
For example, please see the attached model.
- Krishna

その他の回答 (1 件)

Javier Baliosian
Javier Baliosian 2018 年 12 月 4 日
thanks Krishna.

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by