how to assign the service time value of the entity server to the entity attribute?
2 ビュー (過去 30 日間)
古いコメントを表示
Mehreen Khan
2021 年 9 月 5 日
回答済み: Abdolkarim Mohammadi
2021 年 9 月 5 日
I am using a sevice time source as a signalport with random source attached to it.
how to store this service time value of the entity server to the entity attribute?
0 件のコメント
採用された回答
Abdolkarim Mohammadi
2021 年 9 月 5 日
You can create a Simulink function, whose input port is connected to the output of the random number source. Then in the generation event action of the Entity generator block, you get the random number generated by calling the Simulink function. For example:
entity.ServiceTime = GetRandomServiceTime ();
0 件のコメント
その他の回答 (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!