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
37aeec001c
Need to use stop_src=TRIG_NONE
2007-08-09 14:10:52 +00:00
Frank Mori Hess
c1082cee65
Fixed comedi_get_cmd_generic_timed() by adding a chanlist_len
...
parameter. Old version is still available in library, thanks to the
magic of the version_script.
2007-08-02 19:46:44 +00:00
Frank Mori Hess
3d1ae7facd
Removed duplicate declaration.
2007-08-02 18:44:39 +00:00
Frank Mori Hess
50f11c17b8
Added some sanity checks, and made it use the read subdev by default
...
if no "-s" command line option is given.
2007-07-16 15:00:28 +00:00
Frank Mori Hess
a7d0851c85
Forgot to add file for new demo.
2007-07-16 12:46:38 +00:00
Frank Mori Hess
ecceacdc81
Added NI GPCT buffered counting example.
2007-07-13 20:31:50 +00:00
Frank Mori Hess
81d55d2a52
New demo program.
2007-07-12 14:57:08 +00:00
Frank Mori Hess
1a4e7fe192
Initialize counter value to zero.
2007-07-11 18:26:53 +00:00
Frank Mori Hess
1299e25cf4
Added a comment.
2007-07-11 18:26:32 +00:00
Frank Mori Hess
44d6175e7c
Removed unused variable.
2007-07-10 14:26:30 +00:00
Frank Mori Hess
7e3d88314b
Cleaned up mixing of spaces/tabs for indentation probably done by emacs.
2007-07-10 14:11:32 +00:00
Frank Mori Hess
a78711414a
Removed some dead code.
2007-07-10 14:08:07 +00:00
Frank Mori Hess
9804a8c81d
Demo program for quadrature encoder counting with NI GPCT, from
...
Anders Blomdell <anders.blomdell@control.lth.se>
2007-06-28 01:22:38 +00:00
Frank Mori Hess
6a0fc4a5e5
Added new gpct_simple_counting demo (shares some code with
...
gpct_pulse_generator demo through common.c).
2007-01-08 21:53:59 +00:00
Frank Mori Hess
f80c83a1d0
Print large unsigned values correctly (not as negative numbers) for
...
subdevice with 32 bit values.
2007-01-08 20:56:24 +00:00
Frank Mori Hess
8db3fa8f47
Added brief description of choose_routing demo.
2007-01-05 21:15:00 +00:00
Frank Mori Hess
daf810a110
Added gpct_pulse_generator demo.
2007-01-05 21:09:28 +00:00
Frank Mori Hess
c1995338a1
print max data value as unsigned value instead of signed, so 32 bit
...
counters show proper max value (instead of -1).
2007-01-05 19:35:14 +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
c7a581399a
Added a sentence to ao_waveform description.
2007-01-03 15:44:51 +00:00
Frank Mori Hess
8ee6219b64
Removed some C99-isms (mixed code and declarations)
2007-01-03 15:43:06 +00:00
Frank Mori Hess
4cdf1b09a9
Added choose_clock and choose_routing demo programs. Synced comedi.h
...
with comedi. Made dio demo simply configure the line direction based
on the command line argument.
2006-10-23 19:35:24 +00:00
Ian Abbott
c17577318d
Applied patch from David MacMahon <davidm -at- astro -dot- berkeley -dot- edu>.
...
Adds physical units support to comedilib demo programs.
I changed one of the format strings to help line up values better in the
'cmd' example.
2006-07-20 11:51:54 +00:00
Ian Abbott
d349d2e12b
Use comedi_perror to report error if comedi_open fails, and exit with exit
...
code 1.
2006-07-13 17:06:33 +00:00
Ian Abbott
761ffc3e90
Applied (slightly modified) patch from David MacMahon
...
<davidm -at- astro -dot- berkeley -dot- edu>.
Reports specific error string (strerror(errno)) if comedi_open fails (I
changed the format slightly from David's).
Displays subdevice flags as a hexadecimal number.
2006-07-13 12:43:14 +00:00
Frank Mori Hess
44d71a63cf
Patch from abbotti@mev.co.uk (Ian Abbott):
...
Fixes compile error with gcc 2.96.
2006-05-02 02:09:02 +00:00
Frank Mori Hess
caedc7bf15
Made cmd demo work with SDF_LSAMPL subdevices.
2005-12-28 17:11:35 +00:00
Frank Mori Hess
55147aef5c
info is board_info now
2005-03-13 17:04:47 +00:00
Frank Mori Hess
8e115ae15b
fix name collision with automake 1.9
2005-03-12 21:11:01 +00:00
Frank Mori Hess
545b9420d5
added some error checks
2005-02-24 20:46:56 +00:00
Frank Mori Hess
5d4729b9ec
mmap works for output waveforms now.
2005-01-23 03:11:30 +00:00
Frank Mori Hess
8f06878f5d
mark initial buffer contents as written, remove some unused variables,
...
fixed buffer overrun
2005-01-22 14:31:20 +00:00
Frank Mori Hess
99c8d0b5f1
added memory mapped ao waveform demo (untested)
2005-01-17 20:20:26 +00:00
Frank Mori Hess
8be0408187
add serial dio subdevice type
2004-02-29 16:49:29 +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
David Schleef
8e2cd55f24
fix warnings
2003-08-16 23:18:07 +00:00
David Schleef
bd414e5a57
add #! line
2003-06-04 02:54:41 +00:00
David Schleef
cbc88ac621
Add python examples from Luc Lefebvre <luc.lefebvre@mcgill.ca>
2003-06-04 02:53:45 +00:00
Frank Mori Hess
fa4100f9a3
use CR_EDGE and CR_INVERT constants instead of magic numbers
2003-05-24 21:15:06 +00:00
David Schleef
8ab858452b
autoconfiscate
2003-05-02 07:53:44 +00:00
David Schleef
98801148b9
demos should be nodist
2003-05-02 07:52:24 +00:00
David Schleef
b28c52a42f
autoconfiscation
2003-05-02 07:19:00 +00:00
Frank Mori Hess
bf1b81075e
added apply_cal demo
2003-04-22 00:04:14 +00:00
Frank Mori Hess
26769e5635
set default n_scan value to 10 for insn demo, added check that it is
...
not set larger than MAX_SAMPLES
2003-03-05 17:01:34 +00:00
Frank Mori Hess
9d4aa91837
include string.h for memset()
2003-01-01 23:08:07 +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
55e46d503d
fix compiler warning
2002-12-31 01:13:13 +00:00