Settings AGC attributes to custom values affects other AD936x settings causing testAD9363RxWithTxDDS() to fail. The work-around is to reset AGC settings to their default values prior to calling testAD9363RxWithTxDDS(). How are the custom AGC settings affecting the other settings? One potential solution is to understand the order of hardware initialization function calls and the setting of gain/sample-rate/bandwidth in setupInit() in +adi/+AD9361/Rx.m.