How can I adjust Matlab Arduino baud rate connection using Matlab to communicate with I2C?

3 次查看(过去 30 天)
I am using the Arduino Package on Matlab. I am having trouble reading data from FIFO registers due to the data being overflowed in the stack. Matlab is processing my code in seconds but i would like to read from the FIFO registers in ms. Also if you know how i can look at how long it takes for my code to run, please let me know.
E.g iterate = 0;
while iterate <= 50
x = readRegister(MPU9250, register, 'uint8')
MPU(iterate,:) = [x];
end
the code above is running in seconds, how i can speed it up to run in ms.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by