comedilib.git
21 years agoadded unipolar analog output observables
Frank Mori Hess [Wed, 30 Apr 2003 22:59:07 +0000 (22:59 +0000)]
added unipolar analog output observables

21 years agoadded some comments on cal_*binary() functions
Frank Mori Hess [Wed, 30 Apr 2003 20:36:15 +0000 (20:36 +0000)]
added some comments on cal_*binary() functions

21 years agomade all cal_*binary() functions set oor behaviour to COMEDI_OOR_NUMBER
Frank Mori Hess [Wed, 30 Apr 2003 20:30:04 +0000 (20:30 +0000)]
made all cal_*binary() functions set oor behaviour to COMEDI_OOR_NUMBER

21 years agoadded is_unipolar() and is_bipolar() query functions, added very_low_target()
Frank Mori Hess [Wed, 30 Apr 2003 20:17:44 +0000 (20:17 +0000)]
added is_unipolar() and is_bipolar() query functions, added very_low_target()
helper function for generating unipolar targets that are close but not zero.

21 years agoadded support for reading reference from eeprom for most boards
Frank Mori Hess [Wed, 30 Apr 2003 01:06:17 +0000 (01:06 +0000)]
added support for reading reference from eeprom for most boards

21 years agofix cal_linearity_binary()
Frank Mori Hess [Tue, 29 Apr 2003 16:09:27 +0000 (16:09 +0000)]
fix cal_linearity_binary()

21 years agooffset unipolar ground observable targets half a bit above zero
Frank Mori Hess [Tue, 29 Apr 2003 01:50:46 +0000 (01:50 +0000)]
offset unipolar ground observable targets half a bit above zero

21 years agoadded support for calibrating analog output linearity
Frank Mori Hess [Tue, 29 Apr 2003 01:00:22 +0000 (01:00 +0000)]
added support for calibrating analog output linearity

21 years agodaqcard 6062e calibration should be good now (with a little luck)
Frank Mori Hess [Mon, 28 Apr 2003 16:15:05 +0000 (16:15 +0000)]
daqcard 6062e calibration should be good now (with a little luck)

21 years agoadded more unipolar observables for ni boards, so unipolar calibrations
Frank Mori Hess [Mon, 28 Apr 2003 01:00:07 +0000 (01:00 +0000)]
added more unipolar observables for ni boards, so unipolar calibrations
can be done.

21 years agotweaked cal_postgain_binary() so it gets the least significant bit right
Frank Mori Hess [Mon, 28 Apr 2003 00:14:44 +0000 (00:14 +0000)]
tweaked cal_postgain_binary() so it gets the least significant bit right

21 years agookay, _really_ got last bit correct with cal_binary() this time.
Frank Mori Hess [Sun, 27 Apr 2003 18:13:39 +0000 (18:13 +0000)]
okay, _really_ got last bit correct with cal_binary() this time.

21 years agofixed new_sv_init() calls so they are not hard-coded to assume the
Frank Mori Hess [Sun, 27 Apr 2003 00:08:03 +0000 (00:08 +0000)]
fixed new_sv_init() calls so they are not hard-coded to assume the
adc subdevice is subdevice 0.

21 years agotweaks to cal_binary() so that it gets the last, least significant
Frank Mori Hess [Sun, 27 Apr 2003 00:03:27 +0000 (00:03 +0000)]
tweaks to cal_binary() so that it gets the last, least significant
bit correct.

21 years agohmm, should have left postgain offset caldac as argument to
Frank Mori Hess [Sat, 26 Apr 2003 22:24:37 +0000 (22:24 +0000)]
hmm, should have left postgain offset caldac as argument to
cal_postgain() for 6062e

21 years agoSTATUS_NONE is actually STATUS_UNKNOWN
Frank Mori Hess [Sat, 26 Apr 2003 22:23:49 +0000 (22:23 +0000)]
STATUS_NONE is actually STATUS_UNKNOWN

