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?

Risposte (1)

Walter Roberson
Walter Roberson il 21 Feb 2014

0 voti

There is a Serial Receive block.

1 Commento

Arun Kumar
Arun Kumar il 24 Feb 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.

Accedi per commentare.

Tag

Richiesto:

il 21 Feb 2014

Commentato:

il 24 Feb 2014

Community Treasure Hunt

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

Start Hunting!

Translated by