How do I use symulink to receive a serial mesage from a Ublox-6 gps?

조회 수: 5 (최근 30일)
Constantin
Constantin 2013년 5월 8일
I need to get the information about translation and velocity from a message sent by Ubx-6 gps (NAV-SOL),the message in divided in 17 data types of information.i dont know how to get the information i need using simulink.

답변 (1개)

Valmir Sadiku
Valmir Sadiku 2013년 5월 8일
I have in mind that it will be work with the "Serial Receive"-Block from the Instrument Control Toolbox.
  댓글 수: 2
Constantin
Constantin 2013년 5월 9일
편집: Constantin 2013년 5월 9일
I already use this block,and i get the message fine but the message is divided in 17 data types(1 data may have 4 bytes and another 1). The problem is how to get the information i need (for example the x translation) from the message.If u can help please replay.Thank You!
Valmir Sadiku
Valmir Sadiku 2013년 5월 10일
If you know the size of your data, and of course you have to know it, e.g.: assuming that the x-Translation have a data length of 4 Bytes and the velocity 2 Bytes, than you can specify this in the "Data size"-field of the Serial Receive-Block. I not sure but something like that: [4 2] After that you can build the information based on this data (data type converstaion). I hope this could help you.

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

카테고리

Help CenterFile Exchange에서 Automotive에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by