How to constantly receive data from serial port without using fread all the time?

Hi! I'm currently using Matlab to receive data via serial communication. Is there a way to constantly receive my data without the need of using the function fread all the time?

 Accepted Answer

Well, no, not really...that's what fread does is to handle the incoming serial port for binary data.
What you're probably looking for is Events and Callbacks section under the Serial Port objects doc for techniques to get out of a polling mode to instead handle events.

More Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Asked:

on 1 Oct 2014

Edited:

dpb
on 1 Oct 2014

Community Treasure Hunt

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

Start Hunting!