필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Edoardo Serri
Edoardo Serri 2018년 9월 26일
답변: Markus Wiebe 2018년 11월 13일
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
Gayatri Menon
Gayatri Menon 2018년 10월 8일
You could write a MATLAB code to parse the sentence and include it in Simulink using a MATLAB function block or System block.

댓글을 달려면 로그인하십시오.

답변 (1개)

Markus Wiebe
Markus Wiebe 2018년 11월 13일
Hi Edoardo,
did you find a solution? I am facing the exact same problem.

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by