analogdevicesinc / plutosdr_scripts

Small scripts and examples to make interacting with the PlutoSDR easier
GNU General Public License v2.0
75 stars 26 forks source link

missing find_channel() in pluto.py #6

Closed rgetz closed 5 years ago

rgetz commented 5 years ago

channels are hard coded - which isn't going to work on all systems.

Mark reported a problem based on this code.

-Robin

tfcollins commented 5 years ago

I left the dac and adc channel indexing still in there, since stream channels should always go 0-N and I think its probably more readable.

rgetz commented 5 years ago

You are not guaranteed that things are the same order all the time, or if someone changes a kernel driver, that it will continue to work.

(The sorting updates in libiio breaks this for sure).

tfcollins commented 5 years ago

Updated them all.