Post Go back to editing

Libiio buffered measurements are not working with the Max11617 when the device has 12 channels.

Category: Software
Product Number: L
Software Version: 0.21

Hi,

We have a two setups where we're using the MAX11617 device with libiio. With the first setup, we have an 8 channel device and we're able to buffer and read all 8 channels correctly. When we switch to the 12 channel device, using the exact same code, we are unable to read the same 8 channels correctly. What comes back appears to be just garbage. If I only enable one channel, the values in the buffer look to be correct. If I disable the buffer and read each channel, the values look correct in that case as well. 

The strange thing is, the only thing that has changed is the device package. In both cases it's the MAX11617, it's just that in the second case there's 12 channels available rather than just 8.

Thanks,

Rory

Parents
  • I've been reading the buffer by acquiring the address of the first sample and the address of the last sample and then looping through it. I just tried using the 

    iio_channel_read_raw() to do this more easily but I'm finding this function just hangs on the second setup. On the first, it seems to work as expected. 
Reply
  • I've been reading the buffer by acquiring the address of the first sample and the address of the last sample and then looping through it. I just tried using the 

    iio_channel_read_raw() to do this more easily but I'm finding this function just hangs on the second setup. On the first, it seems to work as expected. 
Children
No Data