Borrar filtros
Borrar filtros

How can I parse a NMEA packet real time on Simulink?

2 visualizaciones (últimos 30 días)
Edoardo Serri
Edoardo Serri el 26 de Sept. de 2018
Respondida: Markus Wiebe el 13 de Nov. de 2018
Hi, I read from a serial device ASCII code using the Raspberry Pi serial read block. Now the problem. How can I decode the ASCII to a string then get values I want from it in real-time? The NMEA Packet I have is not from a GPS and it has this structure:
$PCHRP,105.015,-501.234,-501.234,15.521,20.32,20.32,20.32,20.32,*47
Thank you so much
  1 comentario
Gayatri Menon
Gayatri Menon el 8 de Oct. de 2018
You could write a MATLAB code to parse the sentence and include it in Simulink using a MATLAB function block or System block.

Iniciar sesión para comentar.

Respuestas (1)

Markus Wiebe
Markus Wiebe el 13 de Nov. de 2018
Hi Edoardo,
did you find a solution? I am facing the exact same problem.

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by