From: Jorge Ramirez Ortiz <jro@xenomai.org>
To: "Yogi A. Patel" <yapatel@gatech.edu>,
"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] analogy calibration issue(s)
Date: Wed, 05 Aug 2015 01:00:09 -0400 [thread overview]
Message-ID: <55C19859.6040508@xenomai.org> (raw)
In-Reply-To: <55C17C8E.5000909@gatech.edu>
On 08/04/2015 11:01 PM, Yogi A. Patel wrote:
> Hi -
>
> I am migrating a xenomai 2.5.4 application to the cobalt core. I have xenomai
> 3.0-rc5 installed with 3.18.12.
>
> I have a NI PCI 6250 card that is attached via analogy_config. I can
> successfully run the insn_read command that is installed with the user space
> support by running:
>
> sudo ./insn_read -d analogy0 -c 3 -R 0 --verbose
>
> This prints out a set of values close to what I am expecting (5V)
>
> I then attempt to use the analogy calibration feature added to Xenomai 3 by
> running:
>
> sudo ./analogy_calibrate --device=analogy0 --output=calvals.bin
>
> This prints out the following:
>
> 0"000.079| calibration output: calvals.binls
> 0"004.427| calibrating device: analogy_ni_pcimio
> 0"255.934| Polynomial :
> 0"255.972| order = 3
> 0"255.995| expansion origin = 32767.000000
> 0"256.026| order 0 coefficient = 32867.5
> 0"256.051| order 1 coefficient = 0.949174
...
>
> NOTE: there appears to be a print bug above (0"283.294| Calibrating AI: \x10�m)
apply the following:
[jramirez@calypso ~ (master *)]$ git diff calibration_ni_m.c
diff --git a/utils/analogy/calibration_ni_m.c b/utils/analogy/calibration_ni_m.c
index c72a44d..6f9be6f 100644
--- a/utils/analogy/calibration_ni_m.c
+++ b/utils/analogy/calibration_ni_m.c
@@ -973,7 +973,7 @@ static int ni_m_calibrate_ai(void)
* calibrate low, medium and high gain ranges
*/
for (i = 0; i < ARRAY_LEN(cal_info); i++) {
- __debug("Calibrating AI: %s \n", cal_info[i]);
+ __debug("Calibrating AI: %s \n", cal_info[i].message);
if (cal_info[i].range >= 0)
goto calibrate;
> > Has anyone successfully used the calibration feature?
it seemed to work ok when I wrote the code some time ago on the 6220 I think it was.
Please could you post the contents of the calibration file?
next prev parent reply other threads:[~2015-08-05 5:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 3:01 [Xenomai] analogy calibration issue(s) Yogi A. Patel
2015-08-05 5:00 ` Jorge Ramirez Ortiz [this message]
2015-08-05 5:13 ` Yogi A. Patel
2015-08-05 12:54 ` Jorge Ramirez Ortiz
2015-08-06 19:00 ` Jorge Ramirez Ortiz
2015-08-06 20:30 ` Yogi A. Patel
2015-08-06 20:47 ` Jorge Ramirez Ortiz
2015-08-07 1:57 ` Yogi A. Patel
2015-08-07 11:26 ` Jorge Ramirez Ortiz
2015-08-07 12:43 ` Yogi A. Patel
2015-08-07 13:00 ` Jorge Ramirez Ortiz
2015-08-07 14:13 ` Jorge Ramirez Ortiz
2015-08-07 20:15 ` Yogi A. Patel
2015-08-07 20:32 ` Jorge Ramirez Ortiz
2015-08-07 20:35 ` Yogi A. Patel
2015-08-07 20:47 ` Jorge Ramirez Ortiz
2015-08-07 20:48 ` Yogi A. Patel
2015-08-07 21:27 ` Jorge Ramirez Ortiz
2015-08-11 12:29 ` Yogi A. Patel
2015-08-17 4:11 ` Yogi A. Patel
2015-08-17 13:22 ` Jorge Ramirez Ortiz
2015-08-17 13:39 ` Jorge Ramirez Ortiz
2015-08-17 14:29 ` Jorge Ramirez Ortiz
2015-08-17 14:22 ` Yogi A. Patel
2015-08-20 14:15 ` Jorge Ramirez Ortiz
2015-08-07 21:28 ` Gilles Chanteperdrix
2015-08-11 12:22 ` Yogi A. Patel
2015-08-11 15:49 ` Gilles Chanteperdrix
2015-08-07 12:53 ` Jorge Ramirez Ortiz
2015-08-06 20:56 ` Gilles Chanteperdrix
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=55C19859.6040508@xenomai.org \
--to=jro@xenomai.org \
--cc=xenomai@xenomai.org \
--cc=yapatel@gatech.edu \
/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.