How to get the time of a running event?

조회 수: 2 (최근 30일)
Simon
Simon 2015년 8월 26일
댓글: Simon 2015년 9월 4일
I created a daq session to monitor the voltage change, and I need to get the time of the event at some timepoint. I tried listener, but it greatly slows down the system. What I need is the time of the event at the point that an internal trigger starts. Is there anyway I can access the immediate time of the running event?
Thanks

채택된 답변

Varun Bhaskar
Varun Bhaskar 2015년 8월 28일
Hi,
You can use the tic-toc mechanism to start timing when the trigger is issued, and stop at the point where you want to measure the running time. toc - tic will give you the running time.
  댓글 수: 1
Simon
Simon 2015년 9월 4일
It works, thank you so much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by