Hello again !
I am kind of stuck right now, anybody has an idea regarding my post ?
Anyone able to help ?

Thanks in advance,

Hadrien


On Thu, Dec 8, 2011 at 3:36 PM, Hadrien Caron <hadrien.ca...@gmail.com>wrote:

> Hello again to all,
>
> I have been trying to look at the problem and finding it's source
> following the various advice you gave me.
> My problem is still trying to use the DIO channels of my NI-DAQ card
>
> I updated my xenomai configuration :
>
> xenomai 2.6.0
> ubuntu 10.10 kernel 2.6.38-8
>
> with a NI-Daq card : PCI-6221
>
> --------------------
> $ lspci | grep National
> 06:05.0 Unassigned class [ff00]: National Instruments Device 71bc
> --------------------
> 71bc is the device_id of pci-6221_37pin according to pcimio.c . . . So to
> me this is a good sign and that means that the device is well recognised.
> But in the header of pcimio.c I see :
>   "- Digital I/O may not work on 673x.
>  * - Information (number of channels, bits, etc.) for some devices may
>  *   be incorrect.  Please check this and submit a bug if there are
>  *   problems for your device"
>
> So I am starting to be afraid that there might be a bug and that the
> information for my device is not accurate (even though the issue reported
> is not about my card).
>
> Furthermore, I tried using the cmd_bits program to use the DIO channels.
>
> First, here is the content of my 00-analogy_ni_pcimio file :
> jb@T3500:/proc/analogy$ cat 00-analogy_ni_pcimio
> --  Subdevices --
>
> | idx | type
> |  00 | Analog input subdevice
> |  01 | Analog output subdevice
> |  02 | Digital input/output subdevice
> |  03 | Unused subdevice
> |  04 | Unused subdevice
> |  05 | Calibration subdevice
> |  06 | Memory subdevice
> |  07 | Digital input/output subdevice
> |  08 | Unused subdevice
> |  09 | Serial subdevice
> |  10 | Unused subdevice
> |  11 | Counter subdevice
> |  12 | Counter subdevice
> |  13 | Counter subdevice
>
> jb@T3500:/usr/xenomai/bin$ sudo ./cmd_bits -d analogy0 -s 1
> cmd_bits: selected subdevice is not digital
>
> # Which seems normal : idx 1 is for analog Output. But if I use "-s 2" or
> "-s 7" I get :
>
> jb@T3500:/usr/xenomai/bin$ sudo ./cmd_bits -d analogy0 -s 7
> cmd_bits: a4l_snd_command failed (err=-5)
>
> thant I used the errno.sh tool :
> ./errno.sh 5
> #define    EIO         5    /* I/O error */
>
> and in the Xenomai API documentation I read about a4l_snd_command :
> -EIO is returned if the selected subdevice cannot handle command
>
> So I am not sure what to make up of all this. I feel like there is a
> problem with the implementation
> of analogy_pcmio for my NI-DAQ card. If this is the case, I would be happy
> (to at least try) to fix it myself (with a little help to get myself
> started maybe ^^), or do you think the problem is elsewhere ?
>
> Thank you very much for reading this :)
>
> Sincerely,
>
> Hadrien
>
>
> On Wed, Nov 23, 2011 at 10:53 AM, Hadrien Caron 
> <hadrien.ca...@gmail.com>wrote:
>
>> I use Xenomai 2.5.6 with drivers nipcimio. Should I try it with the
>> latest 2.6 version ?
>>
>> Thanks again for all your ideas !
>>
>> Hadrien
>>
>>
>> On Wed, Nov 23, 2011 at 9:44 AM, Gilles Chanteperdrix <
>> gilles.chanteperd...@xenomai.org> wrote:
>>
>>> On 11/22/2011 11:33 PM, Alexis Berlemont wrote:
>>> > On Tue, Nov 22, 2011 at 2:43 PM, Hadrien Caron <
>>> hadrien.ca...@gmail.com> wrote:
>>> >> Alexis : yes I am using the Analogy drivers . . . Would that mean that
>>> >> analog output is implemented but not digital output for National
>>> Instrument
>>> >> acquisition cards ? Has someone tried this already ? Seems strange
>>> that
>>> >> analog output would be implemented but not digital.
>>> >>
>>> >> Anders : Ok ! I will look into rebulding my xenomai installation then
>>> !
>>> >
>>> > According to the thread:
>>> > [Xenomai-core] Problems with gcc 4.6.0 (rt_task_shadow fails with
>>> ENOSYS)
>>> > https://mail.gna.org/public/xenomai-core/2011-07/msg00010.html
>>> > The problem related by Anders Blomdell is supposed to be fixed with
>>> > the 2.6 release, isn't it?
>>> >
>>> > Could you tell us which version of Xenomai and which driver
>>> > (ni_pcimio, ...) you are using?
>>>
>>> Hi,
>>>
>>> the problem is not fixed, we can not compile xenomai without frame
>>> pointers.
>>>
>>> --
>>>                                                                Gilles.
>>>
>>
>>
>
_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to