Re: test with the ni_6527 Driver

On Fri, Jun 06, 2003 at 12:31:46PM +0200, Markus Dostal wrote:
>  First, I have seen in the "comedi/comedi/Cinfig.in" File the new symbol
>  "CONFIG_COMEDI_NI_6527". This Modul must also used with the mite Modul!
>  Therefore it must insert the folowing text:

fixed.

> The Port_Register makro have 0 as operation value in all three lines. Line
> to line it must be 0, 1 and 2.

fixed.

>  In the function "ni6527_attach" (in file ni_6527.c) I have found a bug:
> The function fill three subdevice structs but the "n_subdevices" variable is
> set with 2. I have set the variable with 3.

fixed.

>  How can I use the "ni6527_di_insn_config" function? The function
> "comedi_dio_config" can not be used but the insn->data have only one
> element. Must I use in following way?

Your code looks correct.  insn.data[1] is the filter time, in
nanoseconds.  It gets rounded to a multiple of 200, since the
hardware supports filter times of 200 ns, 400 ns, etc.

>  In the function "ni6527_di_insn_config" I have seen the following lines:

fixed.

>  I have made a test with an PCI-6527 Board (without Filter config). With the
> modification in "ni6527_di_insn_bits" and "ni6527_attach" it was successful.
> All digital inputs and outputs works.

cool.



dave...

Received on 2003-06-06Z17:57:46