Ian Abbott
80d809282c
demo: update demo programs to set read or write subdevice
...
Attempt to make the streaming command demos work if the specified
subdevice is not the default 'read' or 'write' subdevice (depending on
the direction of the command).
This uses the new comedi_set_read_subdevice() and
comedi_set_write_subdevice() functions.
Changing the read or write subdevice is currently supported only by the
Linux "in-tree" version of Comedi since kernel version 3.19.
2016-05-13 17:19:10 +01:00
Bernd Porr
74a1207a29
Added info that '-n' is used to select the waveform.
2012-05-02 18:40:07 +01:00
Ian Abbott
3464515b7d
Added blancmange curve.
2007-11-30 18:20:15 +00:00
Ian Abbott
92eb0d52bc
Selected waveform with -n. Shifted up sine wave if necessary. Added new
...
waveforms. Fixed cycloid. :-)
2007-11-30 16:02:30 +00:00
Ian Abbott
94ad4788d9
Support -c channel and -r range options.
2007-11-22 18:11:22 +00:00
Frank Mori Hess
aa946e4810
Be a little more correct by setting CMDF_WRITE flag, in preparation
...
for subdevices that support both input and output commands.
2007-08-13 21:20:35 +00:00
Frank Mori Hess
12389d30c3
Moved comedi_internal_trigger into common.c
2007-08-10 18:48:03 +00:00
Frank Mori Hess
0ec21b27ef
Removed some obsolete comments.
2007-08-10 17:50:59 +00:00
Frank Mori Hess
fbdf65b4f5
Made parse_options() write options to a struct instead of passing
...
them through global variables.
2007-01-03 21:14:53 +00:00
Frank Mori Hess
998c091e1e
doing a retry for the preload write is useless, since the command
...
hasn't started yet. Print a useful error message and exit instead.
2004-01-02 01:16:00 +00:00
Frank Mori Hess
054cade97f
made BUF_LEN larger, so boards with huge ao fifos (ni 67xx)
...
don't underrun when starting up.
2004-01-02 00:06:33 +00:00
Frank Mori Hess
ea64ba8daa
fixing includes for exit(), memset() for gcc 2.96 compiler warnings
2003-01-01 23:07:02 +00:00
Frank Mori Hess
5685d1ae2b
increased BUF_LEN, so demo works better with ni boards
2002-11-22 21:45:05 +00:00
David Schleef
5dae30af2f
add some error checking
2002-09-25 01:11:47 +00:00
David Schleef
f3ef54ca5c
Handles range,maxdata information correctly. Internal triggering works.
2002-06-07 00:16:42 +00:00
Frank Mori Hess
303d9e7ff1
fix INTTRIG insn
2002-05-22 16:44:42 +00:00
David Schleef
e3ab787c66
Added multi-channel support
2002-03-18 22:11:32 +00:00
Frank Mori Hess
a6f0492b24
fixed bug that I did that was noted by allan willcox
2001-08-31 23:19:52 +00:00
Frank Mori Hess
ea27e98235
modified to work with TRIG_INT, made it use the -F command line option to
...
set update frequency
2001-08-24 19:08:55 +00:00
David Schleef
a00960e008
Remove commented stuff
2001-07-15 19:56:31 +00:00
Frank Mori Hess
e252726146
made ao_waveform use same parse_options() as other demos
2001-06-27 19:51:11 +00:00
Frank Mori Hess
3e2756029e
removed outdated lseek stuff
2001-05-14 00:06:37 +00:00
David Schleef
01a017f515
5 new demos
...
cmd uses main.c
removal of direct ioctl calls
2001-03-01 21:57:00 +00:00
David Schleef
65ccd0d6c0
bugfix
2001-01-23 18:22:24 +00:00
David Schleef
79a511162d
Cleanup of example programs
2000-10-19 06:28:27 +00:00
David Schleef
748980971d
many random changes
2000-05-27 00:56:45 +00:00
David Schleef
b4bba38d0f
Initial revision
2000-02-02 05:14:23 +00:00