21 years agoremoved bogus free()
Frank Mori Hess [Sat, 26 Apr 2003 21:09:49 +0000 (21:09 +0000)]
removed bogus free()

21 years agoinit saved_calibration_t array for daqcard 6062e
Frank Mori Hess [Sat, 26 Apr 2003 18:54:53 +0000 (18:54 +0000)]
init saved_calibration_t array for daqcard 6062e

21 years agofixed catching of unknown board name with NI drivers, fixed board name
Frank Mori Hess [Sat, 26 Apr 2003 16:23:04 +0000 (16:23 +0000)]
fixed catching of unknown board name with NI drivers, fixed board name
of daqcard-6062E, added dummy daqcard-6064E, changed some cb boards
to use my favorite cal_binary().

21 years agoswapped pre/postgain offsets
Frank Mori Hess [Sat, 26 Apr 2003 02:03:48 +0000 (02:03 +0000)]
swapped pre/postgain offsets

21 years agomade error message on failure to open device more informative
Frank Mori Hess [Sat, 26 Apr 2003 02:02:54 +0000 (02:02 +0000)]
made error message on failure to open device more informative

21 years agofixed reading of argument for short option 'f' that I broke a while back
Frank Mori Hess [Fri, 25 Apr 2003 20:43:23 +0000 (20:43 +0000)]
fixed reading of argument for short option 'f' that I broke a while back

21 years agotweaked include directives so gcc -MM generates better dependency files
Frank Mori Hess [Fri, 25 Apr 2003 01:58:34 +0000 (01:58 +0000)]
tweaked include directives so gcc -MM generates better dependency files

21 years agoadded some dependency generation to makefile
Frank Mori Hess [Fri, 25 Apr 2003 01:50:49 +0000 (01:50 +0000)]
added some dependency generation to makefile

21 years agoadded some dependency file generation
Frank Mori Hess [Fri, 25 Apr 2003 01:44:21 +0000 (01:44 +0000)]
added some dependency file generation

21 years agoadded some white space to fix preprocessor weirdness, ## was causing
Frank Mori Hess [Fri, 25 Apr 2003 01:43:52 +0000 (01:43 +0000)]
added some white space to fix preprocessor weirdness, ## was causing
__FUNCTION__ to disappear instead of the comma?

21 years agoinitial pass at daqcard-6062e support, and got rid of global do_output
Frank Mori Hess [Fri, 25 Apr 2003 01:02:51 +0000 (01:02 +0000)]
initial pass at daqcard-6062e support, and got rid of global do_output
variable.

21 years agoadded multiple range calibration for measurement computing pci-das1xxx
Frank Mori Hess [Thu, 24 Apr 2003 04:20:51 +0000 (04:20 +0000)]
added multiple range calibration for measurement computing pci-das1xxx
cards

21 years agoadded multi-range calibration support for pci-das4020
Frank Mori Hess [Tue, 22 Apr 2003 21:20:39 +0000 (21:20 +0000)]
added multi-range calibration support for pci-das4020

21 years agoadded apply_cal demo
Frank Mori Hess [Tue, 22 Apr 2003 00:04:14 +0000 (00:04 +0000)]
added apply_cal demo

21 years agoadded ao calibration and multiple ai range calibration for
Frank Mori Hess [Mon, 21 Apr 2003 23:57:30 +0000 (23:57 +0000)]
added ao calibration and multiple ai range calibration for
measurement computing 64xx boards

21 years agoadded --[no-]calibrate and --[no-]reset options
Frank Mori Hess [Mon, 21 Apr 2003 01:50:03 +0000 (01:50 +0000)]
added --[no-]calibrate and --[no-]reset options

21 years agosplit off cb64.c from cb.c
Frank Mori Hess [Mon, 21 Apr 2003 01:48:53 +0000 (01:48 +0000)]
split off cb64.c from cb.c

21 years agomade a bunch of functions static
Frank Mori Hess [Mon, 21 Apr 2003 01:48:02 +0000 (01:48 +0000)]
made a bunch of functions static

