Post Go back to editing

Multi-channel transmission/reception using pyadi-iio

Category: Software
Product Number: Jupiter SDR
Software Version: Stock Jupiter SDR software + pyadi-iio (0.0.19) + pylibiio (0.25)

Hi!

Jupiter SDR platform has to tx/rx ports, and several examples on how to use one of the two. An example can be found here (github.com/.../adrv9002_example.py), where two rx-channels are configured, but only one is actually used.  Example script is attached here, but where amount of data received from rx2 is only 1024 samples, not sdr.rx_buffer_size.

import time
import adi
import matplotlib.pyplot as plt
import numpy as np
from scipy import signal

sdr = adi.adrv9002(uri="ip:<>")
print(sdr._num_rx_channels_enabled)

sdr.rx0_en = 1
sdr.rx1_en = 1
sdr.rx_ensm_mode_chan0 = "rf_enabled"
sdr.rx_ensm_mode_chan1 = "rf_enabled"
print(sdr._num_rx_channels_enabled)

print(sdr.rx0_sample_rate)
print(sdr.rx1_sample_rate)

sdr.rx_buffer_size = 2 ** 18
print(sdr.rx_buffer_size)

# Collect data
x = sdr.rx1()
print(x.shape)
x2 = sdr.rx2()
print(x2.shape)

Rx0/1 sample rates are identical, and sdr._num_rx_channels_enabled is always 1. What is wrong/missing in this script?

Best regards,

Henning

Thread Notes

Parents Reply Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.