comedilib.git
21 years agomove some warning messages so they will actually get seen
Frank Mori Hess [Sat, 31 May 2003 16:59:29 +0000 (16:59 +0000)]
move some warning messages so they will actually get seen

21 years agobe a little more careful about fixing up calibration file path, although
Frank Mori Hess [Sat, 31 May 2003 16:58:45 +0000 (16:58 +0000)]
be a little more careful about fixing up calibration file path, although
it doesn't make any practical difference

21 years agocatch some errors
Frank Mori Hess [Wed, 28 May 2003 21:22:59 +0000 (21:22 +0000)]
catch some errors

21 years agofix default calibration file path for boards with '/' in name
Frank Mori Hess [Wed, 28 May 2003 21:18:34 +0000 (21:18 +0000)]
fix default calibration file path for boards with '/' in name

21 years agoreplace return with YYABORT
Frank Mori Hess [Wed, 28 May 2003 18:55:36 +0000 (18:55 +0000)]
replace return with YYABORT

21 years agoupdate.
David Schleef [Tue, 27 May 2003 19:05:56 +0000 (19:05 +0000)]
update.

21 years agoadded support for new cb_pcidas64 board types
Frank Mori Hess [Sun, 25 May 2003 21:20:41 +0000 (21:20 +0000)]
added support for new cb_pcidas64 board types

21 years agomade sv order adjustable
Frank Mori Hess [Sun, 25 May 2003 21:11:20 +0000 (21:11 +0000)]
made sv order adjustable

21 years agofix statistics of new_sv_measure, and reduce number of steps in
Frank Mori Hess [Sun, 25 May 2003 16:20:42 +0000 (16:20 +0000)]
fix statistics of new_sv_measure, and reduce number of steps in
check_gain_chan_x

21 years agouse CR_EDGE and CR_INVERT constants instead of magic numbers
Frank Mori Hess [Sat, 24 May 2003 21:15:06 +0000 (21:15 +0000)]
use CR_EDGE and CR_INVERT constants instead of magic numbers

21 years agonew results
Frank Mori Hess [Thu, 22 May 2003 21:40:50 +0000 (21:40 +0000)]
new results

21 years agomake verbosity options work again
Frank Mori Hess [Thu, 22 May 2003 20:49:53 +0000 (20:49 +0000)]
make verbosity options work again

21 years agotrivial tweak
Frank Mori Hess [Thu, 22 May 2003 20:42:34 +0000 (20:42 +0000)]
trivial tweak

21 years agoincreased sv->order for 611x
Frank Mori Hess [Thu, 22 May 2003 20:30:41 +0000 (20:30 +0000)]
increased sv->order for 611x

21 years agostill trying to get 611x ai to calibrate well, trying to increase
Frank Mori Hess [Thu, 22 May 2003 16:13:12 +0000 (16:13 +0000)]
still trying to get 611x ai to calibrate well, trying to increase
settling time now.

21 years agocleanup some redundant initialization of sv stuff
Frank Mori Hess [Thu, 22 May 2003 16:12:07 +0000 (16:12 +0000)]
cleanup some redundant initialization of sv stuff

21 years agofix analog out ch 1 calibration, and calulation of variable ai
Frank Mori Hess [Wed, 21 May 2003 18:44:28 +0000 (18:44 +0000)]
fix analog out ch 1 calibration, and calulation of variable ai
reference source for 611x

21 years agoadded some warning messages when binary calibrations set caldacs to
Frank Mori Hess [Wed, 21 May 2003 17:52:41 +0000 (17:52 +0000)]
added some warning messages when binary calibrations set caldacs to
max/min values

21 years agoincrease N_OBSERVABLES even more for 611x
Frank Mori Hess [Wed, 21 May 2003 17:16:09 +0000 (17:16 +0000)]
increase N_OBSERVABLES even more for 611x

21 years agofix assignments that should have been equality tests
Frank Mori Hess [Tue, 20 May 2003 15:09:01 +0000 (15:09 +0000)]
fix assignments that should have been equality tests

21 years agomade comedi_config install into sbin instead of bin subdirectory
Frank Mori Hess [Mon, 19 May 2003 23:31:47 +0000 (23:31 +0000)]
made comedi_config install into sbin instead of bin subdirectory

21 years agotrying to fix undefined symbol problems people are having
Frank Mori Hess [Sun, 18 May 2003 00:26:59 +0000 (00:26 +0000)]
trying to fix undefined symbol problems people are having

