Frank Mori Hess
72c2c73a1e
Added comment about using gpct_encoder demo with 660x boards.
2008-08-20 00:27:16 +00:00
Frank Mori Hess
d7434f79bb
trivial change to a comment.
2008-02-08 18:23:05 +00:00
Frank Mori Hess
f6a4444de8
Switched to use comedi_to_physical instead of deprecated comedi_to_phys.
2008-02-08 16:23:36 +00:00
Frank Mori Hess
9a472f9f4a
Added some checking of return values for errors
2008-02-08 16:22:43 +00:00
Frank Mori Hess
a06bba542a
Added more INSN_CONFIG wrappers: comedi_get_clock_source(),
...
comedi_get_gate_source(), and comedi_get_routing(). Added "channel"
parameter to some of the INSN_CONFIG wrappers.
2008-01-23 18:56:52 +00:00
Frank Mori Hess
76791bfeed
Added comedi_set_filter() and comedi_set_routing() configuration
...
instruction wrappers.
2008-01-18 16:37:32 +00:00
Frank Mori Hess
64d656994a
Updated to use comedi_set_clock_source() wrapper.
2008-01-17 17:10:07 +00:00
Frank Mori Hess
4d07ce9969
Moved some wrappers for INSN_CONFIG instructions into comedilib.
...
Will add some reference documentation for the new functions soon.
2008-01-15 21:01:40 +00:00
Ian Abbott
0b21f80783
Avoid mixing declarations and code.
2007-12-10 13:20:19 +00: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
Ian Abbott
605fd55655
Fix use of INSN_GTOD so it works on 64-bit platforms.
...
A struct timeval is not the same size as a pair of lsampl_t's for 64-bit,
so can't point 'data' in a comedi_insn to a struct timeval and expect it
to work!
2007-11-07 13:01:50 +00:00
Frank Mori Hess
bf4a793f51
Fixed warning on 32 bit arch, caused by my fix for 64 bits.
2007-10-29 01:12:57 +00:00
Frank Mori Hess
464fb550cc
Fixed compile warning on amd64
2007-10-26 21:10:05 +00:00
Frank Mori Hess
aa782ffee1
Added blurb about do_waveform.
2007-08-14 13:21:47 +00:00
Frank Mori Hess
70dfd75dfb
Added digital output command demo.
2007-08-13 21:21:39 +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
e9f2536843
print subdevice too on command dumps.
2007-08-13 21:19:36 +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
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