21 years agomade do_reset option work with multiple range calibrations for 60xx
Frank Mori Hess [Sun, 20 Apr 2003 22:50:40 +0000 (22:50 +0000)]
made do_reset option work with multiple range calibrations for 60xx

21 years agoadded application of appropriate calibrations before dumps or results
Frank Mori Hess [Sun, 20 Apr 2003 01:42:27 +0000 (01:42 +0000)]
added application of appropriate calibrations before dumps or results

21 years agofixed calibration of ai ranges != 0 (doh). Changed a bunch of functions
Frank Mori Hess [Sun, 20 Apr 2003 01:41:50 +0000 (01:41 +0000)]
fixed calibration of ai ranges != 0 (doh).  Changed a bunch of functions
to static.

21 years agofix deprecation warning with gcc3.2
Frank Mori Hess [Sat, 19 Apr 2003 20:32:47 +0000 (20:32 +0000)]
fix deprecation warning with gcc3.2

21 years agoadded analog output calibration for measurement computing 60xx series
Frank Mori Hess [Sat, 19 Apr 2003 04:56:05 +0000 (04:56 +0000)]
added analog output calibration for measurement computing 60xx series

21 years agofix initialization of line counter, some yytext -> calib_yytext changes
Frank Mori Hess [Sat, 19 Apr 2003 01:40:32 +0000 (01:40 +0000)]
fix initialization of line counter, some yytext -> calib_yytext changes

21 years agochanged some debugging fprintfs to stderr into DPRINTs
Frank Mori Hess [Tue, 1 Apr 2003 19:28:11 +0000 (19:28 +0000)]
changed some debugging fprintfs to stderr into DPRINTs

21 years agomake flex stuff as reentrant as i can
Frank Mori Hess [Wed, 19 Mar 2003 20:08:26 +0000 (20:08 +0000)]
make flex stuff as reentrant as i can

21 years agocomedi_apply_calibration() almost reentrant now
Frank Mori Hess [Wed, 19 Mar 2003 18:56:19 +0000 (18:56 +0000)]
comedi_apply_calibration() almost reentrant now

21 years agoadded -D_REENTRANT to library CFLAGS
Frank Mori Hess [Wed, 19 Mar 2003 16:26:37 +0000 (16:26 +0000)]
added -D_REENTRANT to library CFLAGS

21 years agoadded a couple comment lines to top of generated calibration files
Frank Mori Hess [Thu, 6 Mar 2003 19:18:18 +0000 (19:18 +0000)]
added a couple comment lines to top of generated calibration files

21 years agomade parsing slightly more forgiving with respect to commas, in case user
Frank Mori Hess [Thu, 6 Mar 2003 19:07:33 +0000 (19:07 +0000)]
made parsing slightly more forgiving with respect to commas, in case user
hand-edits calibration file

21 years agostopped comments from getting printed
Frank Mori Hess [Thu, 6 Mar 2003 19:06:06 +0000 (19:06 +0000)]
stopped comments from getting printed

21 years agomoved stderr output to use COMEDILIB_DEBUG()
Frank Mori Hess [Thu, 6 Mar 2003 19:05:16 +0000 (19:05 +0000)]
moved stderr output to use COMEDILIB_DEBUG()

21 years agoadded return value for comedi_apply_calibration()
Frank Mori Hess [Thu, 6 Mar 2003 19:04:18 +0000 (19:04 +0000)]
added return value for comedi_apply_calibration()

21 years agoset default n_scan value to 10 for insn demo, added check that it is
Frank Mori Hess [Wed, 5 Mar 2003 17:01:34 +0000 (17:01 +0000)]
set default n_scan value to 10 for insn demo, added check that it is
not set larger than MAX_SAMPLES

21 years agoa couple not so important tweaks to calibration file parsing, before
Frank Mori Hess [Wed, 5 Mar 2003 16:55:14 +0000 (16:55 +0000)]
a couple not so important tweaks to calibration file parsing, before
I leave it