21 years agoadded -D_REENTRANT to library cflags
Frank Mori Hess [Fri, 16 May 2003 21:15:17 +0000 (21:15 +0000)]
added -D_REENTRANT to library cflags

21 years agoupdated for autoconf stuff
Frank Mori Hess [Fri, 16 May 2003 19:41:13 +0000 (19:41 +0000)]
updated for autoconf stuff

21 years agoadded some DPRINT's to ni_labpc calibration so there is some indication
Frank Mori Hess [Fri, 9 May 2003 00:04:12 +0000 (00:04 +0000)]
added some DPRINT's to ni_labpc calibration so there is some indication
it is doing something

21 years agoadded driver name to default calibration file path
Frank Mori Hess [Fri, 9 May 2003 00:00:51 +0000 (00:00 +0000)]
added driver name to default calibration file path

21 years agoadded ni_labpc support
Frank Mori Hess [Thu, 8 May 2003 23:57:03 +0000 (23:57 +0000)]
added ni_labpc support

21 years agoadded entries for additional calibration functions
Frank Mori Hess [Thu, 8 May 2003 00:35:19 +0000 (00:35 +0000)]
added entries for additional calibration functions

21 years agofix broken dependencies, and man page generation
Frank Mori Hess [Thu, 8 May 2003 00:34:29 +0000 (00:34 +0000)]
fix broken dependencies, and man page generation

21 years agoadded examples, and more/updated option descriptions
Frank Mori Hess [Wed, 7 May 2003 18:12:28 +0000 (18:12 +0000)]
added examples, and more/updated option descriptions

21 years agofixed some bad behaviour when using default calibration file path
Frank Mori Hess [Wed, 7 May 2003 00:13:00 +0000 (00:13 +0000)]
fixed some bad behaviour when using default calibration file path

21 years agomade default comedi_calibrate behaviour a little smarter, shared more
Frank Mori Hess [Tue, 6 May 2003 23:37:45 +0000 (23:37 +0000)]
made default comedi_calibrate behaviour a little smarter, shared more
code between comedilib and comedi_calibrate

21 years agoexposed some lower-level calibration functions for more flexibility
Frank Mori Hess [Tue, 6 May 2003 18:26:21 +0000 (18:26 +0000)]
exposed some lower-level calibration functions for more flexibility

21 years agocleanup old 1602/16 stuff
Frank Mori Hess [Tue, 6 May 2003 05:50:04 +0000 (05:50 +0000)]
cleanup old 1602/16 stuff

21 years agoadded options for specifying which subdev, channel, range, aref you
Frank Mori Hess [Tue, 6 May 2003 01:24:50 +0000 (01:24 +0000)]
added options for specifying which subdev, channel, range, aref you
want comedi_calibrate to apply calibration for before exiting

21 years agochanged convention for default calibration file naming to something
Frank Mori Hess [Tue, 6 May 2003 00:36:18 +0000 (00:36 +0000)]
changed convention for default calibration file naming to something
more transparent and robust (since I figured out how to get minor number
from code for ls)

21 years agotook out some debug messages i accidentaly left in
Frank Mori Hess [Mon, 5 May 2003 14:37:39 +0000 (14:37 +0000)]
took out some debug messages i accidentaly left in

21 years agomade polarity determination in binary calibrations more robust, to fix
Frank Mori Hess [Mon, 5 May 2003 03:38:26 +0000 (03:38 +0000)]
made polarity determination in binary calibrations more robust, to fix
problems I saw when caldac pushed input out-of-range

21 years agofixed comedi_apply_calibration so it applies all matching calibrations
Frank Mori Hess [Mon, 5 May 2003 03:18:19 +0000 (03:18 +0000)]
fixed comedi_apply_calibration so it applies all matching calibrations
instead of just the first one

21 years agoincreased max number of observables for 611x boards, added postgain
Frank Mori Hess [Mon, 5 May 2003 00:11:50 +0000 (00:11 +0000)]
increased max number of observables for 611x boards, added postgain
offset to generic calibration routines, used generic cal for mc pci-das1602/16
calibration.

21 years agopruned some dead code
Frank Mori Hess [Mon, 5 May 2003 00:09:12 +0000 (00:09 +0000)]
pruned some dead code

21 years agoconverted all remaining boards (except mc pci-das1602/16) to use
Frank Mori Hess [Sun, 4 May 2003 02:16:31 +0000 (02:16 +0000)]
converted all remaining boards (except mc pci-das1602/16) to use
generic calibration support

