[Xenomai] analogy calibration issue(s)

2015-08-04 Thread Yogi A. Patel
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 ./in

Re: [Xenomai] analogy calibration issue(s)

2015-08-04 Thread Jorge Ramirez Ortiz
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 install

Re: [Xenomai] analogy calibration issue(s)

2015-08-04 Thread Yogi A. Patel
On 08/05/2015 01:00 AM, Jorge Ramirez Ortiz wrote: 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 r

Re: [Xenomai] analogy calibration issue(s)

2015-08-05 Thread Jorge Ramirez Ortiz
On 08/05/2015 01:13 AM, Yogi A. Patel wrote: > On 08/05/2015 01:00 AM, Jorge Ramirez Ortiz wrote: >> 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

Re: [Xenomai] analogy calibration issue(s)

2015-08-06 Thread Jorge Ramirez Ortiz
> > Has anyone successfully used the calibration feature? > Seems to be working on my end (the calibration file is always generated). # analogy_config analogy0 analogy_ni_pcimio # analogy_calibrate --device=analogy0 --output=file # insn_read -d analogy0 -c 0 -R 0 -y /root/file Calibrated value

Re: [Xenomai] analogy calibration issue(s)

2015-08-06 Thread Yogi A. Patel
When I run sudo ./analogy_calibrate --device=analogy0 --output=file I see [ 1124.191097] analogy_calibra[2822]: segfault at 7 ip 7f10b88c6a03 sp 7fffaee2bb40 error 4 in libc-2.19.so[7f10b887b000+1bb000] on two computers running Xenomai RC5 with Linux 3.18.12 both with NI DAQs instal

Re: [Xenomai] analogy calibration issue(s)

2015-08-06 Thread Jorge Ramirez Ortiz
On 08/06/2015 04:30 PM, Yogi A. Patel wrote: > When I run > > sudo ./analogy_calibrate --device=analogy0 --output=file > > I see > > [ 1124.191097] analogy_calibra[2822]: segfault at 7 ip 7f10b88c6a03 sp > 7fffaee2bb40 error 4 in libc-2.19.so[7f10b887b000+1bb000] > > on two computers ru

Re: [Xenomai] analogy calibration issue(s)

2015-08-06 Thread Gilles Chanteperdrix
On Thu, Aug 06, 2015 at 04:30:48PM -0400, Yogi A. Patel wrote: > When I run > > sudo ./analogy_calibrate --device=analogy0 --output=file > > I see > > [ 1124.191097] analogy_calibra[2822]: segfault at 7 ip 7f10b88c6a03 sp > 7fffaee2bb40 error 4 in libc-2.19.so[7f10b887b000+1bb000] > > o

Re: [Xenomai] analogy calibration issue(s)

2015-08-06 Thread Yogi A. Patel
> On Aug 6, 2015, at 16:47, Jorge Ramirez Ortiz wrote: > > On 08/06/2015 04:30 PM, Yogi A. Patel wrote: >> When I run >> >> sudo ./analogy_calibrate --device=analogy0 --output=file >> >> I see >> >> [ 1124.191097] analogy_calibra[2822]: segfault at 7 ip 7f10b88c6a03 sp >> 7fffaee2bb40

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Jorge Ramirez Ortiz
On 08/06/2015 09:57 PM, Yogi A. Patel wrote: > >> On Aug 6, 2015, at 16:47, Jorge Ramirez Ortiz wrote: >> >> On 08/06/2015 04:30 PM, Yogi A. Patel wrote: >>> When I run >>> >>> sudo ./analogy_calibrate --device=analogy0 --output=file >>> >>> I see >>> >>> [ 1124.191097] analogy_calibra[2822]: seg

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Yogi A. Patel
>> I did - and it turns out the error was due to this line: >> >> __debug("Calibrating AI: %s \n", cal_info[i]); >> >> changing this to: >> >> __debug("Calibrating AI: %s \n", cal_info[i].message); > > I already sent you a patch for this This patch needs to be applied to 3.0-rc6. > can you se

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Jorge Ramirez Ortiz
On 08/07/2015 07:26 AM, Jorge Ramirez Ortiz wrote: >> > # sudo ./../../usr/xenomai/bin/insn_read -c 0 -R 0 -y file >> > >> > Never prints anything, top shows continuous running and increased >> > consumption of memory > can you send the calibration file please? > also can you gdb insn_read? > >>

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Jorge Ramirez Ortiz
On 08/07/2015 08:43 AM, Yogi A. Patel wrote: >>> I did - and it turns out the error was due to this line: >>> >> >>> >> __debug("Calibrating AI: %s \n", cal_info[i]); >>> >> >>> >> changing this to: >>> >> >>> >> __debug("Calibrating AI: %s \n", cal_info[i].message); >>> > >>> > I already sent you

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Jorge Ramirez Ortiz
>>> >>> This is because it is looking for the elements string under “analog_output” >>> in >>> the calibration file, however there is no such section in the calibration >>> file. please pull from here for updates: http://git.xenomai.org/xenomai-jro.git/log/?h=devel _

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Yogi A. Patel
> On Aug 7, 2015, at 10:13, Jorge Ramirez Ortiz wrote: > > This is because it is looking for the elements string under “analog_output” in the calibration file, however there is no such section in the calibration file. > > please pull from here for updates: > http://

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Jorge Ramirez Ortiz
On 08/07/2015 04:15 PM, Yogi A. Patel wrote: >> On Aug 7, 2015, at 10:13, Jorge Ramirez Ortiz wrote: >> >> > > This is because it is looking for the elements string under > “analog_output” in > the calibration file, however there is no such section in the calibration > file.

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Yogi A. Patel
> any errors while generating it? no. > post the file please and I can have a look. attached. just generated it again. > -- > jro Yogi ___ Xenomai mailing list Xenomai@xenomai.org http://xenomai.org/mailman/listinfo/xenomai

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Yogi A. Patel
Yes. I've tried it. I get the error I previously sent Yogi A. Patel @yapatel525 > On Aug 7, 2015, at 16:47, Jorge Ramirez Ortiz wrote: > > On 08/07/2015 04:35 PM, Yogi A. Patel wrote: >>> any errors while generating it? >>> >>> no. >>> post the file please and I can have a look. >>> >>

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Jorge Ramirez Ortiz
On 08/07/2015 04:35 PM, Yogi A. Patel wrote: >> any errors while generating it? >> >> no. >> >> > post the file please and I can have a look. >> >> attached. just generated it again. sorry, I am not sure what you mean. is this the file that is failing? have you tried it? _

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Jorge Ramirez Ortiz
On 08/07/2015 04:48 PM, Yogi A. Patel wrote: > Yes. I've tried it. I get the error I previously sent you dont have an AO? it seems to be missing from the calibration file. having said that, AO calibration should be optional. please pull again from http://git.xenomai.org/xenomai-jro.git/log/?h=de

