simulink serial receive header

조회 수: 2 (최근 30일)
tjh t
tjh t 2016년 5월 11일
댓글: Zemiao Fang 2019년 7월 4일
I'm reading serial data from FPGA (RS232).But I dont know how to define a header properly. Thanks for helping!

답변 (1개)

xie jiaxin
xie jiaxin 2017년 4월 26일
Header Specify data that marks the beginning of your data block. The header indicates the beginning of a new data block and the simulation will disregard data that occurs before the header. The header data is not sent to the output port. Only data that occurs between the header and the terminator is sent to the output port. By default none or no header is specified.
Anything entered in the header is treated as a character. If you want to specify numbers, you need to use the corresponding ascii characters for them. For example, to specify [40 41], you can enter () in the field. Note that single quotes are also treated as characters. You can use the corresponding ascii characters for the numbers between 32 and 126.
  댓글 수: 1
Zemiao Fang
Zemiao Fang 2019년 7월 4일
What if the number not between 32 and 126? For example [20 170]

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

Community Treasure Hunt

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

Start Hunting!

Translated by