Synchronizing MATLAB with the Serial Port
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi All,
I am reading the data in the serial port using MATLAB, I was able to indicate the end of reading point using the terminator LF, but still I have a problem with the start-reading point because MATLAB isn't synchronized with my microprocessor, this result in reading the data from the middle or any other point but rarely from the beginning.
Any idea how to solve this problem?
Thanks in advance
0 comentarios
Respuestas (1)
Walter Roberson
el 30 de Oct. de 2013
Have you using an application protocol with the device you are communicating with, so that the MATLAB session has to request that data be sent?
Is there any reason not to read until the first LF, discard, and then start reading and keeping data?
0 comentarios
Ver también
Categorías
Más información sobre Data Acquisition Toolbox Supported Hardware 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!