Рет қаралды 1,440
ADI SDR Adalm Pluto programmatic control via libiio in Windows.
The context that worked for me is described below...
iio_create_context_from_uri()
Where const char *uri can either be ip: or usb:
How to get the USB URI?
~$ iio_info -s
Library version: 0.10 (git tag: c95ff6a)
Compiled with backends: local xml ip usb
Available contexts:
0: 0456:b673 (Analog Devices Inc. PlutoSDR (ADALM-PLUTO)), serial=104473222a87000c1b000c009b8ed5c48e [usb:1.11.5]
~$
ctx = iio_create_context_from_uri("usb:1.11.5")
or
ctx = iio_create_context_from_uri("ip:192.168.2.1")
The default context did not work and tosses an Assert fault in Visual Studio. I do not recommend going that route. Definitely use : iio_create_context_from_uri