21 years agogot rid of unneccessary yyrestart()
Frank Mori Hess [Wed, 5 Mar 2003 00:46:36 +0000 (00:46 +0000)]
got rid of unneccessary yyrestart()

21 years agoremoved libperl dependency by switching to bison/flex to parse calibration
Frank Mori Hess [Wed, 5 Mar 2003 00:30:00 +0000 (00:30 +0000)]
removed libperl dependency by switching to bison/flex to parse calibration
file.

21 years agoChanged comedi_set_calibration() to comedi_apply_calibration(), and
Frank Mori Hess [Tue, 4 Mar 2003 00:41:10 +0000 (00:41 +0000)]
Changed comedi_set_calibration() to comedi_apply_calibration(), and
made it much faster, it takes <100msec to run instead of >1sec.
It requires linking to libperl now (hope that's
okay).  Renamed DEBUG() and _() in libinternal.h to COMEDILIB_DEBUG()
and GETTEXT() in order to avoid conflicts with perl headers.

21 years agoadded descriptions of some options, --save-file in particular
Frank Mori Hess [Sat, 1 Mar 2003 03:30:59 +0000 (03:30 +0000)]
added descriptions of some options, --save-file in particular

21 years agoadded documentation for comedi_set_calibration()
Frank Mori Hess [Sat, 1 Mar 2003 01:52:32 +0000 (01:52 +0000)]
added documentation for comedi_set_calibration()

21 years agocatch errors from find_calibration()
Frank Mori Hess [Sat, 1 Mar 2003 01:03:39 +0000 (01:03 +0000)]
catch errors from find_calibration()

21 years agofixed missing dollar signs, and "subdev" should have been "subdevices"
Frank Mori Hess [Fri, 28 Feb 2003 22:40:52 +0000 (22:40 +0000)]
fixed missing dollar signs, and "subdev" should have been "subdevices"

21 years agofinished implementing comedi_set_calibration() (for real this time),
Frank Mori Hess [Fri, 28 Feb 2003 20:51:04 +0000 (20:51 +0000)]
finished implementing comedi_set_calibration() (for real this time),
untested

21 years agofixed finding calibration based on subdevice. Ignore previous log
Frank Mori Hess [Wed, 26 Feb 2003 19:36:56 +0000 (19:36 +0000)]
fixed finding calibration based on subdevice.  Ignore previous log
message about finishing implementation of comedi_set_calibration(), as
it's only half done.

21 years agoadded subdevice to calibration file
Frank Mori Hess [Wed, 26 Feb 2003 19:31:56 +0000 (19:31 +0000)]
added subdevice to calibration file

21 years agofinished implementing comedi_set_calibration() (untested)
Frank Mori Hess [Wed, 26 Feb 2003 19:19:57 +0000 (19:19 +0000)]
finished implementing comedi_set_calibration() (untested)

21 years agofixed use of short option 's', got rid of semicolon at end of file,
Frank Mori Hess [Wed, 26 Feb 2003 17:58:53 +0000 (17:58 +0000)]
fixed use of short option 's', got rid of semicolon at end of file,
only mess with /etc/comedi/calibrations directory if we are using
default save file location

21 years agobeginnings of comedi_set_calibration()
Frank Mori Hess [Mon, 24 Feb 2003 22:30:43 +0000 (22:30 +0000)]
beginnings of comedi_set_calibration()

21 years agoadded command line option for specifiying name of file you want to write
Frank Mori Hess [Mon, 24 Feb 2003 19:20:12 +0000 (19:20 +0000)]
added command line option for specifiying name of file you want to write
calibration to

21 years agofixed setting of __comedi_errno after ioctl
Frank Mori Hess [Sun, 16 Feb 2003 16:45:13 +0000 (16:45 +0000)]
fixed setting of __comedi_errno after ioctl

21 years agoall analog input ranges are now calibrated for meas computing pci-das60xx
Frank Mori Hess [Wed, 5 Feb 2003 23:04:14 +0000 (23:04 +0000)]
all analog input ranges are now calibrated for meas computing pci-das60xx

21 years agoadded a couple convenience functions
Frank Mori Hess [Wed, 5 Feb 2003 19:04:53 +0000 (19:04 +0000)]
added a couple convenience functions

21 years agoupdated reference to old lineo cvs server
Frank Mori Hess [Wed, 5 Feb 2003 15:05:31 +0000 (15:05 +0000)]
updated reference to old lineo cvs server

21 years agowant to use ino_t to identify comedi device file instead of dev_t, which
Frank Mori Hess [Wed, 5 Feb 2003 04:18:29 +0000 (04:18 +0000)]
want to use ino_t to identify comedi device file instead of dev_t, which
always contains major/minor number of hard drive

21 years agoremoved some dead code
Frank Mori Hess [Tue, 4 Feb 2003 19:45:45 +0000 (19:45 +0000)]
removed some dead code

21 years agowriting calibrations to a file should be useable now
Frank Mori Hess [Tue, 4 Feb 2003 18:21:07 +0000 (18:21 +0000)]
writing calibrations to a file should be useable now

21 years agoinitial support for writing a set of calibrations to a text file
Frank Mori Hess [Sun, 2 Feb 2003 01:56:05 +0000 (01:56 +0000)]
initial support for writing a set of calibrations to a text file

21 years agoadded linefeed
Frank Mori Hess [Thu, 9 Jan 2003 17:53:46 +0000 (17:53 +0000)]
added linefeed

21 years agobetter error message when reading calibration voltages from eeprom
Frank Mori Hess [Wed, 1 Jan 2003 23:22:08 +0000 (23:22 +0000)]
better error message when reading calibration voltages from eeprom

21 years agoinclude string.h for memset()
Frank Mori Hess [Wed, 1 Jan 2003 23:08:07 +0000 (23:08 +0000)]
include string.h for memset()

21 years agofixing includes for exit(), memset() for gcc 2.96 compiler warnings
Frank Mori Hess [Wed, 1 Jan 2003 23:07:02 +0000 (23:07 +0000)]
fixing includes for exit(), memset() for gcc 2.96 compiler warnings

21 years agoignoring error so make install works when docs not built
Frank Mori Hess [Wed, 1 Jan 2003 23:05:48 +0000 (23:05 +0000)]
ignoring error so make install works when docs not built

21 years agoanalog output calibration for cb_pcidas boards, plus reading of calibration
Frank Mori Hess [Wed, 1 Jan 2003 22:47:07 +0000 (22:47 +0000)]
analog output calibration for cb_pcidas boards, plus reading of calibration
voltages from eeprom.

21 years agoinactive support for reading calibration voltage from eeprom on 611x
Frank Mori Hess [Wed, 1 Jan 2003 22:46:35 +0000 (22:46 +0000)]
inactive support for reading calibration voltage from eeprom on 611x
(not sure if ni_get_reference() is correct)

21 years agoupdate status of pci-das1200
Frank Mori Hess [Tue, 31 Dec 2002 02:15:31 +0000 (02:15 +0000)]
update status of pci-das1200

21 years agofix compiler warning
Frank Mori Hess [Tue, 31 Dec 2002 01:13:13 +0000 (01:13 +0000)]
fix compiler warning

21 years agoadded cb_pcidas driver
Frank Mori Hess [Tue, 31 Dec 2002 01:09:03 +0000 (01:09 +0000)]
added cb_pcidas driver

22 years agonew dev_info names for pcm-das08 and daqcard-1200 so pcmcia script runs
Frank Mori Hess [Wed, 11 Dec 2002 02:38:01 +0000 (02:38 +0000)]
new dev_info names for pcm-das08 and daqcard-1200 so pcmcia script runs
comedi_config correctly

22 years agoadded some comments about how internal voltage reference appears when
Frank Mori Hess [Fri, 29 Nov 2002 22:02:35 +0000 (22:02 +0000)]
added some comments about how internal voltage reference appears when
using +-50V or +-20V input ranges

22 years agoadded ability to adjust settling time used by new_sv_measure(), since 611x
Frank Mori Hess [Fri, 29 Nov 2002 21:54:01 +0000 (21:54 +0000)]
added ability to adjust settling time used by new_sv_measure(), since 611x
needs more than standard 99usec settle.

22 years ago611x calibration works now
Frank Mori Hess [Fri, 29 Nov 2002 21:29:04 +0000 (21:29 +0000)]
611x calibration works now

22 years agofixed comedi_nanosleep(), which did nothing before
Frank Mori Hess [Fri, 29 Nov 2002 21:27:40 +0000 (21:27 +0000)]
fixed comedi_nanosleep(), which did nothing before

22 years agoadded error check for mmap() call
Frank Mori Hess [Tue, 26 Nov 2002 20:06:22 +0000 (20:06 +0000)]
added error check for mmap() call

22 years agorearranged order of 611x observables to deal with only having 2 ai channels on 6111
Frank Mori Hess [Mon, 25 Nov 2002 21:05:13 +0000 (21:05 +0000)]
rearranged order of 611x observables to deal with only having 2 ai channels on 6111

22 years agoI think we finally have 611x calibration right
Frank Mori Hess [Mon, 25 Nov 2002 20:56:34 +0000 (20:56 +0000)]
I think we finally have 611x calibration right

22 years agocorrecting ao caldac channels after fixing caldac type in driver
Frank Mori Hess [Sun, 24 Nov 2002 15:41:11 +0000 (15:41 +0000)]
correcting ao caldac channels after fixing caldac type in driver

22 years ago611x documentation was wrong, calibration sources do not correspond
Frank Mori Hess [Sun, 24 Nov 2002 15:16:49 +0000 (15:16 +0000)]
611x documentation was wrong, calibration sources do not correspond
to those from other boards.  Guessing at index for 5V positive 0V negative
calibration source.

22 years agochanged printing of "offset , target" to "reading , target" since
Frank Mori Hess [Sun, 24 Nov 2002 15:15:05 +0000 (15:15 +0000)]
changed printing of "offset , target" to "reading , target" since
the value it was printing was the actual voltage reading and not an
offset from the target value

22 years ago611x calibration doesn't like 5v-0v reference for gain calibration, wants 5v-5v reference
Frank Mori Hess [Sat, 23 Nov 2002 21:34:40 +0000 (21:34 +0000)]
611x calibration doesn't like 5v-0v reference for gain calibration, wants 5v-5v reference

22 years agofix calibration channels for 611x analog output
Frank Mori Hess [Sat, 23 Nov 2002 21:09:27 +0000 (21:09 +0000)]
fix calibration channels for 611x analog output

22 years agofixed 611x names to match ni_pcimio driver
Frank Mori Hess [Sat, 23 Nov 2002 18:15:45 +0000 (18:15 +0000)]
fixed 611x names to match ni_pcimio driver

22 years agoadded CR_ALT_SOURCE and CR_ALT_FILTER to observe_insn.chanspec's, needed
Frank Mori Hess [Sat, 23 Nov 2002 18:13:17 +0000 (18:13 +0000)]
added CR_ALT_SOURCE and CR_ALT_FILTER to observe_insn.chanspec's, needed
by 611x, and should be harmless to other boards

22 years agoincreased BUF_LEN, so demo works better with ni boards
Frank Mori Hess [Fri, 22 Nov 2002 21:45:05 +0000 (21:45 +0000)]
increased BUF_LEN, so demo works better with ni boards

22 years agoupdate from comedi
David Schleef [Fri, 22 Nov 2002 07:17:15 +0000 (07:17 +0000)]
update from comedi