- From: Dimitris Xydas <dxydas_at_yahoo.com>
- Date: Fri, 17 Aug 2007 07:50:51 -0700 (PDT)
Yes, I've just being trying that! Thx for the note on
data[0], that was really puzzling me. I tried making
an instruction list with a few instructions that would
output only data[0], but it didn't seem to vary the
output, even if a INSN_WAIT instruction was in between
the 2-3 writes. Also I tried the for loop this morning
and it worked with having a usleep(1) command, but the
output wave wasn't very reliable. Does anyone have any
references on how to pace the output? For example:
int h, flag;
for (h=1; h<100; h++)
{
flag =
comedi_data_write(cf,subdev,chan,range,aref,h*10);
//if (flag==1) printf("Write successful!\n");
usleep(1);
}*/
doesn't seem to produce a very reliable sawtooth!!
Thanks for the help again,
Dimitris
____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
Received on 2007-08-17Z13:50:51