From: Frank Mori Hess Date: Thu, 9 Aug 2007 14:10:52 +0000 (+0000) Subject: Need to use stop_src=TRIG_NONE X-Git-Tag: r0_8_1~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37aeec001c20d26ed10830e012173bcf51eb10ea;p=comedilib.git Need to use stop_src=TRIG_NONE --- diff --git a/demo/gpct_buffered_counting.c b/demo/gpct_buffered_counting.c index 4bba317..7ce69bf 100644 --- a/demo/gpct_buffered_counting.c +++ b/demo/gpct_buffered_counting.c @@ -120,7 +120,6 @@ int ni_gpct_send_command(comedi_t *device, unsigned subdevice, unsigned n_counts memset(&cmd, 0, sizeof(cmd)); cmd.subdev = subdevice; cmd.flags = 0; - cmd.flags |= TRIG_WAKE_EOS; /* Wake up at the end of every scan, reduces latency for slow data streams. Turn off for more efficient throughput. */ cmd.flags |= TRIG_WAKE_EOS; @@ -134,8 +133,8 @@ int ni_gpct_send_command(comedi_t *device, unsigned subdevice, unsigned n_counts cmd.convert_arg = 0; cmd.scan_end_src = TRIG_COUNT; cmd.scan_end_arg = num_chan; - cmd.stop_src = TRIG_COUNT; - cmd.stop_arg = n_counts; + cmd.stop_src = TRIG_NONE; + cmd.stop_arg = 0; cmd.chanlist = chanlist; cmd.chanlist_len = num_chan; chanlist[0] = 0;