Re: [Xenomai] analogy calibration issue(s)

2015-08-07 Thread Gilles Chanteperdrix
On Fri, Aug 07, 2015 at 04:35:11PM -0400, Yogi A. Patel wrote: > > any errors while generating it? > > no. > > > post the file please and I can have a look. > > attached. just generated it again. The attachment did not reach the mailing list. What was its mime type? --

Re: [Xenomai] analogy calibration issue(s)

2015-08-11 Thread Yogi A. Patel
The attachment did not reach the mailing list. What was its mime type? $ mimetype file file: text/plain -- Yogi ___ Xenomai mailing list Xenomai@xenomai.org http://xenomai.org/mailman/listinfo/xenomai

Re: [Xenomai] analogy calibration issue(s)

2015-08-11 Thread Yogi A. Patel
On 08/07/2015 05:27 PM, Jorge Ramirez Ortiz wrote: On 08/07/2015 04:48 PM, Yogi A. Patel wrote: Yes. I've tried it. I get the error I previously sent you dont have an AO? it seems to be missing from the calibration file. having said that, AO calibration should be optional. Yes, all of my cards

Re: [Xenomai] analogy calibration issue(s)

2015-08-11 Thread Gilles Chanteperdrix
On Tue, Aug 11, 2015 at 08:22:28AM -0400, Yogi A. Patel wrote: > >The attachment did not reach the mailing list. What was its mime type? > $ mimetype file > file: text/plain That is not really what I was asking: I was asking you the mime type your mailer had used. Anyway, Jorge transmitted the ma

Re: [Xenomai] analogy calibration issue(s)

2015-08-16 Thread Yogi A. Patel
please pull again from http://git.xenomai.org/xenomai-jro.git/log/?h=devel It took some time, but I was able to get the process to *run* - but not work. I had to make the following modifications to the calibration.c file to get this to work on 3 different machines: diff --git a/lib/analogy

Re: [Xenomai] analogy calibration issue(s)

2015-08-17 Thread Jorge Ramirez Ortiz
On 08/17/2015 12:11 AM, Yogi A. Patel wrote: > >>> please pull again from http://git.xenomai.org/xenomai-jro.git/log/?h=devel > It took some time, but I was able to get the process to *run* - but not work. > > I had to make the following modifications to the calibration.c file to get > this > to

Re: [Xenomai] analogy calibration issue(s)

2015-08-17 Thread Jorge Ramirez Ortiz
On 08/17/2015 09:22 AM, Jorge Ramirez Ortiz wrote: > On 08/17/2015 12:11 AM, Yogi A. Patel wrote: >> please pull again from http://git.xenomai.org/xenomai-jro.git/log/?h=devel >> It took some time, but I was able to get the process to *run* - but not work. >> >> I had to make the following mod

Re: [Xenomai] analogy calibration issue(s)

2015-08-17 Thread Jorge Ramirez Ortiz
On 08/17/2015 09:39 AM, Jorge Ramirez Ortiz wrote: > On 08/17/2015 09:22 AM, Jorge Ramirez Ortiz wrote: >> On 08/17/2015 12:11 AM, Yogi A. Patel wrote: >>> > please pull again from http://git.xenomai.org/xenomai-jro.git/log/?h=devel >>> It took some time, but I was able to get the process to *r

Re: [Xenomai] analogy calibration issue(s)

2015-08-17 Thread Yogi A. Patel
diff --git a/lib/analogy/calibration.c b/lib/analogy/calibration.c index b50cb2f..d062a00 100644 --- a/lib/analogy/calibration.c +++ b/lib/analogy/calibration.c @@ -105,7 +105,10 @@ static inline int read_int(int *val, struct _dictionary_ *f, const char *subd, *val = iniparser_getint(f

Re: [Xenomai] analogy calibration issue(s)

2015-08-20 Thread Jorge Ramirez Ortiz
On 08/17/2015 07:22 AM, Yogi A. Patel wrote: > >>> diff --git a/lib/analogy/calibration.c b/lib/analogy/calibration.c >>> index b50cb2f..d062a00 100644 >>> --- a/lib/analogy/calibration.c >>> +++ b/lib/analogy/calibration.c >>> @@ -105,7 +105,10 @@ static inline int read_int(int *val, struct >>>