libiio-client for ad9684

I've created an hdl project and petalinux boot image for the ad9684 adc. I have run the test pattern and done a memory dump and the data appears to be coming in correctly (e.g. ramp test).

I would like to write a simple libiio-client to test sample data capture via the adc.

The iiod daemon is running on the fpga board.

If I type the following command on a terminal from a host computer, I get a steady stream of encoded data on the console:

iio_readdev -u 'ip:192.168.1.106' iio:device1

Is there a simple example I can use to receive the samples and plot the waveform correctly on a host computer?



Updated
[edited by: elvisjohndowson at 8:47 PM (GMT -4) on 9 Sep 2020]