All of lore.kernel.org
 help / color / mirror / Atom feed
From: jarul <joearul09@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Using LIBIIO sending DATA to DAC and capturing the output from DAC
Date: Tue, 8 May 2018 18:12:57 -0700 (MST)	[thread overview]
Message-ID: <1525828377261-0.post@n7.nabble.com> (raw)

I would like to ask a question and if anybody can answer my question, I would
very much appreciate.

I am using Z706 and AD9361. I have setup the SD card image on the server
side and I have a client machine which is a Linux machine. I am using
ad9361-iiostream file where I send my data using sin and cos function to DAC
and try to get the output from DAC. If I send the random number which does
not exceed 2047, do the left shift 4 bit and send the data to DAC. It
creates a nice waveform file and the waveform can be seen on oscilloscope
clearly.  Using random number I can get the output from DAC. However, when I
send the sin and cos function, the output from DAC can not be captured or I
get just 0 and one single value as output.

I have used iio_channel_read_raw function to capture the output else
iio_channel_read function to capture the output from DAC. I want to capture
the DAC output and then send the output to ADC and finally I want to capture
the ADC output to compare the digital data on both side.

Can any export or whoever is familiar with the subject libiio can answer my
question. Thanks a lot.



--
Sent from: http://linux-kernel.2935.n7.nabble.com/

             reply	other threads:[~2018-05-09  1:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-09  1:12 jarul [this message]
2018-05-09  1:14 ` Using LIBIIO sending DATA to DAC and capturing the output from DAC Randy Dunlap
2018-05-09  9:10   ` Lars-Peter Clausen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1525828377261-0.post@n7.nabble.com \
    --to=joearul09@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.