What does "entitySys.id" do in Simevent Blocks?

2 vues (au cours des 30 derniers jours)
Chi Wai Wong
Chi Wai Wong le 22 Juin 2022
Hi,
What does "entitySys.id" do in Simevent Blocks?
I tried it by creating an attribute named "entity.eid" in an entity generator and input "entity.eid=entitySys.id" for event action "Generate" and ran the simulation for 1000 seconds with "Period"=1.
It gave me 1001 records in Diagnostic Viewer.
Am I correct to say "entitySys.id" is the sequencer number of the entities that generated from the entity generator?
Thank you

Réponse acceptée

Abdolkarim Mohammadi
Abdolkarim Mohammadi le 25 Juin 2022
Yes, that's it. It is the index for all of the entities generated within the model. They are useful when you are using SimEvents debugger, and you want to track a specific entity throughout the storages.

Plus de réponses (0)

Catégories

En savoir plus sur Discrete-Event Simulation dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by