(no subject)

> 	To all,
> 
> 	I have a NI-6023E card. I was able to get comedi driver to install (
> after tweaking then Makefile ) for Redhat 8.0.  However I now seen to have
> a problem getting a simple program to work, using the comidilib.  What I
> need is a routine that will read all 16 A/D ports.  This routine I will
> call at a rate between 100-500 Hz. When I call the routine, I just want to
> read the channels then, and there.  I can get the card to read once, but
> on the next call I get resource busy. I include a cut of my command
> preparation below.  What am I doing wrong.  If you have anycode that will
> just can the 16 channels, and be called as fast as you want, could you
> please post ! If you need a complete listing I will send it.
> 
>      Thanks,
> 	Allen
> 
> cmd->start_src =	TRIG_NOW;
> cmd->start_arg =	0;
> cmd->scan_begin_src =	TRIG_TIMER;
> cmd->scan_begin_arg =  80000;
> cmd->convert_src =	TRIG_TIMER; // tried both _TIMER and _NOW
> cmd->convert_arg =	1;
> cmd->stop_src =		TRIG_COUNT;
> cmd->stop_arg =		1;          // number of scans
> cmd->chanlist =		chanlist;
> cmd->chanlist_len =	16;         // number of channels
> 

Received on 2003-05-22Z12:13:58