- From: Jeremiah Johnson <johns839_at_casews.com>
- Date: Fri, 17 Oct 2003 15:24:46 -0400
> hi jeremiah,
> i use a NI6071E with external triggers. i initially had problems
> too...if you describe your prob more specifically maybe i can help?
> cheers, jon
My code stops/blocks at this read().
<snip>
while(1){
ret=read(comedi_fileno(dev),buf,BUFSZ);
<snip>
All the previous comedi_command_test() calls are successful. I thought I
might be doing something wrong with setting up the command. The comedi
command is being set up like:
<snip>
cmd->subdev=0;
cmd->flags = 0;
cmd->start_src = TRIG_NOW;
cmd->start_arg = 0;
cmd->scan_begin_src = TRIG_EXT;
cmd->scan_begin_arg = 0 ;
cmd->convert_src = TRIG_TIMER;
cmd->convert_arg = 1;
cmd->scan_end_src = TRIG_COUNT;
cmd->scan_end_arg = n_chan;
cmd->stop_src = TRIG_COUNT;
cmd->stop_arg = n_scan;
cmd->chanlist = chanlist;
cmd->chanlist_len = n_chan;
<snip>
is this correct? I'm trying to read my channels every time I get an external
digital signal on PFI 0. There's only one trigger and I don't want a trigger
to initiate the scans. All channels should be read simultaneously. Thanks
for your help!
/Jeremiah
Received on 2003-10-17Z18:24:46