Increased maximum length of channel list for AI command to 256 to allow
authorIan Abbott <abbotti@mev.co.uk>
Fri, 23 Nov 2007 15:05:16 +0000 (15:05 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 23 Nov 2007 15:05:16 +0000 (15:05 +0000)
a repeated subsequence of channels to be used with a reasonable number
of repeats.  Can't make the maximum length too long or the generation of
N pulses using a monostable as a gate would generate too many pulses in
some circumstances.

comedi/drivers/amplc_pci230.c

index 1705167ccf9cfedded4958c32918314154cd2870..c0f630195a214600deabb386665c4394eded9a37 100644 (file)
@@ -639,7 +639,7 @@ static int pci230_attach(comedi_device * dev, comedi_devconfig * it)
        s->maxdata = (1 << thisboard->ai_bits) - 1;
        s->range_table = &pci230_ai_range;
        s->insn_read = &pci230_ai_rinsn;
-       s->len_chanlist = thisboard->ai_chans;
+       s->len_chanlist = 256;  /* but there are restrictions. */
        /* Only register commands if the interrupt handler is installed. */
        if (irq_hdl == 0) {
                dev->read_subdev = s;