How does the InputBuffer get filled

4 views (last 30 days)
Christian
Christian on 10 Apr 2014
Hi everyone!
i have a problem with reading the sensor-data from my inertial measurement unit (razor 9 DOF IMU). The sensor sends data with a frequency of 50 Hz. I made a bluetooth connection and opened a virtual serial connection (correct baud-rate) in Matlab.
My problem is that the input data (3D angles and acceleration) I receive via matlab is very slow. So if I move the sensor, it lasts at least 30 seconds till Matlab shows me this information. I thought the data might says too long in the InputBuffer or something?
If I open a serial monitor (Arduino Software) an check the data, the movement immediately shows up.
How does the InputBuffer gets filled? If the Buffer is full, does it get overwritten or do I have to read data first before it can input new data from the serial connection?
I hope you can help me. I´m a very beginner at this topic. Please excuse my english, too. I´m from germany ;).
If you need any additional code i wrote, please reply. I didn´t want to flood the whole post.
Sincerely
Chris

Answers (0)

Community Treasure Hunt

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

Start Hunting!