Accesing Data on Serial Port.

I need to read data arriving on the Serial Port (RAW data no Protocol) and pack them into a particular format (Data Structure) for internal Processing.
I want to know, is there a way that i can trigger the Data Processing on a serial Data receive in Simulink?

Respuestas (1)

Walter Roberson
Walter Roberson el 21 de Feb. de 2014

0 votos

There is a Serial Receive block.

1 comentario

Arun Kumar
Arun Kumar el 24 de Feb. de 2014
Yes there is a serial receive block, but how can i know about a "Receive event", to read data only when it has been received, during simulation if no data is being sent over the serial port, i would still get either '0' or the last value that i received. I want to avoid this by having the Logic perform only when a byte is received on the port.
PS: I have blocks for specific architectures that allow me to do this but i cant achieve the same on my Host system, a x86 PC.

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 21 de Feb. de 2014

Comentada:

el 24 de Feb. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by