Closed maso27 closed 1 month ago
I don't think this is an issue with pyadi-iio. If you comment out updating the sample rate the problem goes away. Alternatively you can put the sample_rate write after the dds_dual_tone call.
There was bug branch related here https://github.com/analogdevicesinc/pyadi-iio/tree/tfcollins/pluto-bug-samplerate There seems to be some interplay with the interface core (axi_ad9361) and I think the driver interface retuning. There is an internal bug report but it hasn't been looked at.
Closing since its not a pyadi-iio issue
On ADALM-PLUTO, with 2r2t mod, the dds_dual_tone() function sometimes generates a tone on the wrong channel.
With this code, it can be demonstrated on a dual-channel PLUTO with cables looping back Tx1-Rx1 and Tx2-Rx2. Code: