Post Go back to editing

Issue activating 2 RX channels

Category: Software
Product Number: ADALM-PLUTO
Software Version: 0.38

Good afternoon,

I have run into an issue when trying to set the PLUTO SDR (firmware version 0.38) to a 2-channel RX mode in a Python script. The mode is already set to 2r2t on the device itself (verified by ssh'ing into the PLUTO and using fw_printenv mode), but when I put together a simple script to capture a few samples on both RX channels (e.g. following the steps as described on this page), the following line in the script:

sdr.rx_enabled_channels = [0, 1]

gives me the error message:

Exception: RX mapping exceeds available channels

I am not sure why this happens. I am probably missing something, because we have been using this device in 2-channel RX mode just fine using other scripts. I unfortunately can't copy the initialisation steps from there as we use a different way to initialise the PLUTO there, with a JSON file.

For completeness' sake, the full script is listed below.

import numpy as np
import adi
import datetime

sample_rate = 521000 # Hz, 25 Ms/48 decimation rounded up
center_freq = 1451e6 # Hz
num_samps = 521000 # number of samples returned per call to rx()

sdr = adi.Pluto('ip:192.168.2.1')
sdr.rx_enabled_channels = [0, 1]
sdr.gain_control_mode_chan0 = 'manual'
sdr.gain_control_mode_chan1 = 'manual'
sdr.rx_hardwaregain_chan0 = 70.0 # dB
sdr.rx_hardwaregain_chan1 = 70.0 # dB
sdr.rx_lo = int(center_freq)
sdr.sample_rate = int(sample_rate)
sdr.rx_rf_bandwidth = int(sample_rate)
sdr.rx_buffer_size = num_samps

count = 0
while (count < 10):
samples = sdr.rx()
count = count + 1
print(datetime.datetime.now())

Any thoughts would be much appreciated!



Removed suspicious URL
[edited by: GenevaCooper at 1:44 PM (GMT -4) on 25 Oct 2024]