フィルターのクリア

Serial Data via COM-Port to Simulink

1 回表示 (過去 30 日間)
Markus Wiebe
Markus Wiebe 2018 年 11 月 12 日
編集済み: Walter Roberson 2018 年 11 月 15 日
Hi, I want to import serial data via COM-Port (NMEA data from GPS receiver) to simulink and work with the data in real time.
I tried that with the "Query Instrument"-Block but the Problem is, that every line of the NMEA data starts with, for example: $GPRMC... and i did not found out how I can work with non-numeric data.
Any ideas how to insert serial data to simulink and get the values of a particular line from the data? Thanks in advance.

採用された回答

Walter Roberson
Walter Roberson 2018 年 11 月 15 日
編集済み: Walter Roberson 2018 年 11 月 15 日
Read the data as bytes . If you need to compare within a Simulink block then compare to the ascii position number for each character . 65 for A, 66 for B and so on. $ is 36

その他の回答 (1 件)

カテゴリ

Help Center および File ExchangeSimulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by