How to record the time at specific point in SimEvents R2014a (4.3.2)?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2014년 6월 16일
답변: MathWorks Support Team
2014년 6월 16일
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?
채택된 답변
MathWorks Support Team
2014년 6월 16일
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
댓글 수: 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!