フィルターのクリア

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 Center および File ExchangeRaspberry Pi Hardware についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by