UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
5,261 Views
Registered: ‎04-10-2016

/sys/bus/iio/devices/iio:device0?

Jump to solution

What is the meaning of the file under the /sys/bus/iio/devices/iio:device0 directory, which represents the voltage, as shown in the following figure

QQ截图20170508200527.png
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
8,312 Views
Registered: ‎10-06-2016

Re: /sys/bus/iio/devices/iio:device0?

Jump to solution

Hi @xilinx-zhaosheng

 

Basically you can use the application that is provided with the XAPP1172 to read the values in mV and degrees. Otherwise just read the files (using cat command) and convert to the desired scale using the right conversion values according to your configuration.

 

You can take a look to the code provided to as an example.


Ibai
Don’t forget to reply, kudo, and accept as solution.

View solution in original post

4 Replies
Adventurer
Adventurer
5,247 Views
Registered: ‎12-03-2015

Re: /sys/bus/iio/devices/iio:device0?

Jump to solution

It is all described in the device data sheet. Read it thoroughly. 

0 Kudos
Moderator
Moderator
5,221 Views
Registered: ‎10-06-2016

Re: /sys/bus/iio/devices/iio:device0?

Jump to solution

Hi @xilinx-zhaosheng

 

The device0 within the IIO framework is the system monitor or XADC within the Zynq SoC, so those voltages are the ones monitored by the XADC internally.

 

Check more information at:

Wiki page

XAPP1172


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Adventurer
Adventurer
5,146 Views
Registered: ‎04-10-2016

Re: /sys/bus/iio/devices/iio:device0?

Jump to solution

How do I calculate the voltage through the file?

0 Kudos
Moderator
Moderator
8,313 Views
Registered: ‎10-06-2016

Re: /sys/bus/iio/devices/iio:device0?

Jump to solution

Hi @xilinx-zhaosheng

 

Basically you can use the application that is provided with the XAPP1172 to read the values in mV and degrees. Otherwise just read the files (using cat command) and convert to the desired scale using the right conversion values according to your configuration.

 

You can take a look to the code provided to as an example.


Ibai
Don’t forget to reply, kudo, and accept as solution.

View solution in original post