- From: Fabien Carrion <fabien_at_linux.utc.fr>
- Date: Mon, 15 Jul 2002 22:07:20 +0200
Hello, I'm doing a RTAI module, which use comedi with the ni-at-ao-10 as output card, and ni-mio16e as input card. I'm writing the code for the ni-at-ao card. So a task has an array of 10 numbers. I use the analog output subdevice (subdevice 0). I use the 10 channels of this device and The first number of the array in my task must be writing of the first channel. The second number of the second channel... I think that we can use an insn command. But I want to know, if The n of insn is different of zero and the data is a pointer of "n" sample_t data, will data be writing of "n" channels or only of 1 channel ? Indead, I want to be sure that a loop with the function comedi_data_read is the best solution. A last question, I don t understand how can I use range and aref in the comedi_data_read function Thanks for the help -- Fabien Carrion () Campagne du ruban ASCII -- Contre les mails en html /\ contre les pieces-jointes Microsoft
Received on 2002-07-15Z19:07:20