MATLAB: Simlink Simevents store event time in entity attribute

SimEventssimulink

I want to record when an entity enters/leaves each queue. I was thinking recording simulation time in entity attribute. Does any one know how to do this? Thanks.

Best Answer

There is a simple example in SimEvents design patterns.
Open SimEvents library, click on [Design Patterns] block (which locates at the bottom of the library), and search for the pattern "Time stamp entities upon generation".
Related Question