how to assign the service time value of the entity server to the entity attribute?
3 次查看(过去 30 天)
显示 更早的评论
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!