Borrar filtros
Borrar filtros

Reading UART - Matlab as TeraTerm

7 visualizaciones (últimos 30 días)
Alexandre Lara
Alexandre Lara el 18 de Mayo de 2016
Respondida: Walter Roberson el 1 de Feb. de 2018
Hello everybody,
I'm new here and I'm trying to figure out how to deal with a simple project that I made, what consists in acquire data from a microphone using an evaluation board (TIVA TM4C1294XL from Texas Instruments) and show this using UART. I'm currently using TeraTerm to see the data coming through the device, However, I'd like to know if I can use MATLAB as a "TeraTerm", what I mean, store data in Matlab directly from UART so then I could process it (generate graphs and other stuff)
Thank you!

Respuestas (2)

Yekaterina Gilbo
Yekaterina Gilbo el 1 de Feb. de 2018
I have this question too :)

Walter Roberson
Walter Roberson el 1 de Feb. de 2018
Create a serial object. Configure its properties. fopen() it.
Appropriate properties for this situation would be to set BytesAvailableFncMode to bytes, BytesAvailableFcnCount to 1, Baud as appropriate, Terminator to '' (empty), and BytesAvailableFcn to the handle of a callback function to act upon each received byte. You might also need to configure InputBufferSize

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by