All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Experimenting with Analogy. Bugs found?
@ 2010-03-11 15:40 Daniele Nicolodi
  2010-03-12  0:07 ` [Xenomai-core] " Daniele Nicolodi
  2010-03-13  0:42 ` Alexis Berlemont
  0 siblings, 2 replies; 8+ messages in thread
From: Daniele Nicolodi @ 2010-03-11 15:40 UTC (permalink / raw)
  To: xenomai

Hello. I'm testing Analogy on my x86 system with a NI 6251 ADC board (I
can test with other NI ADCs if it useful to someone).

The lack of overview documentation is making my progress slow, but I
have a couple of acquisition routines working quite well.

So far I have discovered that the TRI_WAKE_EOS flags works quite ok on
my hardware, despite being indicates as unsupported in the
documentation. Messing with the drivers I also discovered that
a4l_mmap() is also working. There is just a bug to iron out (I can
provide more details on my hacking if someone is interested in helping
my track down the issue).

At the moment I'm facing two problems:

1. I setup an asynchronous acquisition. I then use a loop to
a4l_sys_read() the acquired data. When the acquisition command is over,
as configured with the .stop_src and .stop_arg in the command data
structure, the a4l_sys_read() returns an ENOENT error. The comedi way of
signaling the acquisition command end is to return 0, as is done for
files to signal the end of file. I think this is an API deficiency but I
haven't looked at how much work is to fix it.

2. Looks like it is not possible to setup an endless acquisition. If I
set .stop_src = TRIG_NONE and .stop_arg = 0, the command submission goes
fine, but I obtain an ENOENT error at the first a4l_sys_read(). I have
no idea on where to look to track down this issue.

Thanks. Cheers,
-- 
Daniele


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-18 23:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-11 15:40 [Xenomai-help] Experimenting with Analogy. Bugs found? Daniele Nicolodi
2010-03-12  0:07 ` [Xenomai-core] " Daniele Nicolodi
2010-03-12 16:05   ` Daniele Nicolodi
2010-03-13  0:46     ` Alexis Berlemont
2010-03-13  0:42 ` Alexis Berlemont
2010-03-15  8:49   ` Daniele Nicolodi
     [not found]   ` <4B9FF458.4050908@domain.hid>
2010-03-18 23:32     ` Alexis Berlemont
2010-03-18 23:37       ` Daniele Nicolodi

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.