I have successfully used the TES software to generate Python code for a basic RX test for the ADRV9002/ZCU702 using a signal generator as a source.
I was curious if it would be possible to set up the ADRV9002/ZCU102 using Pyadi-iio Python library to "receive" data from a signal generator as well.
I attempted use a modified version of the example code provided on the Pyadi-iio repository to do this shown below:
sdr = adi.adrv9002(uri="ip:192.168.1.233")
sdr.interface_gain_chan0 = "0dB"
sdr.rx_ensm_mode_chan0 = "rf_enabled"
fs = int(sdr.rx0_sample_rate)
sdr.rx_buffer_size = 2 ** 18
for i in range(20):
a = sdr.rx()
# Plot the spectogram of this data
plt.specgram(a, NFFT=1024, Fs=fs)
plt.title("PSD of 'signal' loaded from file")
Is the Pyadi-iio library for the ADRV9002 capable of setting up the transceiver to "receive" a real signal from an RF source?
Are there an examples of such a test?