Commit graph

152 commits

Author SHA1 Message Date
W. Trevor King
fe3cdd466b Add serial and PWM subdevice types to demo/python/info.py.
This catches it up for the folowing commits to the comedi repository:

  commit 311e9c540217d60bdf56a1dba9eafe474fd3b218
  Author: Bernd Porr <Bernd.Porr@f2s.com>
  Date:   Sun Jan 13 23:07:02 2008 +0000

    Added a proper PWM subdevice for comedi.

  commit 8092ed57ff38e1fcaf75a7e0bf3b8c4f5372f3d7
  Author: Frank Mori Hess <fmhess@speakeasy.net>
  Date:   Sat Jan 31 22:13:09 2004 +0000

    serial dio (SCXI) support from Caleb Tennis
2012-03-13 08:55:08 -04:00
W. Trevor King
4b56f24232 Add chanlist_len to comedi_get_cmd_generic_timed() calls in Python demos.
This catches the Python demos up to:

  commit 003b9ec501
  Author: Ian Abbott <abbotti@mev.co.uk>
  Date:   Mon Nov 8 11:01:42 2010 +0000

    Add chanlist_len parameter to comedi_get_cmd_generic_timed.
2012-03-13 08:41:24 -04:00
W. Trevor King
70eca90662 Add demo/python/insn.py, a Python clone of demo/insn.c. 2012-03-13 08:36:39 -04:00
Ian Abbott
b8a4f1a265 Added channel parameter to comedi_set_clock_source() and
comedi_get_clock_source().  Bumped library version to 0.10.0.
2010-03-19 13:44:56 +00:00
Ian Abbott
becded6ae0 Check subdevice type. 2009-08-13 11:16:04 +00:00
Ian Abbott
8a29362cd4 Use negative options.value to set up time as a duty cycle. 2009-08-13 11:09:05 +00:00
Ian Abbott
0038ed1467 Handle COMEDI_SUBD_PWM and check for future unknown subdevice types. 2008-11-05 11:40:42 +00:00
Frank Mori Hess
c13e19648b fixed typo in printf. 2008-09-04 21:24:42 +00:00
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