Hi,
I am working with the ZCU102 + FMCOMMS3-EBZ board. I need to capture both ADC and DAC data in Linux without using the IIO Oscilloscope tool. Can you please guide me on how to achieve this?
AD9361
Recommended for New Designs
The AD9361 is a high performance, highly integrated radio
frequency (RF) Agile Transceiverâ„¢ designed for use in 3G and
4G base station applications....
Datasheet
AD9361 on Analog.com
Hi,
I am working with the ZCU102 + FMCOMMS3-EBZ board. I need to capture both ADC and DAC data in Linux without using the IIO Oscilloscope tool. Can you please guide me on how to achieve this?
Hi travisfcollins ,
Thank you for your valuable response.
Can we capture the DAC and ADC data using the ad9361-iiostream
file? How do we use it on the board?
Yes. Using on the board versus remotely is purely based on the context you use. Local is just local: and remote over IP is ip:<ip address>
-Travis
Hi travisfcollins ,
How do I compile this file and how to use the compiled files in zcu102 board ?
My requirement is to capture both ADC and DAC data on the board and then plot both datas on a PC. Can you provide the steps?
Hi travisfcollins ,
hdd@hdd-OptiPlex-7050:~/libiio/examples$ aarch64-linux-gnu-gcc ad9361-iiostream.c -o ad9361-iiostream.out
ad9361-iiostream.c:14:10: fatal error: iio.h: No such file or directory
14 | #include <iio.h>
| ^~~~~~~
compilation terminated.
i tried compile not able to compile? how to compile and how to test? i need to capture both dac and adc data?
iio_readdev -b 1024 -s 100000 cf-ad9361-lpc voltage0 voltage1 voltage2 voltage3 > adc_data.bin
using this command i tried to capture the adc data sameway how can i capture the dac data ?
ad9361-iiostream.c:14:10: fatal error: iio.h: No such file or directory
14 | #include <iio.h>
It requires the library the example is within (libiio).
using this command i tried to capture the adc data sameway how can i capture the dac data ?
You must provide the DAC data. Its not something you capture.
-Travis
Hi travisfcollins ,
Thank you for the response.
1.While compiling with GCC on an Ubuntu PC, the compilation succeeds, but the generated binary does not work on the ZCU102 board due to architecture differences.
However, when compiling with the Xilinx toolchain (aarch64-linux-gnu-gcc), the following error occurs:
host@host.$ aarch64-linux-gnu-gcc ad9361-iiostream.c -o ad9361-iiostream -liio
ad9361-iiostream.c:14:10: fatal error: iio.h: No such file or directory
14 | #include <iio.h>
| ^~~~~~~
compilation terminated. i tried to compile with inside example folder only. How can this issue be resolved?
2.Can I use the following command to capture DAC data after providing the proper input? If it's not correct please give the proper way?
iio_readdev -b 1024 -s 100000 cf-ad9361-dds-core-lpc voltage0 voltage1 voltage2 voltage3 > dac_data.bin
1. When you cross compile you need to cross-compile dependent libraries. So you would need to recompile libiio itself for the target architecture or use the sysroot generated by Petalinux.
2. Again
You must provide the DAC data. Its not something you capture.
-Travis
Hi travisfcollins ,
We provided the data to DAC. ADC and DAC Loopbacked and tested through the oscilloscope tool. ADC data able to capture using the below command in linux.
iio_readdev -b 1024 -s 100000 cf-ad9361-lpc voltage0 voltage1 voltage2 voltage3 > adc_data.bin
Can you please let me know how to capture the DAC data in linux?
You have asked this question twice and I have answered it with the same response. Do you not understand what "You must provide the DAC data. Its not something you capture." means?
-Travis