How to record the time at specific point in SimEvents R2014a (4.3.2)?

1 Ansicht (letzte 30 Tage)
I want to record the time at specific point in SimEvents R2014a. My model may be complicated and the points to record time may not be in the same Entity. How to achieve this usage?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 16 Jun. 2014
You could achieve this by having a server block output the number of entities departed (#d) and log that signal then just look at the Values.Time variable for that signal to see when the event (in this case entity goes through the server) occurs. With the attached example RecordTime_Sample_TS.slx,  execute the following code to save the signals to variables after running.
 
departed = get(logsout,'departed');
startTime = get(logsout,'startTime');
departed.Values.Time
startTime.Values.Time
startTime.Values.Data
 

Weitere Antworten (0)

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte


Version

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by