21 years agorearranged prep of adc for dac calibration to be more flexible
Frank Mori Hess [Sat, 3 May 2003 22:25:05 +0000 (22:25 +0000)]
rearranged prep of adc for dac calibration to be more flexible

21 years agoconverted calibration of measurement computing 60xx boards over to
Frank Mori Hess [Sat, 3 May 2003 22:08:24 +0000 (22:08 +0000)]
converted calibration of measurement computing 60xx boards over to
generic code

21 years agomoved COMEDI_VERSION_CODE() macro to comedilib.h, added some version
Frank Mori Hess [Sat, 3 May 2003 14:59:26 +0000 (14:59 +0000)]
moved COMEDI_VERSION_CODE() macro to comedilib.h, added some version
checks to comedi_calibrate so it complains if it's using a driver
with known bugs.  Converted 6071 calibration to ad8804 addressing.

21 years agoi shouldn't have made comedi_internal_data_read() inline, it's too long,
Frank Mori Hess [Sat, 3 May 2003 14:57:15 +0000 (14:57 +0000)]
i shouldn't have made comedi_internal_data_read() inline, it's too long,
and it causes gcc 2.9 to produce a bogus warning

21 years agofixed 6035 dac1 offset caldac, added inactive 6071e calibration guess
Frank Mori Hess [Sat, 3 May 2003 01:11:01 +0000 (01:11 +0000)]
fixed 6035 dac1 offset caldac, added inactive 6071e calibration guess
for an ad8804 style caldac

21 years agonew results
Frank Mori Hess [Sat, 3 May 2003 00:28:20 +0000 (00:28 +0000)]
new results

21 years agoupdated dump, with driver caldac corrected to ad8804
Frank Mori Hess [Sat, 3 May 2003 00:17:47 +0000 (00:17 +0000)]
updated dump, with driver caldac corrected to ad8804

21 years agoremove system identifiers
David Schleef [Fri, 2 May 2003 23:49:12 +0000 (23:49 +0000)]
remove system identifiers

21 years agochange section to libdevel
David Schleef [Fri, 2 May 2003 23:47:47 +0000 (23:47 +0000)]
change section to libdevel

21 years agoAdd DAQCard-6024E
David Schleef [Fri, 2 May 2003 23:43:42 +0000 (23:43 +0000)]
Add DAQCard-6024E

21 years agonew results
David Schleef [Fri, 2 May 2003 23:41:44 +0000 (23:41 +0000)]
new results

21 years agoadded 'write to file' support for ni 611x boards, and calibration
Frank Mori Hess [Fri, 2 May 2003 21:58:23 +0000 (21:58 +0000)]
added 'write to file' support for ni 611x boards, and calibration
of all their input ranges.

21 years agoclean better
David Schleef [Fri, 2 May 2003 08:06:17 +0000 (08:06 +0000)]
clean better

21 years agoremove
David Schleef [Fri, 2 May 2003 08:01:09 +0000 (08:01 +0000)]
remove

21 years agoautoconfiscate
David Schleef [Fri, 2 May 2003 07:53:44 +0000 (07:53 +0000)]
autoconfiscate

21 years agoneed headers
David Schleef [Fri, 2 May 2003 07:53:02 +0000 (07:53 +0000)]
need headers

21 years agodemos should be nodist
David Schleef [Fri, 2 May 2003 07:52:24 +0000 (07:52 +0000)]
demos should be nodist

21 years agoclean up warning
David Schleef [Fri, 2 May 2003 07:37:03 +0000 (07:37 +0000)]
clean up warning

21 years agoFix yacc and lex building
David Schleef [Fri, 2 May 2003 07:33:20 +0000 (07:33 +0000)]
Fix yacc and lex building

21 years agoautoconfiscation
David Schleef [Fri, 2 May 2003 07:19:00 +0000 (07:19 +0000)]
autoconfiscation

21 years agoconverted all NI boards to write calibrations to file. Also, it will
Frank Mori Hess [Fri, 2 May 2003 00:54:07 +0000 (00:54 +0000)]
converted all NI boards to write calibrations to file.  Also, it will
calibrate unipolar analog output ranges separately for them.

21 years agofix get_bipolar_lowgain() which i broke
Frank Mori Hess [Thu, 1 May 2003 14:43:50 +0000 (14:43 +0000)]
fix get_bipolar_lowgain() which i broke

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