09-19-2018 01:59 AM
I am having a Zybo Z7-20 Board and I want to read from the XADC the digitalized voltages as fast as possible in my embedded linux (petalinux 2018.2)-environment.
In my eyes I should read the voltages directly from user space. My problem now, if I read with my application code from /dev/iio:deviceX I only get rubbish or nothing.
I know that it is necessary to add sometimes librarys to read from user space. Is it also in this case possible and if yes which library do I have to add? Or is there a much more simple way?
Btw I already created a driver and it is working, but to slow because opening/closing is taking in my case to much time.
Thanks for every help!
Greetings from the helpless guy
09-19-2018 03:39 PM
You can see all of the items in /sys/bus/iio/devices/iio:device0. For voltages and temp, take the (raw + offset) * scale. And for temp, take that equation and divide by 1000.0 to get degrees C.
09-19-2018 10:30 PM
thanks for your answer but this is not helping a lot. You are talking about using a driver and read the raw voltages from a file. In my case this is to slowling. Have you ever tried reading directly from user space?
09-20-2018 01:46 AM
You may want to refer to user application in XAPP1182 Linux Software based Application C code for command line.
09-20-2018 04:34 AM