analogdevicesinc / iio-oscilloscope

A GTK+ based oscilloscope application for interfacing with various IIO devices
https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope
GNU General Public License v2.0
252 stars 141 forks source link

Look up devices by ID and not by name #259

Open dNechita opened 4 years ago

dNechita commented 4 years ago

When constructing the devices and channels tree in 'Capture Window', lookup for devices by ID and not by name. This prevents issues in scenarios where multiple devices exist and have the same name. Otherwise all channels from all devices will be placed under the first device leaving the rest of devices with no channels.

Also see: https://ez.analog.com/sw-interface-tools/f/q-a/519863/iio-oscilloscope-plot-channel-display-issue-with-multiple-ad4020-devices

rgetz commented 4 years ago

could do the same by label - I can bump this up on the libiio list if you need.

dNechita commented 4 years ago

I think the ID is sufficient.