Accessing XADC in ZYNQ SOC (Zedboard) using Simulink (or Xilinx System Generator for matlab)

4 views (last 30 days)
I need to configure XADC available in ZYNQ SoC using simulink in order to read a DC or AC signal. I am using zedboard for all my demonstrations. Can some one help me with this, I did not find any relevant help on MATLAB or Xilinx webpage.
If UDP Send/Recieve needs to be used then can you please illustrate the assignment of analog pin to UDP send.
Best Regards, Anirudh

Answers (2)

rabei shwehdi
rabei shwehdi on 24 Dec 2016

Shoumei on 19 Apr 2023
As of R2023a, acccesing XADC from Simulink or generated C/HDL code is not supported.
I believe you can do that by customizing device tree file for Xilinx Zynq and rebuiilding Linux Image.
Xilinx Wiki > XADC > Device Tree Setting
HDL Coder Example > Author a Xilinx Zynq Linux Image for a Custom Zynq Board by Using MathWorks Buildroot

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!