From: Daniele Nicolodi <daniele@domain.hid>
To: comedi_list@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] [comedi] NI 6251 "wrong" samples
Date: Thu, 17 Jun 2010 11:07:20 +0200 [thread overview]
Message-ID: <4C19E5C8.8070802@domain.hid> (raw)
In-Reply-To: <4C0CF99F.1090700@domain.hid>
Hello. Sorry for the long delay, I had some real work to get done with
the acquisition system and I had to implement a work-around for this
problem...
I have been investigating the issue further, but its random nature makes
this quite difficult.
> The observation that the "wrong" sample occurs on the last sample of the
> scan sounds useful. Does it occur randomly or on every scan?
I must retire this statement. The "wrong" samples can occur on any
channel. Some are just more probable than other. The "wrong" samples do
NOT occur at each scan, and they look to be completely random in their
occurrence, I'm trying to find a pattern but without luck up to now.
> Also, are you using the TRIG_WAKE_EOS command flag (or equivalently,
> setting stop_arg to TRIG_COUNT and stop_count to 1)? If so, does the
> wrong sample still occur when the TRIG_WAKE_EOS flag is not set? (You
> might need to look harder for the wrong samples when TRIG_WAKE_EOS is
> not set, as they might occur much less frequently and they might occur
> at any position in the scan.
No. I'm running a continuous memory mapped acquisition. The only maybe
uncommon thing I'm doing is that I'm reading the mmapped buffer in fixed
chunks, rather than reading all the samples available each time. The
number of samples I read each time is larger than the 4095 samples after
which the hardware sends the FIFO half full trigger event.
Suggestions?
Thanks. Cheers,
--
Daniele
next prev parent reply other threads:[~2010-06-17 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 17:49 [Xenomai-help] NI 6251 "wrong" samples Daniele Nicolodi
[not found] ` <4C0CEC7E.6080408@domain.hid>
[not found] ` <4C0CF99F.1090700@domain.hid>
2010-06-17 9:07 ` Daniele Nicolodi [this message]
2010-06-21 9:03 ` [Xenomai-help] [comedi] " Daniele Nicolodi
2010-06-21 11:59 ` Alexis Berlemont
2010-06-21 18:14 ` Daniele Nicolodi
2010-06-21 22:52 ` 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=4C19E5C8.8070802@domain.hid \
--to=daniele@domain.hid \
--cc=comedi_list@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.