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

2 ビュー (過去 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 Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by