teensy and simulink through serial port
Show older comments
Hi, I am trying to read the data sent by a teensy module through serial port, in Simulink for further data analysis. the signal should look like a sinusoidal wave(in this case not generally), but what appears to me and also obvious in the attached picture, every 5 6 second i get a copy of all data of last 5 6 second within 1 or half a second, which makes the data useless.

I captured the data directly with help of a processing code and the send data are ok.
I am using "stream input" from Realtime Desktop toolbox to read data from serial port. My guess is that the buffer simulink uses become full and spit out all buffer at once in the input signal.
My question is What am I doing wrong here? How can I get rid of this phenomen ? Is there a buffer setting somewhere that I can change/adjust or every stepp should empty to have buffer always on the safe side ?
Please let me know if you ever experienced this, also any tip or hint would be greatly appreciated!. bests, Kaveh
1 Comment
Kaveh Allahdin
on 16 Apr 2018
Edited: Kaveh Allahdin
on 22 Apr 2018
Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!