AnsweredAssumed Answered

AD9371 gain_table_config

Question asked by efficiency on Feb 12, 2018
Latest reply on Feb 13, 2018 by efficiency

Hello,

 

I am trying to load a custom gain table using the iio driver.  I saved the demo gain table (linux/ad9371_std_gaintable at master · analogdevicesinc/linux · GitHub ) to my ZC706 eval SD card.  When the ZC706 boots up, I am able to query and set the hardware gain.  When I try to load the downloaded gain table, I can no longer query and set the gains.

 

This is my console output:

 

root@analog:/sys/bus/iio/devices/iio:device3# cat in_voltage2_hardwaregain
0.000000 dB
root@analog:/sys/bus/iio/devices/iio:device3# echo 10 > in_voltage2_hardwaregain
root@analog:/sys/bus/iio/devices/iio:device3# cat in_voltage2_hardwaregain
10.000000 dB
root@analog:/sys/bus/iio/devices/iio:device3# cat /home/analog/Documents/adi_gain_table.txt > gain_table_config
root@analog:/sys/bus/iio/devices/iio:device3# cat in_voltage2_hardwaregain
0.000000 dB
root@analog:/sys/bus/iio/devices/iio:device3# echo 10 > in_voltage2_hardwaregain
root@analog:/sys/bus/iio/devices/iio:device3# cat in_voltage2_hardwaregain
0.000000 dB

 

Do you have any suggestions?

Outcomes