필터 지우기
필터 지우기

How to Trigger based on a incoming data value?

조회 수: 2 (최근 30일)
Rohan
Rohan 2012년 3월 16일
hello, I am aquiring a serial data from a sensor via xpc target. The sensor sends data in a continuous mode. I want to seperate the data byte from the packet of data. For that I want to trigger the data on the basis of a header byte say(0xC2).So that i can know where the packet starts. Can you suggest a way to do this
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 3월 16일
Is it certain that 0xC2 can never be part of the data stream, and can never occur as a checksum byte?

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

채택된 답변

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy 2012년 3월 20일
Please take a look at the white paper "xPC Target Serial Communication" available here http://www.mathworks.com/tagteam/68353_xPCTargetSerialCommunication.zip

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by