How to Trigger based on a incoming data value?

2 visualizaciones (últimos 30 días)
Rohan
Rohan el 16 de Mzo. de 2012
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 comentario
Walter Roberson
Walter Roberson el 16 de Mzo. de 2012
Is it certain that 0xC2 can never be part of the data stream, and can never occur as a checksum byte?

Iniciar sesión para comentar.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by