Need to use stop_src=TRIG_NONE
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 9 Aug 2007 14:10:52 +0000 (14:10 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 9 Aug 2007 14:10:52 +0000 (14:10 +0000)
demo/gpct_buffered_counting.c

index 4bba317a2a29568eeb398e59346a9c765204c8f3..7ce69bf7e21ce830b0ccb4b300270edaea65bccc 100644 (file)
@@ -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;