Re: NI 6601 DIOs

>    Sorry for the insistence... has anybody tried the NI 6601 board with
> comedi? Do all its 32 DIO lines work properly?

You could have found this out yourself, couldn't you?

        /* DIGITAL I/O SUBDEVICE */
         s->type   = COMEDI_SUBD_DIO;
         s->subdev_flags = SDF_READABLE|SDF_WRITABLE;
         s->n_chan       = 8; // Only using 8 bits for now, instead of
         32!!
         s->maxdata      = 1;
         s->range_table  = &range_digital;
         /* (Copied from skel.c) DIO devices are slightly special.
         Although
         * it is possible to implement the insn_read/insn_write
         interface,
         * it is much more useful to applications if you implement the
         * insn_bits interface.  This allows packed reading/writing of
         the
         * DIO channels.  The comedi core can convert between insn_bits
         and
         * insn_read/write */
         // Not implemented yet
         s->insn_bits    = ni_660x_dio_insn_bits;
         s->insn_config  = ni_660x_dio_insn_config;
         s->io_bits      = 0;     /* all bits default to input */

Klaas

Received on 2006-06-02Z10:03:54