From 303d9e7ff15b56ab6d36519adffa991ff85ba915 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 22 May 2002 16:44:42 +0000 Subject: [PATCH] fix INTTRIG insn --- demo/ao_waveform.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/demo/ao_waveform.c b/demo/ao_waveform.c index 09a17fc..6fcb30b 100644 --- a/demo/ao_waveform.c +++ b/demo/ao_waveform.c @@ -93,6 +93,7 @@ int main(int argc, char *argv[]) int total=0; comedi_t *dev; unsigned int chanlist[16]; + lsampl_t insn_data = 0; parse_options(argc,argv); @@ -147,7 +148,15 @@ int main(int argc, char *argv[]) memset(&insn, 0, sizeof(comedi_insn)); insn.insn = INSN_INTTRIG; insn.subdev = subdevice; - comedi_do_insn(dev, &insn); + insn.n = 1; + insn.data = &insn_data; + insn.data[ 0 ] = 0; + err = comedi_do_insn(dev, &insn); + if( err < 0 ) + { + perror("comedi_do_insn()"); + abort(); + } while(1){ dds_output(data,BUF_LEN); -- 2.26.2