Serial port time stamping question.
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Adam
el 7 de Jul. de 2011
Respondida: Leonard Classen
el 27 de Mzo. de 2019
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
0 comentarios
Respuesta aceptada
Adam
el 9 de Ag. de 2011
1 comentario
Walter Roberson
el 9 de Ag. de 2011
I agree, that is the only feasible solution for reasonable accuracy.
Más respuestas (3)
Hydro9 Hisz
el 7 de Jul. de 2011
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
0 comentarios
Ver también
Categorías
Más información sobre Clocks and Timers en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!