Serial Object with Callback Function Ignores ASCII values > 127
Mostrar comentarios más antiguos
Hello,
I am using a serial object to communicate with an FPGA. I created a callback function that has its terminator set to '\n\r', or [10 13] in ASCII values. The callback works as expected, up until the time I attempt to send ASCII values that are > 127 from the FPGA to MATLAB, even though the '\n\r' is still present at the end of the packet sent from the FPGA to MATLAB. Is there any reason the serial object would ignore ASCII values > 127 and not call the callback function?
Thanks,
Frank
Respuestas (2)
Jan
el 30 de Sept. de 2012
1 voto
Please post your code. Perhaps your observation is not correct, e.g. if you store the data in an signed integer and convert it to an unsigned later on.
1 comentario
Frank Schmidt
el 30 de Sept. de 2012
per isakson
el 29 de Sept. de 2012
0 votos
- CRLF, i.e [13,10] is used more often
- do you have 8 databits?
3 comentarios
Frank Schmidt
el 29 de Sept. de 2012
per isakson
el 29 de Sept. de 2012
I thought so.
Frank Schmidt
el 30 de Sept. de 2012
Categorías
Más información sobre AXI Manager en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!