For uninterrupted real-time sensor data reading, do not use other Arduino functions while you are using the
readfunction. Calling other functions clears the stored data when the
ReadModeproperty is set to
Oldest, and does not return the oldest data stored when you read data.
readis not supported if the
TraceOnparameter of the
arduinoobject is set to
truewhile creating the IMU sensor object. Set
falseto use the
TraceOnis not supported for
In order to ensure latest data is obtained in
Latest, 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.