You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right. I was using the latest released version 0.0.16 in pip. Now I compiled 0.0.17 from source and everything works fine, thanks to your change. Please release 0.0.17 into pip soon.
https://github.com/analogdevicesinc/pyadi-iio/blob/main/adi/rx_tx.py#L206 says
x[i][samp] = (raw + rx_offset[i]) * rx_scale[i]
but for ad7124-8 it should be
x[i][samp] = (raw) * rx_scale[i] + rx_offset[i]
according to https://wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/ad7124
This has resulted in wrong readings in "SI" units (mV) when running ad7124-8 in bipolar mode.
The text was updated successfully, but these errors were encountered: