comedilib.git
17 years agoFixed warning on 32 bit arch, caused by my fix for 64 bits.
Frank Mori Hess [Mon, 29 Oct 2007 01:12:57 +0000 (01:12 +0000)]
Fixed warning on 32 bit arch, caused by my fix for 64 bits.

17 years agoRegenerated ChangeLog with "cvs2cl -t" for 0.8.1 release. r0_8_1
Frank Mori Hess [Mon, 29 Oct 2007 01:01:26 +0000 (01:01 +0000)]
Regenerated ChangeLog with "cvs2cl -t" for 0.8.1 release.

17 years agoBumped version for 0.8.1 release.
Frank Mori Hess [Mon, 29 Oct 2007 00:59:29 +0000 (00:59 +0000)]
Bumped version for 0.8.1 release.

17 years agosynced with comedi.
Frank Mori Hess [Mon, 29 Oct 2007 00:58:41 +0000 (00:58 +0000)]
synced with comedi.

17 years agoFixed compile warning on amd64
Frank Mori Hess [Fri, 26 Oct 2007 21:10:05 +0000 (21:10 +0000)]
Fixed compile warning on amd64

17 years agoMoved EXTRA_DIST outside of conditionals.
Frank Mori Hess [Sun, 21 Oct 2007 20:05:13 +0000 (20:05 +0000)]
Moved EXTRA_DIST outside of conditionals.

17 years agoSynced with comedi.
Frank Mori Hess [Wed, 17 Oct 2007 20:17:43 +0000 (20:17 +0000)]
Synced with comedi.

17 years agoAdded comedi_iostream.hpp to include_HEADERS
Frank Mori Hess [Wed, 17 Oct 2007 20:12:41 +0000 (20:12 +0000)]
Added comedi_iostream.hpp to include_HEADERS

17 years agoAdded dio_config and dio_bitfield2 to c++ binding.
Frank Mori Hess [Mon, 15 Oct 2007 19:37:50 +0000 (19:37 +0000)]
Added dio_config and dio_bitfield2 to c++ binding.

17 years agoPatch from steven.jenkins@ieee.org (Steven Jenkins):
Frank Mori Hess [Mon, 15 Oct 2007 00:02:49 +0000 (00:02 +0000)]
Patch from steven.jenkins@ieee.org (Steven Jenkins):

The SWIG interface file (swig/comedi.i) is out of date with respect to comedi.h
and comedilib.h. I've attempted to make it current by applying most of the
changes since 1.22 (both headers).

My ability to test is limited. The swig/ruby/demo/cmd application runs
successfully using the comedi_test device. The python extension library
compiles, but that's as far as I've taken it.

17 years agoAdded comedi::istream and ostream classes, to provide slightly higher
Frank Mori Hess [Fri, 12 Oct 2007 21:24:11 +0000 (21:24 +0000)]
Added comedi::istream and ostream classes, to provide slightly higher
level ostream::write() and istream::read() functions for transferring
data during commands.

17 years agoAdded default constructor for comedi::subdevice, and added missing wrapper
Frank Mori Hess [Fri, 12 Oct 2007 21:22:05 +0000 (21:22 +0000)]
Added default constructor for comedi::subdevice, and added missing wrapper
for comedi_cancel().

17 years agoSync with comedi.
Frank Mori Hess [Fri, 28 Sep 2007 19:02:02 +0000 (19:02 +0000)]
Sync with comedi.

17 years agoAdded C++ binding.
Frank Mori Hess [Mon, 27 Aug 2007 21:46:35 +0000 (21:46 +0000)]
Added C++ binding.

17 years agoGot rid of redundant EXTRA_DIST
Frank Mori Hess [Mon, 27 Aug 2007 20:32:07 +0000 (20:32 +0000)]
Got rid of redundant EXTRA_DIST

17 years agoPatch from Tobias Blaser <tblaser@freesurf.ch>:
Frank Mori Hess [Sun, 19 Aug 2007 18:39:03 +0000 (18:39 +0000)]
Patch from Tobias Blaser <tblaser@freesurf.ch>:

Here is a patch to CVS which adds the DESTDIR variable to the installation
rules in the comedilib doc Makefile. Convenient when creating packages.

17 years agoGave libscxi independent version info from libcomedi. Removed
Frank Mori Hess [Sun, 19 Aug 2007 18:30:26 +0000 (18:30 +0000)]
Gave libscxi independent version info from libcomedi.  Removed
attempt to link to libcomedi when building libscxi.

17 years agoAdded blurb about do_waveform.
Frank Mori Hess [Tue, 14 Aug 2007 13:21:47 +0000 (13:21 +0000)]
Added blurb about do_waveform.

17 years agoAdded digital output command demo.
Frank Mori Hess [Mon, 13 Aug 2007 21:21:39 +0000 (21:21 +0000)]
Added digital output command demo.

17 years agoBe a little more correct by setting CMDF_WRITE flag, in preparation
Frank Mori Hess [Mon, 13 Aug 2007 21:20:35 +0000 (21:20 +0000)]
Be a little more correct by setting CMDF_WRITE flag, in preparation
for subdevices that support both input and output commands.

17 years agoprint subdevice too on command dumps.
Frank Mori Hess [Mon, 13 Aug 2007 21:19:36 +0000 (21:19 +0000)]
print subdevice too on command dumps.

17 years agosynced with comedi.
Frank Mori Hess [Mon, 13 Aug 2007 21:18:47 +0000 (21:18 +0000)]
synced with comedi.

17 years agoMoved comedi_internal_trigger into common.c
Frank Mori Hess [Fri, 10 Aug 2007 18:48:03 +0000 (18:48 +0000)]
Moved comedi_internal_trigger into common.c

17 years agoRemoved some obsolete comments.
Frank Mori Hess [Fri, 10 Aug 2007 17:50:59 +0000 (17:50 +0000)]
Removed some obsolete comments.

17 years agoNeed to use stop_src=TRIG_NONE
Frank Mori Hess [Thu, 9 Aug 2007 14:10:52 +0000 (14:10 +0000)]
Need to use stop_src=TRIG_NONE

17 years agoDefault buffer sizes are actually 64k now.
Frank Mori Hess [Tue, 7 Aug 2007 20:59:24 +0000 (20:59 +0000)]
Default buffer sizes are actually 64k now.

17 years agoFixed comedi_get_cmd_generic_timed() by adding a chanlist_len
Frank Mori Hess [Thu, 2 Aug 2007 19:46:44 +0000 (19:46 +0000)]
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.

17 years agosync with comedi
Frank Mori Hess [Thu, 2 Aug 2007 19:43:04 +0000 (19:43 +0000)]
sync with comedi

17 years agoRemoved duplicate declaration.
Frank Mori Hess [Thu, 2 Aug 2007 18:44:39 +0000 (18:44 +0000)]
Removed duplicate declaration.

17 years agoBlah, a fresh cvs checkout does need a couple command-line options to
Frank Mori Hess [Tue, 31 Jul 2007 19:51:53 +0000 (19:51 +0000)]
Blah, a fresh cvs checkout does need a couple command-line options to
autoreconf, so put autogen.sh back in.

17 years agoAutogenerated ChangeLog using "cvs2cl -t" v0_8_0
Frank Mori Hess [Tue, 31 Jul 2007 17:47:49 +0000 (17:47 +0000)]
Autogenerated ChangeLog using "cvs2cl -t"

17 years agoGot rid of doccomedilib, use "configure --docdir=blah" and related
Frank Mori Hess [Tue, 31 Jul 2007 17:43:18 +0000 (17:43 +0000)]
Got rid of doccomedilib, use "configure --docdir=blah" and related
options.  Fixed some problems with "make distcheck".

17 years agoautogen.sh is gone.
Frank Mori Hess [Tue, 31 Jul 2007 17:38:15 +0000 (17:38 +0000)]
autogen.sh is gone.

17 years agoGot rid of autogen.sh, and just tell people to run autoreconf.
Frank Mori Hess [Tue, 31 Jul 2007 14:50:47 +0000 (14:50 +0000)]
Got rid of autogen.sh, and just tell people to run autoreconf.

17 years agoAdded AUTHORS list to comedilib.
Frank Mori Hess [Tue, 31 Jul 2007 14:47:27 +0000 (14:47 +0000)]
Added AUTHORS list to comedilib.

17 years agoTook comedi_dio_bitfield out of _COMEDILIB_DEPRECATED for release,
Frank Mori Hess [Tue, 31 Jul 2007 14:27:21 +0000 (14:27 +0000)]
Took comedi_dio_bitfield out of _COMEDILIB_DEPRECATED for release,
until bindings are updated.

17 years agosynced with comedi
Frank Mori Hess [Tue, 31 Jul 2007 14:20:44 +0000 (14:20 +0000)]
synced with comedi

17 years agoActually, according to current:revision:age practice, the next
Frank Mori Hess [Tue, 31 Jul 2007 02:44:29 +0000 (02:44 +0000)]
Actually, according to current:revision:age practice, the next
release should be 0.8.0 since new functions have been added since
0.7.22.

17 years agoFixed up AC_INIT and AM_INIT_AUTOMAKE parameters.
Frank Mori Hess [Tue, 31 Jul 2007 02:29:58 +0000 (02:29 +0000)]
Fixed up AC_INIT and AM_INIT_AUTOMAKE parameters.

17 years agoMove to current:revision:age discipline for library version numbers.
Frank Mori Hess [Tue, 31 Jul 2007 02:21:24 +0000 (02:21 +0000)]
Move to current:revision:age discipline for library version numbers.
Bumped version for next release.

17 years agoSynced with comedi.
Frank Mori Hess [Mon, 30 Jul 2007 03:50:30 +0000 (03:50 +0000)]
Synced with comedi.

17 years agoAdded mention of comedi_calibrate and comedi-nonfree-firmware tarballs.
Frank Mori Hess [Mon, 30 Jul 2007 03:26:57 +0000 (03:26 +0000)]
Added mention of comedi_calibrate and comedi-nonfree-firmware tarballs.

17 years agosynced with comedi
Ian Abbott [Tue, 24 Jul 2007 13:50:45 +0000 (13:50 +0000)]
synced with comedi

17 years agoAdd calib_lex.h to noinst_HEADERS.
Ian Abbott [Tue, 24 Jul 2007 13:38:14 +0000 (13:38 +0000)]
Add calib_lex.h to noinst_HEADERS.

17 years agoAdd closing tags for <glosssee> and <glossseealso>.
Ian Abbott [Tue, 24 Jul 2007 13:06:40 +0000 (13:06 +0000)]
Add closing tags for <glosssee> and <glossseealso>.

17 years agoSynced with comedi.
Frank Mori Hess [Mon, 16 Jul 2007 15:01:06 +0000 (15:01 +0000)]
Synced with comedi.

17 years agoAdded some sanity checks, and made it use the read subdev by default
Frank Mori Hess [Mon, 16 Jul 2007 15:00:28 +0000 (15:00 +0000)]
Added some sanity checks, and made it use the read subdev by default
if no "-s" command line option is given.

17 years agoCorrected comments describing read_subdevice and write_subdevice members
Frank Mori Hess [Mon, 16 Jul 2007 14:01:40 +0000 (14:01 +0000)]
Corrected comments describing read_subdevice and write_subdevice members
of comedi_devinfo

17 years agoForgot to add file for new demo.
Frank Mori Hess [Mon, 16 Jul 2007 12:46:38 +0000 (12:46 +0000)]
Forgot to add file for new demo.

17 years agoSync with comedi.
Frank Mori Hess [Fri, 13 Jul 2007 20:32:43 +0000 (20:32 +0000)]
Sync with comedi.

17 years agoAdded NI GPCT buffered counting example.
Frank Mori Hess [Fri, 13 Jul 2007 20:31:50 +0000 (20:31 +0000)]
Added NI GPCT buffered counting example.

17 years agoNew demo program.
Frank Mori Hess [Thu, 12 Jul 2007 14:57:08 +0000 (14:57 +0000)]
New demo program.

17 years agosync with comedi
Frank Mori Hess [Thu, 12 Jul 2007 14:56:21 +0000 (14:56 +0000)]
sync with comedi

17 years agoInitialize counter value to zero.
Frank Mori Hess [Wed, 11 Jul 2007 18:26:53 +0000 (18:26 +0000)]
Initialize counter value to zero.

17 years agoAdded a comment.
Frank Mori Hess [Wed, 11 Jul 2007 18:26:32 +0000 (18:26 +0000)]
Added a comment.

17 years agoRemoved unused variable.
Frank Mori Hess [Tue, 10 Jul 2007 14:26:30 +0000 (14:26 +0000)]
Removed unused variable.

17 years agoCleaned up mixing of spaces/tabs for indentation probably done by emacs.
Frank Mori Hess [Tue, 10 Jul 2007 14:11:32 +0000 (14:11 +0000)]
Cleaned up mixing of spaces/tabs for indentation probably done by emacs.

17 years agoRemoved some dead code.
Frank Mori Hess [Tue, 10 Jul 2007 14:08:07 +0000 (14:08 +0000)]
Removed some dead code.

17 years agoDemo program for quadrature encoder counting with NI GPCT, from
Frank Mori Hess [Thu, 28 Jun 2007 01:22:38 +0000 (01:22 +0000)]
Demo program for quadrature encoder counting with NI GPCT, from
Anders Blomdell <anders.blomdell@control.lth.se>

17 years agoAdded a line which sets the permissions to 0666 for all /dev/comedi devices.
Bernd Porr [Thu, 24 May 2007 10:51:17 +0000 (10:51 +0000)]
Added a line which sets the permissions to 0666 for all /dev/comedi devices.

17 years agoRemoved autogenerated file from cvs.
Frank Mori Hess [Sun, 29 Apr 2007 18:40:28 +0000 (18:40 +0000)]
Removed autogenerated file from cvs.

17 years agoUsed AC_ARG_WITH for udev as suggested by frank.
Bernd Porr [Sat, 28 Apr 2007 00:24:42 +0000 (00:24 +0000)]
Used AC_ARG_WITH for udev as suggested by frank.

17 years agoSilenced automake 1.10 warning.
Frank Mori Hess [Tue, 24 Apr 2007 20:22:53 +0000 (20:22 +0000)]
Silenced automake 1.10 warning.

17 years agoAdded udev support.
Bernd Porr [Mon, 23 Apr 2007 22:20:09 +0000 (22:20 +0000)]
Added udev support.

17 years agoFixed compile warning under gcc 4.1.2
Frank Mori Hess [Wed, 18 Apr 2007 14:04:39 +0000 (14:04 +0000)]
Fixed compile warning under gcc 4.1.2

17 years agosynced with comedi.
Frank Mori Hess [Mon, 26 Feb 2007 17:24:24 +0000 (17:24 +0000)]
synced with comedi.

17 years agosynced with comedi.
Frank Mori Hess [Mon, 8 Jan 2007 21:54:15 +0000 (21:54 +0000)]
synced with comedi.

17 years agoAdded new gpct_simple_counting demo (shares some code with
Frank Mori Hess [Mon, 8 Jan 2007 21:53:59 +0000 (21:53 +0000)]
Added new gpct_simple_counting demo (shares some code with
gpct_pulse_generator demo through common.c).

17 years agoPrint large unsigned values correctly (not as negative numbers) for
Frank Mori Hess [Mon, 8 Jan 2007 20:56:24 +0000 (20:56 +0000)]
Print large unsigned values correctly (not as negative numbers) for
subdevice with 32 bit values.

17 years agoAdded brief description of choose_routing demo.
Frank Mori Hess [Fri, 5 Jan 2007 21:15:00 +0000 (21:15 +0000)]
Added brief description of choose_routing demo.

17 years agoAdded gpct_pulse_generator demo.
Frank Mori Hess [Fri, 5 Jan 2007 21:09:28 +0000 (21:09 +0000)]
Added gpct_pulse_generator demo.

17 years agosynced with comedi
Frank Mori Hess [Fri, 5 Jan 2007 20:39:17 +0000 (20:39 +0000)]
synced with comedi

17 years agoprint max data value as unsigned value instead of signed, so 32 bit
Frank Mori Hess [Fri, 5 Jan 2007 19:35:14 +0000 (19:35 +0000)]
print max data value as unsigned value instead of signed, so 32 bit
counters show proper max value (instead of -1).

17 years agoMade parse_options() write options to a struct instead of passing
Frank Mori Hess [Wed, 3 Jan 2007 21:14:53 +0000 (21:14 +0000)]
Made parse_options() write options to a struct instead of passing
them through global variables.

17 years agoAdded a sentence to ao_waveform description.
Frank Mori Hess [Wed, 3 Jan 2007 15:44:51 +0000 (15:44 +0000)]
Added a sentence to ao_waveform description.

17 years agoRemoved some C99-isms (mixed code and declarations)
Frank Mori Hess [Wed, 3 Jan 2007 15:43:06 +0000 (15:43 +0000)]
Removed some C99-isms (mixed code and declarations)

17 years agoReplaced deprecated AM_PROG_CC_STDC with AC_PROG_CC_STDC
Frank Mori Hess [Wed, 3 Jan 2007 15:31:11 +0000 (15:31 +0000)]
Replaced deprecated AM_PROG_CC_STDC with AC_PROG_CC_STDC

18 years agoAdded a table with descriptions of a few configuration instructions.
Frank Mori Hess [Wed, 25 Oct 2006 19:57:49 +0000 (19:57 +0000)]
Added a table with descriptions of a few configuration instructions.

18 years agoUpdated to docbook 4.2. Fixed broken </link> in tutorial.sgml
Frank Mori Hess [Wed, 25 Oct 2006 18:53:42 +0000 (18:53 +0000)]
Updated to docbook 4.2.  Fixed broken </link> in tutorial.sgml

18 years agoSync'd with comedi
Frank Mori Hess [Tue, 24 Oct 2006 20:36:33 +0000 (20:36 +0000)]
Sync'd with comedi

18 years agoUpdated RTSI documentation to reflect my changes.
Frank Mori Hess [Tue, 24 Oct 2006 15:07:41 +0000 (15:07 +0000)]
Updated RTSI documentation to reflect my changes.

18 years agoSync'ed with comedi.
Frank Mori Hess [Tue, 24 Oct 2006 15:07:08 +0000 (15:07 +0000)]
Sync'ed with comedi.

18 years agoAdded choose_clock and choose_routing demo programs. Synced comedi.h
Frank Mori Hess [Mon, 23 Oct 2006 19:35:24 +0000 (19:35 +0000)]
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.

18 years agoAdded const qualifiers to some char* return values. Added new
Frank Mori Hess [Tue, 17 Oct 2006 18:19:29 +0000 (18:19 +0000)]
Added const qualifiers to some char* return values.  Added new
experimental comedi_dio_bitfield2() function which works with
> 32 channels.  Only works properly with ni_65xx currently.
Will post a request for review by any interested
parties to list before I bother making the rest of the drivers
work with it.

18 years agoAdded description of SDF_SOFT_CALIBRATED flag.
Frank Mori Hess [Mon, 11 Sep 2006 13:55:22 +0000 (13:55 +0000)]
Added description of SDF_SOFT_CALIBRATED flag.

18 years agoAdded brief description of enum comedi_conversion_direction
Frank Mori Hess [Fri, 8 Sep 2006 19:40:15 +0000 (19:40 +0000)]
Added brief description of enum comedi_conversion_direction

18 years agoAdded entries for comedi_to_physical() and comedi_from_physical().
Frank Mori Hess [Fri, 8 Sep 2006 18:38:07 +0000 (18:38 +0000)]
Added entries for comedi_to_physical() and comedi_from_physical().

18 years agosync with comedi
Frank Mori Hess [Fri, 8 Sep 2006 15:41:05 +0000 (15:41 +0000)]
sync with comedi

18 years agoAdded entries for comedi_get_hardcal_converter() and
Frank Mori Hess [Fri, 8 Sep 2006 14:53:48 +0000 (14:53 +0000)]
Added entries for comedi_get_hardcal_converter() and
comedi_get_softcal_converter().  Clairified comedi_apply_calibration()
a little.

18 years agoAdded some primative support for using software calibration in a way
Frank Mori Hess [Thu, 7 Sep 2006 19:09:04 +0000 (19:09 +0000)]
Added some primative support for using software calibration in a way
that can be integrated with boards that don't use software calibrations.

18 years agoFill in inverse polynomials for first order soft calibrations.
Frank Mori Hess [Thu, 31 Aug 2006 18:09:27 +0000 (18:09 +0000)]
Fill in inverse polynomials for first order soft calibrations.

18 years agoAdded flex and bison generated files to MAINTAINERCLEANFILES
Frank Mori Hess [Thu, 31 Aug 2006 15:29:44 +0000 (15:29 +0000)]
Added flex and bison generated files to MAINTAINERCLEANFILES

18 years agoFix parsing of floating point values in exponential notation, and numbers
Frank Mori Hess [Mon, 28 Aug 2006 22:59:42 +0000 (22:59 +0000)]
Fix parsing of floating point values in exponential notation, and numbers
with a leading + or - sign (untested).

18 years agoFixed problem with keeping track of whether a software calibration
Frank Mori Hess [Tue, 22 Aug 2006 20:19:19 +0000 (20:19 +0000)]
Fixed problem with keeping track of whether a software calibration
is for the from_phys or to_phys direction.

18 years agoParsing of calibration file with soft calibration information works now.
Frank Mori Hess [Tue, 22 Aug 2006 20:13:44 +0000 (20:13 +0000)]
Parsing of calibration file with soft calibration information works now.

18 years agoFirst pass at parsing additional calibration file elements which
Frank Mori Hess [Tue, 22 Aug 2006 18:14:22 +0000 (18:14 +0000)]
First pass at parsing additional calibration file elements which
support software calibration.

18 years agoApplied patch from David MacMahon <davidm -at- astro -dot- berkeley -dot- edu>.
Ian Abbott [Thu, 20 Jul 2006 11:51:54 +0000 (11:51 +0000)]
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.

18 years agoUse comedi_perror to report error if comedi_open fails, and exit with exit
Ian Abbott [Thu, 13 Jul 2006 17:06:33 +0000 (17:06 +0000)]
Use comedi_perror to report error if comedi_open fails, and exit with exit
code 1.

18 years agoApplied patch from David MacMahon <davidm -at- astro -dot- berkeley -dot- edu>.
Ian Abbott [Thu, 13 Jul 2006 12:45:26 +0000 (12:45 +0000)]
Applied patch from David MacMahon <davidm -at- astro -dot- berkeley -dot- edu>.
Add leading zeroes to subdevice flag values.

18 years agoApplied (slightly modified) patch from David MacMahon
Ian Abbott [Thu, 13 Jul 2006 12:43:14 +0000 (12:43 +0000)]
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.