The monitor command - what replaces monitor -ams at 0.95

Just about everything about Red Pitaya
korifey
Posts: 2
Joined: Mon Jun 08, 2015 6:01 pm

Re: The monitor command - what replaces monitor -ams at 0.95

Post by korifey » Sun Jun 26, 2016 7:36 pm

:P now it works.
chmod +x xadc.sh

izi
Posts: 34
Joined: Wed May 27, 2015 11:49 am

Re: The monitor command - what replaces monitor -ams at 0.95

Post by izi » Mon Jun 27, 2016 5:36 pm

First some reasoning.
'monitor' is a debugging tool, it should not be used as part of an application, common monitoring tools usually only provide basic memory read/write functionality. Previously XADC used some custom RTL code to connect it to the CPU, this code was replaced with more standard code which allows for the use of a dedicated IIO Linux driver. It did not make much sense to me to modify the existing monitor to use the new kernel interface. But I wrote examples for using XADC in bash and C.

Bash example:
https://github.com/RedPitaya/RedPitaya/ ... dc/xadc.sh
'bc ' is a shell calculator, it can be installed on Debian/Ubuntu using the command:

Code: Select all

# apt-get install bc
C example can be found inside the API (functions rp_AIpinGetValueRaw and rp_AIpinGetValue):
https://github.com/RedPitaya/RedPitaya/ ... e/src/rp.c

I also tried to use 'libiio' from Analog and I had some success, but libiio is not yet part of our release so I did not finish and publish the code.

Generally speaking, now XADC is connected in a more standard way so various instructions provided by Xilinx should work, it does not make too much sense for us to duplicate those instructions, and I think we are better off without custom solutions like the one used previously in the monitor.

Regards,
Iztok Jeras

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 116 guests