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?

Réponses (1)

Walter Roberson
Walter Roberson le 21 Fév 2014

0 votes

There is a Serial Receive block.

1 commentaire

Arun Kumar
Arun Kumar le 24 Fév 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.

Connectez-vous pour commenter.

Tags

Question posée :

le 21 Fév 2014

Commenté :

le 24 Fév 2014

Community Treasure Hunt

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

Start Hunting!

Translated by