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?

채택된 답변

Abdolkarim Mohammadi
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개)

카테고리

Help CenterFile Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by