Limitations
For uninterrupted real-time sensor data reading, do not use other Arduino® functions while you are using the
read
function. Calling other functions clears the stored data when theReadMode
property is set toOldest
, and does not return the oldest data stored when you read data.The function
read
is not supported if theTraceOn
parameter of thearduino
object is set totrue
while creating the IMU sensor object. SetTraceOn
tofalse
to use theread
function.TraceOn
is not supported forgpsdev
.In order to ensure latest data is obtained in
ReadMode
isLatest
, MATLAB® buffers are flushed if the delay between subsequent read is above a threshold value. For IMU sensors the threshold is 3s and for GPS this is 120s.