What does "entitySys.id" do in Simevent Blocks?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Abdolkarim Mohammadi
2022년 6월 25일
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.
댓글 수: 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!