comedi_command_test: Device or resource busy

I am attempting to do streaming acquisition using a CIO-DAS1602 ISA card.  I 
get a command from comedi_get_cmd_generic_timed and modify it as follows:

cmd->chanlist = &ai_chan;
cmd->chanlist_len = 1;
cmd->start_src = TRIG_NOW;
cmd->start_arg = 0;
cmd->scan_begin_src = TRIG_FOLLOW;
cmd->scan_begin_arg = 0;
cmd->scan_end_src = TRIG_COUNT;
cmd->scan_end_arg = 1;
cmd->stop_src = TRIG_COUNT;
cmd->stop_arg = 400;

This works fine as shown, but if I increase stop_arg to 800 
comedi_command_test fails, and comedi_perror gives the Device busy message.  
Ideas?

Thanks in advance.
Russell Poyner

Received on 2006-04-28Z16:03:15