- From: Rafael Velez <velezcuartas_at_epm.net.co>
- Date: Thu, 18 Jul 2002 15:57:18 -0500
David Schleef wrote:
>On Thu, Jul 18, 2002 at 11:14:25AM -0500, Rafael Velez wrote:
>
>
>>I'm working in a PCIMIO 16 E4, the cmd.c example seems to work well but
>>when i connect a signal, the program shows wrong signals, the question
>>is what trigger is disabled in ni_pcimio.o when DMA is enabled???
>>
>>
>
>Actually, the documentation is slightly inaccurate. Notification
>at end-of-scan events (i.e., TRIG_WAKE_EOS) does not work, but
>otherwise, everything is the same. The cmd.c demo does not use
>end-of-scan events.
>
>
>
>dave...
>
>
>_______________________________________________
>comedi mailing list
>comedi_at_comedi.org
>https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>
>
>
Hi Dave, thanks for the answer i solved, i'm trying to convert the
samples in cmd.c to values of voltaje and modify the cmd.c like this
(only marked whit *):
.....
if(verbose)fprintf(stderr,"read %d %d\n",ret,total);
for(i=0;i<ret/2;i++){
*maxdata=comedi_get_maxdata(dev,subdevice,col);
*rangetype=comedi_get_range(dev,subdevice,i,range);
*voltaje=comedi_to_phys((lsampl_t)buf[i],rangetype,maxdata);
*printf("%2.2f ",voltaje);
col++;
if(col==n_chan){
printf("\n");
col=0;
....
I know that the error must be in comedi_get_range, but i was looking the
documentation and it says that it work only if de device is closed but
one argument is device???
Received on 2002-07-18Z19:57:18