joan wrote: ↑Sat Aug 17, 2019 4:48 pm
That is samples per second, not bytes per second. So if each sample was 12 bytes (4 bytes each of X, Y, Z) then that would be 20,000 times 12 or 240,000 bytes per second.
The top line is 1 byte per second, the bottom line slower for 5 bytes per second, which implies 12 bytes per second will be even lower samples per second, but perhaps probably still higher than 4K samples per second, so it would seem the answer is (in C at least) that 4K samples with this SPI IMU should be possible.
As to why the OP is only able to see 1K samples per second w/out buffer overrun, deeper analysis would be needed to see the max time in background, and how python unpacking is affecting it. (and if the while len[samples] < msamples is the fastest "end of while" test available.