how to assign the service time value of the entity server to the entity attribute?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mehreen Khan
am 5 Sep. 2021
Beantwortet: Abdolkarim Mohammadi
am 5 Sep. 2021
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 Kommentare
Akzeptierte Antwort
Abdolkarim Mohammadi
am 5 Sep. 2021
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!