All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Buchli <jonas@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] analog output device with comedi/analogy
Date: Tue, 27 Oct 2009 23:53:45 -0700	[thread overview]
Message-ID: <4AE7EA79.5070904@domain.hid> (raw)

Dear all,

we are trying to get a National Instruments DA/AD card (NI PCIe 6259, 
see link below) working with comedi/analogy.

The drivers seem to be doing something, I can pull up the analog outputs 
to 10V (max voltage) using the example program cmd_write. So I think the 
issues I am having are stemming from not understanding and using the API 
correctly rather than driver issues (but I might be wrong).

Thus, I am trying to understand how to actually write a waveform to the 
analog output and am so far not very successful and the comedi doc seems 
a bit cryptic and scarce to me in this respect.

- Does anyone have example code how this is done?

- Is the correct procedure to issue first a command (comedi_snd_command) 
and then use the write command (comedi_sys_write) to achieve this?

- Interestingly the write command (comedy_sys_write) is not the one 
responsible for pulling up the output, it seems to already happen in the 
comedi_snd_command.

- My current approach was trying to modify the cmd_write example. Is 
this a good idea?

Any help and pointers would be greatly appreciated!

Thanks a lot and best regards
Jonas


PS:
Card being used NI PCIe 6259:
http://sine.ni.com/nips/cds/view/p/lang/en/nid/14128










             reply	other threads:[~2009-10-28  6:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28  6:53 Jonas Buchli [this message]
2009-10-28  8:33 ` [Xenomai-help] analog output device with comedi/analogy Alexis Berlemont

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=4AE7EA79.5070904@domain.hid \
    --to=jonas@domain.hid \
    --cc=xenomai@xenomai.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.