Skip to main content
Visitor II
May 16, 2022
Question

I fail to get LSM6DSL data continuously

  • May 16, 2022
  • 2 replies
  • 798 views

Hello,

I like to read data from the LSM6DSL continuously. But I am not able to choose the correct settings for the FIFO register. 

If I set it to

"Continuous mode. If the FIFO is full, the new sample overwrites the older one"

It will stop after a few seconds and the available data is 0.

Do I always need to reset the mode of FIFO? Doesn't that mean that some data will be lost?

Thanks for your help :)

    This topic has been closed for replies.

    2 replies

    DNuen.2Author
    Visitor II
    May 16, 2022
    DNuen.2Author
    Visitor II
    May 17, 2022

    Alright, I have it almost running. (only reading data)

    I check the register how many data are available and use that value to pull new data.

    But after a few minutes the FIFO is full, even if I pull all available data.

    Another question to it: If I pull data, will it always be a full set of x,y and z data? or could it be only x and y at the end of the data I pulled? In other words. Will the FIFO always be filled with x,y and z data at once?

    thx