ZC706 with AD9371

Hi,

I am using AD9371 with zc706 for a project. When I transmit the data from Tx1 and receive from Rx1 througn iio oscilloscope I get good results (NMSE) but when I try to do the same thing using C code running on Linux (referring to libiio) the results are not good.

I worked on AD9361 where this thing was working but now I have to shift to AD9371 and it is not giving desired results. I referred to the libiio library and found out that the functions to transmit and receive the data are same (iio_buffer_push, iio_buffer_refill). Is there any difference in the structure of the iio buffer for AD9371? If yes then where can I get this information? If no, then what can be the possible issue with this?

Parents Reply
  • Yes we are matching TX and RX. i ha

    rx_tx_6144.txt
    <profile AD9371 version=0 name=Rx 50, IQrate 61.440>
     <clocks>
      <deviceClock_kHz=76800>
      <clkPllVcoFreq_kHz=9830400>
      <clkPllVcoDiv=2>
      <clkPllHsDiv=4>
     </clocks>
    
     <rx>
      <adcDiv=1>
      <rxFirDecimation=2>
      <rxDec5Decimation=5>
      <enHighRejDec5=1>
      <rhb1Decimation=2>
      <iqRate_kHz=61440>
      <rfBandwidth_Hz=50000000>
      <rxBbf3dBCorner_kHz=50000>
    
      <filter FIR gain=-6 num=72>
      0
      -1
      2
      3
      -5
      -7
      11
      15
      -23
      -29
      43
      54
      -75
      -92
      125
      150
      -198
      -235
      302
      355
      -447
      -524
      646
      759
      -920
      -1089
      1302
      1568
      -1864
      -2324
      2763
      3696
      -4513
      -7179
      9583
      31418
      31418
      9583
      -7179
      -4513
      3696
      2763
      -2324
      -1864
      1568
      1302
      -1089
      -920
      759
      646
      -524
      -447
      355
      302
      -235
      -198
      150
      125
      -92
      -75
      54
      43
      -29
      -23
      15
      11
      -7
      -5
      3
      2
      -1
      0
      </filter>
    
      <adc-profile num=16>
      596
      358
      201
      98
      1280
      134
      1509
      64
      1329
      25
      818
      39
      48
      40
      23
      190
      </adc-profile>
     </rx>
    
     <obs>
      <adcDiv=1>
      <rxFirDecimation=2>
      <rxDec5Decimation=5>
      <enHighRejDec5=1>
      <rhb1Decimation=2>
      <iqRate_kHz=61440>
      <rfBandwidth_Hz=50000000>
      <rxBbf3dBCorner_kHz=25000>
    
      <filter FIR gain=0 num=72>
      0
      -1
      1
      2
      -2
      -6
      6
      12
      -13
      -24
      25
      43
      -45
      -73
      77
      118
      -124
      -183
      193
      274
      -289
      -402
      423
      579
      -607
      -826
      866
      1187
      -1244
      -1759
      1842
      2818
      -2970
      -5815
      4337
      18436
      18436
      4337
      -5815
      -2970
      2818
      1842
      -1759
      -1244
      1187
      866
      -826
      -607
      579
      423
      -402
      -289
      274
      193
      -183
      -124
      118
      77
      -73
      -45
      43
      25
      -24
      -13
      12
      6
      -6
      -2
      2
      1
      -1
      0
      </filter>
    
      <adc-profile num=16>
      596
      358
      201
      98
      1280
      134
      1509
      64
      1329
      25
      818
      39
      48
      40
      23
      190
      </adc-profile>
    
      <lpbk-adc-profile num=16>
      599
      357
      201
      98
      1280
      112
      1505
      53
      1331
      21
      820
      40
      48
      40
      23
      191
      </lpbk-adc-profile>
     </obs>
    
     <tx>
      <dacDiv=2.5>
      <txFirInterpolation=2>
      <thb1Interpolation=2>
      <thb2Interpolation=2>
      <txInputHbInterpolation=1>
      <iqRate_kHz=61440>
      <primarySigBandwidth_Hz=10000000>
      <rfBandwidth_Hz=50000000>
      <txDac3dBCorner_kHz=92000>
      <txBbf3dBCorner_kHz=25000>
    
      <filter FIR gain=0 num=32>
      -118
      -122
      242
      240
      -429
      -499
      730
      900
      -1154
      -1615
      1742
      2957
      -2322
      -5354
      3885
      17211
      17211
      3885
      -5354
      -2322
      2957
      1742
      -1615
      -1154
      900
      730
      -499
      -429
      240
      242
      -122
      -118
      </filter>
     </tx>
    </profile>
    
    ve attached the profile that we are using.

Children