I am using the following script to run a transmit test on the ADRV9002.
sdr = adi.adrv9002(uri="ip:192.168.1.233")
sdr.tx_hardwaregain_chan0 = -40
sdr.tx_ensm_mode_chan0 = "rf_enabled"
Fs = 15360000
t = np.arange(0,0.1,1/Fs)
Fc = 5000000
fm = 20000
frm = np.cos(2 * np.pi * Fc * t + np.sin(2 * np.pi * fm * t)) * 2 ** 15
m = np.sin(2 * np.pi * fm * t) * 2 ** 15
sdr.tx_cyclic_buffer = True
for i in range(10000):
Despite defining the set up for "tx channel 0", I am only getting the expected TX RF output on TX2_OUT SMA and not the expected TX1_OUT SMA.
Also, the only way I am able to get the transmit path to repeatedly transmit so I can view the results on a PXA is by looping the sdr.tx(frm) over and over again in a for loop. Is this the correct way to "constantly" transmit so that the output can be monitored continuously. Does the sdr.tx_cyclic_buffer = True do this somehow so that the sdr.tx does not have to be constantly looped?