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?

답변 (1개)

Walter Roberson
Walter Roberson 2014년 2월 21일

0 개 추천

There is a Serial Receive block.

댓글 수: 1

Arun Kumar
Arun Kumar 2014년 2월 24일
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.

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

카테고리

태그

질문:

2014년 2월 21일

댓글:

2014년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by