フィルターのクリア

Serial port time stamping question.

7 ビュー (過去 30 日間)
Adam
Adam 2011 年 7 月 7 日
回答済み: Leonard Classen 2019 年 3 月 27 日
It's been a while since I've worked with MATLAB, so bear with me.
A few timing questions:
1.) What is the best way to timestamp data coming in on a serial port?
2.) What does MATLAB use to timestamp the data? Does using NTP make a difference?
Thank you for the help!
-Adam

採用された回答

Adam
Adam 2011 年 8 月 9 日
Ended up timestamping with a NIDAQ box for high accuracy. MATLAB's not "real-time" enough.
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 8 月 9 日
I agree, that is the only feasible solution for reasonable accuracy.

サインインしてコメントする。

その他の回答 (3 件)

Hydro9 Hisz
Hydro9 Hisz 2011 年 7 月 7 日
t=now; %serial time
  1 件のコメント
Adam
Adam 2011 年 7 月 7 日
That is time in a "serial" format. Does not answer my two questions. Where is "now" being pulled from?

サインインしてコメントする。


Hydro9 Hisz
Hydro9 Hisz 2011 年 7 月 7 日
the now function or clock function is pulled from the system clock. If you want elapsed time between measurements without influence from the system try using the tic/toc functions with each iteration

Leonard Classen
Leonard Classen 2019 年 3 月 27 日
Hi,
which NIDAQ box did you use?
best regards

カテゴリ

Help Center および File ExchangeClocks and Timers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by