comedi_calibrate-5/0000755000000000000000000000000013062555662011447 500000000000000comedi_calibrate-5/Makefile.am0000644000000000000000000000107412416542124013414 00000000000000 SUBDIRS=libcomedi_calibrate comedi_calibrate comedi_soft_calibrate man EXTRA_DIST = autogen.sh dist-hook: @if test -d "$(srcdir)/.git"; \ then \ echo Creating ChangeLog && \ ( cd "$(top_srcdir)" && \ echo '# Generated by Makefile. Do not edit.'; echo; \ $(top_srcdir)/missing --run \ git log --stat --name-only --date=iso ) \ > ChangeLog.tmp \ && mv -f ChangeLog.tmp $(distdir)/ChangeLog \ || ( rm -f ChangeLog.tmp ; \ echo Failed to generate ChangeLog >&2 ); \ else \ echo A git clone is required to generate a ChangeLog >&2; \ fi comedi_calibrate-5/man/0000755000000000000000000000000013062555662012222 500000000000000comedi_calibrate-5/man/Makefile.am0000644000000000000000000000010112416542124014155 00000000000000 EXTRA_DIST = comedi_calibrate.8 man_MANS = comedi_calibrate.8 comedi_calibrate-5/man/Makefile.in0000644000000000000000000003403013062555271014203 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = man ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man8dir = $(mandir)/man8 am__installdirs = "$(DESTDIR)$(man8dir)" NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COMEDI_CALIBRATE_CFLAGS = @COMEDI_CALIBRATE_CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = comedi_calibrate.8 man_MANS = comedi_calibrate.8 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu man/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-man8: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man8dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.8[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \ done; } uninstall-man8: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man8dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.8[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man8dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man8 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man8 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-man8 install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-man \ uninstall-man8 .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: comedi_calibrate-5/man/comedi_calibrate.80000644000000000000000000001144412416542124015474 00000000000000.TH comedi_calibrate 8 "" .SH NAME \fBcomedi_calibrate\fR - COMEDI calibration utility .SH SYNOPSIS \fBcomedi_calibrate\fR [-f /dev/comediN] .br .SH DESCRIPTION \fBcomedi_calibrate\fR is used to autocalibrate \fBcomedi\fR devices. Some \fBcomedi\fR devices have the ability to measure internal stable voltage references and control gains and offsets using programmable DACs. On these devices, \fBcomedi_calibrate\fR determines the proper values to feed into the programmable calibration DACs. These calibration settings are then saved to a file, which can be fed to comedi_apply_calibration() and related functions. If comedi_calibrate finds an existing calibration file, it will not perform a new calibration by default. It will simply read its calibration information from the file. This behaviour may be overriden with the .B \-\-calibrate option, to force a new calibration to be performed. After obtaining the calibration information for the board, comedi_calibrate will then apply a calibration setting appropriate for the specified subdevice, channel, and range (see the .B \-\-subdevice , .B \-\-channel , and .B \-\-range options below). See the comedilib documentation for comedi_apply_calibration() for more information. \fBcomedi_calibrate\fR prints a lot of debugging information as it runs. .SH LIMITATIONS \fBcomedi_calibrate\fR only works on boards that it understands. For boards that are known to have autocalibration ability, but are not currently supported, \fBcomedi_calibrate\fR will output basic debugging information that is useful for the author to add support for your device. Please send this output to him. .SH EXAMPLES .TP .BI comedi_calibrate\ \-\-file\ /dev/comediN If no default calibration for \fI/dev/comediN\fR already exists, perform a calibration and save results to default location. .TP .BI comedi_calibrate\ \-\-calibrate Perform a calibration, using existing calibration (if it exists) as starting point. .TP .BI comedi_calibrate\ \-\-reset\ \-\-calibrate Perform a fresh calibration and save results to default location. .TP .BI comedi_calibrate\ \-\-no\-calibrate\ \-\-subdevice\ subd\ \-\-range\ range\ \-\-save\-file\ cal_file Apply calibration for subdevice \fIsubd\fR, range \fIrange\fR, using the settings in the calibration file \fIcal_file\fR. .SH OPTIONS \fBcomedi_calibrate\fR recognizes the following options: .TP .BI \-a\ aref ,\ \-\-aref\ aref Along with \fB--channel\fR, \fB--range\fR and \fB--subdevice\fR, this specifies which calibration you want comedi_calibrate leave applied to the board. The default is 0. .TP .B \-\-[no\-]calibrate Force calibration to be performed (or not). By default, comedi_calibrate will only perform a new calibration if no existing calibration file is found (see \fB--save-file\fR). .TP .BI \-c\ channel, \-\-channel\ channel Along with \fB--subdevice\fR, \fB--range\fR and \fB--aref\fR, this specifies which calibration you want comedi_calibrate to leave applied to the board. The default is 0. .TP .B \-\-[no\-]dump Perform (or not) dump of various information about state of calibration prior to performing new calibration. .TP .BI \-f\ /dev/comediN, \-\-file\ /dev/comediN Perform calibration on device \fB/dev/comediN\fR. .TP .B \-\-help Print help for options then exit. .TP .B \-q, \-\-quiet Don't generate output to stdout. .TP .BI \-r\ range ,\ \-\-range\ range Along with \fB--channel\fR, \fB--subdevice\fR and \fB--aref\fR, this specifies which calibration you want comedi_calibrate to leave applied to the board. The default is 0. .TP .B \-\-[no\-]reset Reset (or don't reset) calibration subdevice to a reasonable starting point before performing calibration. The default is \fB--no-reset\fR. If \fB--no-reset\fR is used, the calibration routine will try to use an existing calibration (see \fB--save-file\fR) as a starting point. This is useful if a single calibration pass is not sufficient, and you wish to perform another calibration pass starting from the results of the previous pass. .TP .B \-\-[no\-]results Perform (or not) dump of various information about state of calibration after performing new calibration. .TP .BI \-S\ file ,\ \-\-save-file\ file Save calibration information to specified file, instead of default location. If the file already exists, comedi_calibrate will also use its contents as a starting point for the calibration pass (see \fB--no-reset\fR). .TP .BI \-s\ subdevice ,\ \-\-subdevice\ subdevice Along with \fB--channel\fR, \fB--range\fR and \fB--aref\fR, this specifies which calibration you want comedi_calibrate to leave applied to the board. The default is 0. .TP .B \-v, \-\-verbose Generate more verbose output to stdout, can be specified multiple times .SH SEE ALSO \fBcomedi\fR(7) .SH VERSION 0.7.x .SH AUTHOR David Schleef, Frank Mori Hess, comedi_calibrate-5/configure0000755000000000000000000065465013062555271013312 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for comedi_calibrate 5. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='comedi_calibrate' PACKAGE_TARNAME='comedi_calibrate' PACKAGE_VERSION='5' PACKAGE_STRING='comedi_calibrate 5' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="comedi_calibrate/comedi_calibrate.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS COMEDI_CALIBRATE_CFLAGS CXXCPP EGREP GREP CPP RANLIB am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_maintainer_mode enable_dependency_tracking ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC CPP CXXCPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures comedi_calibrate 5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/comedi_calibrate] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of comedi_calibrate 5:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --disable-maintainer-mode disable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF comedi_calibrate configure 5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_cxx_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by comedi_calibrate $as_me 5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.15' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='comedi_calibrate' VERSION='5' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 $as_echo_n "checking for library containing strerror... " >&6; } if ${ac_cv_search_strerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_strerror=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_strerror+:} false; then : break fi done if ${ac_cv_search_strerror+:} false; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 $as_echo "$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 $as_echo_n "checking for cos in -lm... " >&6; } if ${ac_cv_lib_m_cos+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cos (); int main () { return cos (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_cos=yes else ac_cv_lib_m_cos=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 $as_echo "$ac_cv_lib_m_cos" >&6; } if test "x$ac_cv_lib_m_cos" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi #comedilib # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "comedilib.h" "ac_cv_header_comedilib_h" "$ac_includes_default" if test "x$ac_cv_header_comedilib_h" = xyes; then : else as_fn_error $? "Failed to find comedilib.h." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for comedi_open in -lcomedi" >&5 $as_echo_n "checking for comedi_open in -lcomedi... " >&6; } if ${ac_cv_lib_comedi_comedi_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcomedi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char comedi_open (); int main () { return comedi_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_comedi_comedi_open=yes else ac_cv_lib_comedi_comedi_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_comedi_comedi_open" >&5 $as_echo "$ac_cv_lib_comedi_comedi_open" >&6; } if test "x$ac_cv_lib_comedi_comedi_open" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCOMEDI 1 _ACEOF LIBS="-lcomedi $LIBS" else as_fn_error $? "Failed to find libcomedi." "$LINENO" 5 fi # GNU Scientific Library ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_matrix.h" "ac_cv_header_gsl_gsl_matrix_h" "$ac_includes_default" if test "x$ac_cv_header_gsl_gsl_matrix_h" = xyes; then : else as_fn_error $? "Failed to find gsl/gsl_matrix.h" "$LINENO" 5 fi ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_multifit.h" "ac_cv_header_gsl_gsl_multifit_h" "$ac_includes_default" if test "x$ac_cv_header_gsl_gsl_multifit_h" = xyes; then : else as_fn_error $? "Failed to find gsl/gsl_multifit.h" "$LINENO" 5 fi ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_statistics.h" "ac_cv_header_gsl_gsl_statistics_h" "$ac_includes_default" if test "x$ac_cv_header_gsl_gsl_statistics_h" = xyes; then : else as_fn_error $? "Failed to find gsl/gsl_statistics.h" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lgslcblas" >&5 $as_echo_n "checking for cblas_dgemm in -lgslcblas... " >&6; } if ${ac_cv_lib_gslcblas_cblas_dgemm+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgslcblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cblas_dgemm (); int main () { return cblas_dgemm (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_gslcblas_cblas_dgemm=yes else ac_cv_lib_gslcblas_cblas_dgemm=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_cblas_dgemm" >&5 $as_echo "$ac_cv_lib_gslcblas_cblas_dgemm" >&6; } if test "x$ac_cv_lib_gslcblas_cblas_dgemm" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBGSLCBLAS 1 _ACEOF LIBS="-lgslcblas $LIBS" else as_fn_error $? "Failed to find libgslcblas." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_blas_dgemm in -lgsl" >&5 $as_echo_n "checking for gsl_blas_dgemm in -lgsl... " >&6; } if ${ac_cv_lib_gsl_gsl_blas_dgemm+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gsl_blas_dgemm (); int main () { return gsl_blas_dgemm (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_gsl_gsl_blas_dgemm=yes else ac_cv_lib_gsl_gsl_blas_dgemm=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_blas_dgemm" >&5 $as_echo "$ac_cv_lib_gsl_gsl_blas_dgemm" >&6; } if test "x$ac_cv_lib_gsl_gsl_blas_dgemm" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBGSL 1 _ACEOF LIBS="-lgsl $LIBS" else as_fn_error $? "Failed to find libgsl." "$LINENO" 5 fi #boost/program_options ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then : else as_fn_error $? "Failed to find boost/program_options.hpp" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_program_options" >&5 $as_echo_n "checking for main in -lboost_program_options... " >&6; } if ${ac_cv_lib_boost_program_options_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lboost_program_options $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_boost_program_options_main=yes else ac_cv_lib_boost_program_options_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_program_options_main" >&5 $as_echo "$ac_cv_lib_boost_program_options_main" >&6; } if test "x$ac_cv_lib_boost_program_options_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBBOOST_PROGRAM_OPTIONS 1 _ACEOF LIBS="-lboost_program_options $LIBS" else as_fn_error $? "Failed to find libboost_program_options." "$LINENO" 5 fi # cheat! ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu COMEDI_CALIBRATE_CFLAGS="-Wall" ac_config_files="$ac_config_files Makefile comedi_calibrate/Makefile comedi_soft_calibrate/Makefile libcomedi_calibrate/Makefile man/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by comedi_calibrate $as_me 5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ comedi_calibrate config.status 5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "comedi_calibrate/Makefile") CONFIG_FILES="$CONFIG_FILES comedi_calibrate/Makefile" ;; "comedi_soft_calibrate/Makefile") CONFIG_FILES="$CONFIG_FILES comedi_soft_calibrate/Makefile" ;; "libcomedi_calibrate/Makefile") CONFIG_FILES="$CONFIG_FILES libcomedi_calibrate/Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi comedi_calibrate-5/autogen.sh0000755000000000000000000000003012726245402013353 00000000000000#!/bin/sh autoreconf -i comedi_calibrate-5/comedi_calibrate/0000755000000000000000000000000013062555662014715 500000000000000comedi_calibrate-5/comedi_calibrate/Makefile.am0000644000000000000000000000062412416542124016662 00000000000000 bin_PROGRAMS = comedi_calibrate noinst_HEADERS = calib.h comedi_calibrate_SOURCES = \ comedi_calibrate.c ni.c cb.c cb64.c other.c cal_common.c ni_labpc.c comedi_calibrate_CFLAGS = $(COMEDI_CALIBRATE_CFLAGS) comedi_calibrate_LDADD = ../libcomedi_calibrate/libcomedi_calibrate.a -lcomedi -lm install-data-local: $(INSTALL) -d $(DESTDIR)$(localstatedir)/lib/comedi/calibrations EXTRA_DIST = results comedi_calibrate-5/comedi_calibrate/cb64.c0000644000000000000000000011151012416542124015525 00000000000000/*************************************************************************** cb64.c - calibration support for some Measurement computing boards. ------------------- begin : Sat Apr 27 2002 copyright : (C) 2002,2003 by Frank Mori Hess email : fmhess@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include "calib.h" char cb64_id[] = "$Id$"; struct board_struct{ char *name; int status; int (*setup)( calibration_setup_t *setup ); }; static int setup_cb_pci_64xx( calibration_setup_t *setup ); static int setup_cb_pci_60xx( calibration_setup_t *setup ); static int setup_cb_pci_603x( calibration_setup_t *setup ); static int setup_cb_pci_6052( calibration_setup_t *setup ); static int setup_cb_pci_4020( calibration_setup_t *setup ); #ifdef notused static int setup_cb_pci_unknown( calibration_setup_t *setup ); #endif static int cal_cb_pci_64xx( calibration_setup_t *setup ); static int cal_cb_pci_60xx( calibration_setup_t *setup ); static int cal_cb_pci_6052( calibration_setup_t *setup ); static int cal_cb_pci_4020( calibration_setup_t *setup ); static int init_observables_64xx( calibration_setup_t *setup ); static int init_observables_60xx( calibration_setup_t *setup ); static int init_observables_4020( calibration_setup_t *setup ); #ifdef notused static int init_observables_unknown( calibration_setup_t *setup ); #endif static struct board_struct boards[]={ { "pci-das6402/16", STATUS_SOME, setup_cb_pci_64xx }, { "pci-das6402/12", STATUS_GUESS, setup_cb_pci_64xx }, { "pci-das64/m1/16", STATUS_GUESS, setup_cb_pci_64xx }, { "pci-das64/m2/16", STATUS_GUESS, setup_cb_pci_64xx }, { "pci-das64/m3/16", STATUS_GUESS, setup_cb_pci_64xx }, { "pci-das6014", STATUS_DONE, setup_cb_pci_60xx }, { "pci-das6023", STATUS_DONE, setup_cb_pci_60xx }, { "pci-das6025", STATUS_DONE, setup_cb_pci_60xx }, { "pci-das6030", STATUS_GUESS, setup_cb_pci_60xx }, { "pci-das6031", STATUS_GUESS, setup_cb_pci_603x }, { "pci-das6032", STATUS_GUESS, setup_cb_pci_603x }, { "pci-das6033", STATUS_GUESS, setup_cb_pci_603x }, { "pci-das6034", STATUS_DONE, setup_cb_pci_603x }, { "pci-das6035", STATUS_GUESS, setup_cb_pci_603x }, { "pci-das6036", STATUS_GUESS, setup_cb_pci_603x }, { "pci-das6040", STATUS_GUESS, setup_cb_pci_60xx }, { "pci-das6052", STATUS_GUESS, setup_cb_pci_6052 }, { "pci-das6070", STATUS_GUESS, setup_cb_pci_60xx }, { "pci-das6071", STATUS_GUESS, setup_cb_pci_60xx }, { "pci-das4020/12", STATUS_DONE, setup_cb_pci_4020 }, }; static const int num_boards = ( sizeof(boards) / sizeof(boards[0]) ); enum calibration_source_60xx { CS_60XX_GROUND = 0, CS_60XX_10V = 1, CS_60XX_5V = 2, CS_60XX_500mV = 3, CS_60XX_50mV = 4, CS_60XX_UNUSED = 5, // 0V CS_60XX_DAC0 = 6, CS_60XX_DAC1 = 7, }; enum calibration_source_64xx { CS_64XX_GROUND = 0, CS_64XX_7V = 1, CS_64XX_3500mV = 2, CS_64XX_1750mV = 3, CS_64XX_875mV = 4, CS_64XX_8600uV = 5, CS_64XX_DAC0 = 6, CS_64XX_DAC1 = 7, }; enum calibration_source_4020 { CS_4020_4375mV = 5, CS_4020_625mV = 6, CS_4020_GROUND = 7, }; enum cal_knobs_60xx { DAC0_OFFSET_60XX = 0, DAC0_GAIN_60XX = 1, DAC1_OFFSET_60XX = 2, DAC1_GAIN_60XX = 3, ADC_OFFSET_FINE_60XX = 4, ADC_OFFSET_COARSE_60XX = 5, ADC_GAIN_COARSE_60XX = 6, ADC_GAIN_FINE_60XX = 7, }; enum cal_knobs_64xx { DAC0_GAIN_FINE_64XX = 0, DAC0_GAIN_COARSE_64XX = 1, DAC0_OFFSET_COARSE_64XX = 2, DAC1_OFFSET_COARSE_64XX = 3, DAC1_GAIN_FINE_64XX = 4, DAC1_GAIN_COARSE_64XX = 5, DAC0_OFFSET_FINE_64XX = 6, DAC1_OFFSET_FINE_64XX = 7, ADC_GAIN_64XX = 8, ADC_OFFSET_64XX = 9, }; enum cal_knobs_6052 // FIXME these values are uneducated guesses { DAC0_GAIN_FINE_6052 = 0, DAC0_GAIN_COARSE_6052 = 1, DAC0_OFFSET_COARSE_6052 = 2, DAC1_OFFSET_COARSE_6052 = 3, DAC1_GAIN_FINE_6052 = 4, DAC1_GAIN_COARSE_6052 = 5, DAC0_OFFSET_FINE_6052 = 6, DAC1_OFFSET_FINE_6052 = 7, ADC_GAIN_6052 = 8, ADC_OFFSET_6052 = 9, }; int cb64_setup( calibration_setup_t *setup, const char *device_name ) { unsigned int i; for( i = 0; i < num_boards; i++ ) { if( !strcmp( device_name, boards[i].name ) ) { setup->status = boards[i].status; return boards[i].setup( setup ); break; } } if( i == num_boards ) return -1; return 0; } static int setup_cb_pci_64xx( calibration_setup_t *setup ) { static const int caldac_subdev = 6; static const int calpot_subdev = 7; init_observables_64xx( setup ); setup_caldacs( setup, caldac_subdev ); setup_caldacs( setup, calpot_subdev ); setup->do_cal = cal_cb_pci_64xx; return 0; } static int setup_cb_pci_60xx( calibration_setup_t *setup ) { static const int caldac_subdev = 6; init_observables_60xx( setup ); setup_caldacs( setup, caldac_subdev ); setup->do_cal = cal_cb_pci_60xx; return 0; } static int setup_cb_pci_603x(calibration_setup_t *setup) { int retval = setup_cb_pci_60xx(setup); //extra delay not needed by 6023 and 6024, but is needed by 6034 setup->sv_settling_time_ns = 100000000; return retval; } static int setup_cb_pci_4020( calibration_setup_t *setup ) { static const int caldac_subdev = 6; init_observables_4020( setup ); setup_caldacs( setup, caldac_subdev ); setup->do_cal = cal_cb_pci_4020; return 0; } #ifdef notused static int setup_cb_pci_unknown( calibration_setup_t *setup ) { static const int caldac_subdev = 6; init_observables_unknown( setup ); setup_caldacs( setup, caldac_subdev ); setup->do_cal = 0; return 0; } #endif static int ai_ground_observable_index_64xx( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return 2 * range; } static int ai_high_observable_index_64xx( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return 2 * range + 1; } static int ao_ground_observable_index_64xx( const calibration_setup_t *setup, unsigned int channel, unsigned int ao_range ) { int num_ai_ranges; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges >= 0 ); return 2 * num_ai_ranges + 2 * channel + 4 * ao_range; } static int ao_high_observable_index_64xx( const calibration_setup_t *setup, unsigned int channel, unsigned int ao_range ) { int num_ai_ranges; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges >= 0 ); return 2 * num_ai_ranges + 2 * channel + 4 * ao_range + 1; } static int source_eeprom_addr_64xx( calibration_setup_t *setup, unsigned int range_index ) { enum source_eeprom_addr { EEPROM_7V_CHAN = 0x30, EEPROM_3500mV_CHAN = 0x32, EEPROM_1750mV_CHAN = 0x34, EEPROM_875mV_CHAN = 0x36, EEPROM_8600uV_CHAN = 0x38, }; comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, range_index ); if( range == NULL ) { fprintf(stderr, "%s: failed to get range\n", __FUNCTION__); return -1; } if( range->max > 7.0 ) return EEPROM_7V_CHAN; else if( range->max > 3.5 ) return EEPROM_3500mV_CHAN; else if( range->max > 0.875 ) return EEPROM_875mV_CHAN; else if( range->max > 0.0086 ) return EEPROM_8600uV_CHAN; return -1; } static int ai_low_cal_source_64xx( calibration_setup_t *setup, unsigned int range_index ) { comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, range_index ); if( range == NULL ) { fprintf(stderr, "%s: failed to get range\n", __FUNCTION__); return -1; } if( range->min > -0.001 ) return CS_64XX_8600uV; else return CS_64XX_GROUND; } static int ai_high_cal_source_64xx( calibration_setup_t *setup, unsigned int range_index ) { comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, range_index ); if( range == NULL ) { fprintf(stderr, "%s: failed to get range\n", __FUNCTION__); return -1; } if( range->max > 7.0 ) return CS_64XX_7V; else if( range->max > 3.5 ) return CS_64XX_3500mV; else if( range->max > 0.875 ) return CS_64XX_875mV; else if( range->max > 0.0086 ) return CS_64XX_8600uV; return -1; } static int ao_cal_src_64xx( unsigned int channel ) { switch( channel ) { case 0: return CS_64XX_DAC0; break; case 1: return CS_64XX_DAC1; break; default: return -1; break; } } static int ao_set_high_target_64xx( calibration_setup_t *setup, unsigned int obs, unsigned int range_index ) { double target; comedi_range *range; range = comedi_get_range( setup->dev, setup->da_subdev, 0, range_index ); if( range == NULL ) { fprintf(stderr, "%s: failed to get range\n", __FUNCTION__); return -1; } target = range->max * 0.9; set_target( setup, obs, target ); return 0; } static int init_observables_64xx( calibration_setup_t *setup ) { comedi_insn tmpl; observable *o; int retval; float target; int range, num_ai_ranges, num_ao_ranges; memset( &tmpl, 0, sizeof(tmpl) ); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); if( num_ai_ranges < 0 ) { fprintf(stderr, "%s: failed to get number of ai ranges\n", __FUNCTION__); return -1; } setup->n_observables = 0; for( range = 0; range < num_ai_ranges; range++ ) { o = setup->observables + ai_ground_observable_index_64xx( setup, 0, range ); retval = ai_low_cal_source_64xx( setup, range ); if( retval < 0 ) return -1; o->reference_source = retval; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, range %i, ground referenced", o->reference_source, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; o->target = 0.0; setup->n_observables++; o = setup->observables + ai_high_observable_index_64xx( setup, 0, range ); retval = ai_high_cal_source_64xx( setup, range ); if( retval < 0 ) return -1; o->reference_source = retval; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, range %i, ground referenced", o->reference_source, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->name = "calibration source, 10V bipolar range, ground referenced"; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; retval = cb_actual_source_voltage( setup->dev, setup->eeprom_subdev, source_eeprom_addr_64xx( setup, range ), &target ); if( retval < 0 ) return -1; o->target = target; setup->n_observables++; } if( setup->da_subdev >= 0 ) { comedi_insn po_tmpl; memset( &po_tmpl, 0, sizeof(po_tmpl) ); po_tmpl.insn = INSN_WRITE; po_tmpl.n = 1; po_tmpl.subdev = setup->da_subdev; num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); if( num_ao_ranges < 0 ) { fprintf(stderr, "%s: failed to get number of ao ranges\n", __FUNCTION__); return -1; } for( range = 0; range < num_ao_ranges; range++ ) { int dac_chan, ai_range; ai_range = get_bipolar_lowgain( setup->dev, setup->ad_subdev ); if( ai_range < 0 ) return -1; for( dac_chan = 0; dac_chan < 2; dac_chan++ ) { o = setup->observables + ao_ground_observable_index_64xx( setup, dac_chan, range ); o->reference_source = ao_cal_src_64xx( dac_chan ); assert( o->name == NULL ); if( asprintf( &o->name, "dac%i low, range %i, ground referenced", dac_chan, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( dac_chan, range, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, ai_range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; set_target( setup, ao_ground_observable_index_64xx( setup, dac_chan, range ), 0.0 ); setup->n_observables++; o = setup->observables + ao_high_observable_index_64xx( setup, dac_chan, range ); o->reference_source = ao_cal_src_64xx( dac_chan ); assert( o->name == NULL ); if( asprintf( &o->name, "dac%i high, range %i, ground referenced", dac_chan, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( dac_chan, range, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, ai_range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; retval = ao_set_high_target_64xx( setup, ao_high_observable_index_64xx( setup, dac_chan, range ), range ); if( retval < 0 ) return -1; setup->n_observables++; } } } return 0; } static int ai_high_observable_index_60xx( const calibration_setup_t *setup, unsigned int channel, unsigned int ai_range ) { return ai_range * 2 + 1; } static int ai_ground_observable_index_60xx( const calibration_setup_t *setup, unsigned int channel, unsigned int ai_range ) { return ai_range * 2; } static int ao_high_observable_index_60xx( const calibration_setup_t *setup, unsigned int channel, unsigned int ao_range ) { int num_ai_ranges; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges >= 0 ); return 2 * num_ai_ranges + 2 * channel + 4 * ao_range + 1; } static int ao_ground_observable_index_60xx( const calibration_setup_t *setup, unsigned int channel, unsigned int ao_range ) { int num_ai_ranges; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges >= 0 ); return 2 * num_ai_ranges + 2 * channel + 4 * ao_range; } static int ai_cal_src_voltage_60xx( calibration_setup_t *setup, unsigned int calibration_source, float *voltage ) { enum source_eeprom_addr { EEPROM_10V_CHAN = 0x30, EEPROM_5V_CHAN = 0x32, EEPROM_500mV_CHAN = 0x38, EEPROM_50mV_CHAN = 0x3e, EEPROM_8mV_CHAN = 0x40, // bogus? }; int retval; switch( calibration_source ) { case CS_60XX_GROUND: *voltage = 0.0; retval = 0; break; case CS_60XX_10V: retval = cb_actual_source_voltage( setup->dev, setup->eeprom_subdev, EEPROM_10V_CHAN, voltage ); break; case CS_60XX_5V: retval = cb_actual_source_voltage( setup->dev, setup->eeprom_subdev, EEPROM_5V_CHAN, voltage ); break; case CS_60XX_500mV: retval = cb_actual_source_voltage( setup->dev, setup->eeprom_subdev, EEPROM_500mV_CHAN, voltage ); break; case CS_60XX_50mV: retval = cb_actual_source_voltage( setup->dev, setup->eeprom_subdev, EEPROM_50mV_CHAN, voltage ); break; default: fprintf( stderr, "invalid calibration_source in ai_cal_src_voltage_60xx()\n" ); retval = -1; break; } return retval; } static int high_ai_cal_src_60xx( calibration_setup_t *setup, unsigned int ai_range ) { comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, ai_range ); if( range == NULL ) { fprintf(stderr, "%s: failed to get range\n", __FUNCTION__); return -1; } if( range->max > 9.999 ) return CS_60XX_10V; else if( range->max > 4.999 ) return CS_60XX_5V; else if( range->max > 0.4999 ) return CS_60XX_500mV; else if( range->max > 0.04999 ) return CS_60XX_50mV; return -1; } static int ao_cal_src_60xx( unsigned int channel ) { switch( channel ) { case 0: return CS_60XX_DAC0; break; case 1: return CS_60XX_DAC1; break; default: return -1; break; } } static int init_observables_60xx( calibration_setup_t *setup ) { comedi_insn tmpl; observable *o; int retval, num_ranges, i; float target; enum { CAL_SRC_GROUND = 0, }; memset( &tmpl, 0, sizeof(tmpl) ); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; setup->n_observables = 0; num_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); if( num_ranges < 0 ) { fprintf(stderr, "%s: failed to get number of ai ranges\n", __FUNCTION__); return -1; } for( i = 0; i < num_ranges; i++ ) { o = setup->observables + ai_ground_observable_index_60xx( setup, 0, i ); o->reference_source = CAL_SRC_GROUND; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, range %i, ground referenced", o->reference_source, i ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, i, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; o->target = 0.0; setup->n_observables++; o = setup->observables + ai_high_observable_index_60xx( setup, 0, i ); retval = high_ai_cal_src_60xx( setup, i ); if( retval < 0 ) return -1; o->reference_source = retval; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, range %i, ground referenced", o->reference_source, i ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, i, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; retval = ai_cal_src_voltage_60xx( setup, o->reference_source, &target ); if( retval < 0 ) return -1; o->target = target; setup->n_observables++; } if( setup->da_subdev >= 0 ) { comedi_insn po_tmpl; memset( &po_tmpl, 0, sizeof(po_tmpl) ); po_tmpl.insn = INSN_WRITE; po_tmpl.n = 1; po_tmpl.subdev = setup->da_subdev; num_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); if( num_ranges < 0 ) { fprintf(stderr, "%s: failed to get number of ao ranges\n", __FUNCTION__); return -1; } for( i = 0; i < num_ranges; i++ ) { int dac_chan; for( dac_chan = 0; dac_chan < 2; dac_chan++ ) { o = setup->observables + ao_ground_observable_index_60xx( setup, dac_chan, i ); o->reference_source = ao_cal_src_60xx( dac_chan ); assert( o->name == NULL ); if( asprintf( &o->name, "dac%i low, range %i, ground referenced", dac_chan, i ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( dac_chan, i, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, 0, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; set_target( setup, ao_ground_observable_index_60xx( setup, dac_chan, i ), 0.0 ); setup->n_observables++; o = setup->observables + ao_high_observable_index_60xx( setup, dac_chan, i ); o->reference_source = ao_cal_src_60xx( dac_chan ); assert( o->name == NULL ); if( asprintf( &o->name, "dac%i high, range %i, ground referenced", dac_chan, i ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( dac_chan, i, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, 0, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; set_target( setup, ao_high_observable_index_60xx( setup, dac_chan, i ), 9.0 ); setup->n_observables++; } } } return 0; } static int ai_low_observable_index_4020( const calibration_setup_t *setup, unsigned int channel, unsigned int ai_range ) { return 4 * channel + 2 * ai_range; } static int ai_high_observable_index_4020( const calibration_setup_t *setup, unsigned int channel, unsigned int ai_range ) { return ai_low_observable_index_4020( setup, channel, ai_range ) + 1; } static int high_ai_cal_src_4020( calibration_setup_t *setup, unsigned int ai_range ) { comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, ai_range ); if( range == NULL ) { fprintf(stderr, "%s: failed to get range\n", __FUNCTION__); return -1; } if( range->max > 4.4 ) return CS_4020_4375mV; else if( range->max > 0.7 ) return CS_4020_625mV; return -1; } static int source_eeprom_addr_4020( calibration_setup_t *setup, unsigned int range_index ) { enum source_eeprom_addr { EEPROM_4375mV_CHAN = 0x30, EEPROM_625mV_CHAN = 0x32, }; comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, range_index ); if( range == NULL ) { fprintf(stderr, "%s: failed to get range\n", __FUNCTION__); return -1; } if( range->max > 4.4 ) return EEPROM_4375mV_CHAN; else if( range->max > 0.7 ) return EEPROM_625mV_CHAN; return -1; } static int init_observables_4020( calibration_setup_t *setup ) { comedi_insn tmpl; observable *o; float target; int retval; int range, channel, num_ranges, num_channels; memset( &tmpl, 0, sizeof(tmpl) ); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; num_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); if( num_ranges < 0 ) { fprintf(stderr, "%s: failed to get number of ai ranges\n", __FUNCTION__); return -1; } num_channels = comedi_get_n_channels( setup->dev, setup->ad_subdev ); if( num_channels < 0 ) { fprintf(stderr, "%s: failed to get number of ai channels\n", __FUNCTION__); return -1; } setup->n_observables = 0; for( channel = 0; channel < num_channels; channel++ ) { for( range = 0; range < num_ranges; range++ ) { o = setup->observables + ai_low_observable_index_4020( setup, channel, range ); assert( o->name == NULL ); if( asprintf( &o->name, "ground calibration source, ch %i, range %i, ground referenced", channel, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->reference_source = CS_4020_GROUND; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( channel, range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; o->target = 0.0; setup->n_observables++; o = setup->observables + ai_high_observable_index_4020( setup, channel, range ); retval = high_ai_cal_src_4020( setup, range ); if( retval < 0 ) return -1; o->reference_source = retval; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, ch %i, range %i, ground referenced", o->reference_source, channel, range ) < 0) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( channel, range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; retval = cb_actual_source_voltage( setup->dev, setup->eeprom_subdev, source_eeprom_addr_4020( setup, range ), &target ); if( retval < 0 ) return retval; o->target = target; setup->n_observables++; } } return 0; } static int adc_offset_64xx( unsigned int channel ) { return ADC_OFFSET_64XX; } static int adc_gain_64xx( unsigned int channel ) { return ADC_GAIN_64XX; } static int dac_gain_coarse_64xx( unsigned int channel ) { if( channel ) return DAC1_GAIN_COARSE_64XX; else return DAC0_GAIN_COARSE_64XX; } static int dac_gain_fine_64xx( unsigned int channel ) { if( channel ) return DAC1_GAIN_FINE_64XX; else return DAC0_GAIN_FINE_64XX; } static int dac_offset_coarse_64xx( unsigned int channel ) { if( channel ) return DAC1_OFFSET_COARSE_64XX; else return DAC0_OFFSET_COARSE_64XX; } static int dac_offset_fine_64xx( unsigned int channel ) { if( channel ) return DAC1_OFFSET_FINE_64XX; else return DAC0_OFFSET_FINE_64XX; } static int cal_cb_pci_64xx( calibration_setup_t *setup ) { generic_layout_t layout; init_generic_layout( &layout ); layout.adc_gain = adc_gain_64xx; layout.adc_offset = adc_offset_64xx; layout.dac_gain = dac_gain_coarse_64xx; layout.dac_gain_fine = dac_gain_fine_64xx; layout.dac_offset = dac_offset_coarse_64xx; layout.dac_offset_fine = dac_offset_fine_64xx; layout.adc_high_observable = ai_high_observable_index_64xx; layout.adc_ground_observable = ai_ground_observable_index_64xx; layout.dac_high_observable = ao_high_observable_index_64xx; layout.dac_ground_observable = ao_ground_observable_index_64xx; layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); return generic_cal_by_range( setup, &layout ); } static int adc_gain_coarse_60xx( unsigned int channel ) { return ADC_GAIN_COARSE_60XX; } static int adc_gain_fine_60xx( unsigned int channel ) { return ADC_GAIN_FINE_60XX; } static int adc_offset_coarse_60xx( unsigned int channel ) { return ADC_OFFSET_COARSE_60XX; } static int adc_offset_fine_60xx( unsigned int channel ) { return ADC_OFFSET_FINE_60XX; } static int dac_gain_60xx( unsigned int channel ) { if( channel ) return DAC1_GAIN_60XX; else return DAC0_GAIN_60XX; } static int dac_offset_60xx( unsigned int channel ) { if( channel ) return DAC1_OFFSET_60XX; else return DAC0_OFFSET_60XX; } static int cal_cb_pci_60xx( calibration_setup_t *setup ) { generic_layout_t layout; init_generic_layout( &layout ); layout.adc_gain = adc_gain_coarse_60xx; layout.adc_gain_fine = adc_gain_fine_60xx; layout.adc_offset = adc_offset_coarse_60xx; layout.adc_offset_fine = adc_offset_fine_60xx; layout.dac_gain = dac_gain_60xx; layout.dac_offset = dac_offset_60xx; layout.adc_high_observable = ai_high_observable_index_60xx; layout.adc_ground_observable = ai_ground_observable_index_60xx; layout.dac_high_observable = ao_high_observable_index_60xx; layout.dac_ground_observable = ao_ground_observable_index_60xx; layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); return generic_cal_by_range( setup, &layout ); } static int adc_offset_4020( unsigned int channel ) { return channel; } static int adc_gain_4020( unsigned int channel ) { return 4 + channel; } static int cal_cb_pci_4020( calibration_setup_t *setup ) { generic_layout_t layout; init_generic_layout( &layout ); layout.adc_offset = adc_offset_4020; layout.adc_gain = adc_gain_4020; layout.adc_high_observable = ai_high_observable_index_4020; layout.adc_ground_observable = ai_low_observable_index_4020; layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); return generic_cal_by_channel_and_range( setup, &layout ); } #ifdef notused static int init_observables_unknown( calibration_setup_t *setup ) { comedi_insn tmpl; observable *o; int retval, num_ranges, i; enum { CAL_SRC_GROUND = 0, }; static const int num_cal_sources = 16; static const int range = 0; memset( &tmpl, 0, sizeof(tmpl) ); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; setup->n_observables = 0; num_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); if( num_ranges < 0 ) { fprintf(stderr, "%s: failed to get number of ai ranges\n", __FUNCTION__); return -1; } for( i = 0; i < num_cal_sources; i++ ) { o = setup->observables + i; o->reference_source = i; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, range %i, ground referenced", o->reference_source, range) < 0) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; o->target = 0.0; setup->n_observables++; } for(i = 0; i < 16; ++i) { int eeprom_channel = 0x30 + i; float voltage; retval = cb_actual_source_voltage(setup->dev, setup->eeprom_subdev, eeprom_channel, &voltage); if(retval == 0) printf("eeprom ch 0x%x gives calibration source of %gV\n", eeprom_channel, voltage); else printf("cb_actual_source_voltage returned %i\n", retval); } return 0; } #endif /* We were unable to read the onboard calibration reference voltages on the 6052, so we'll just * load caldac values from eeprom until the problem is resolved somehow. */ static int setup_cb_pci_6052( calibration_setup_t *setup ) { if( setup->caldac_subdev < 0 ) { fprintf( stderr, "no caldac subdevice found\n"); return -1; } setup->do_cal = &cal_cb_pci_6052; setup_caldacs(setup, setup->caldac_subdev); return 0; } /* load analog input caldacs from eeprom values (depend on range used) */ static void grab_ai_calibration_cb_pci_6052(calibration_setup_t *setup, unsigned int range) { comedi_calibration_setting_t *current_cal; enum source_eeprom_addr { EEPROM_5V_CHAN = 0x30, EEPROM_3500mV_CHAN = 0x32, EEPROM_1750mV_CHAN = 0x34, EEPROM_875mV_CHAN = 0x36, EEPROM_8600uV_CHAN = 0x38, }; /* According to Measurement Computing the adc eeprom channels are: ADC Calibration values 50 BIP10V offset 51 BIP10V gain 52 BIP5V offset 53 BIP5V gain 54 BIP2.5V offset 55 BIP2.5V gain 56 BIP1V offset 57 BIP1V gain 58 BIP0.5V offset 59 BIP0.5V gain 5A BIP0.25V offset 5B BIP0.25V gain 5C BIP0.1V offset 5D BIP0.1V gain 5E BIP50mV offset 5F BIP50mV gain 60 UNI10V offset 61 UNI10V gain 62 UNI5V offset 63 UNI5V gain 64 UNI2.5V offset 65 UNI2.5V gain 66 UNI1V offset 67 UNI1V gain 68 UNI0.5V offset 69 UNI0.5V gain 6A UNI0.25V offset 6B UNI0.25V gain 6C UNI0.1V offset 6D UNI0.1V gain */ int offset_eeprom_channel; int gain_eeprom_channel; int value; const double epsilon = 0.001; comedi_range *range_ptr = comedi_get_range(setup->dev, setup->ad_subdev, 0, range); if(range_ptr == NULL) { fprintf(stderr, "%s: comedi_get_range returned NULL\n", __FUNCTION__); abort(); } if(is_unipolar(setup->dev, setup->ad_subdev, 0, range) == 0) { if(fabs(10. - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x50; gain_eeprom_channel = 0x51; }else if(fabs(5. - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x52; gain_eeprom_channel = 0x53; }else if(fabs(2.5 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x54; gain_eeprom_channel = 0x55; }else if(fabs(1. - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x56; gain_eeprom_channel = 0x57; }else if(fabs(0.5 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x58; gain_eeprom_channel = 0x59; }else if(fabs(0.25 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x5a; gain_eeprom_channel = 0x5b; }else if(fabs(0.1 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x5c; gain_eeprom_channel = 0x5d; }else if(fabs(0.5 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x5e; gain_eeprom_channel = 0x5f; }else { fprintf(stderr, "%s: logic error, failed to determine eeprom channel for range min=%g, max=%g\n", __FUNCTION__, range_ptr->min, range_ptr->max); abort(); } }else { if(fabs(10. - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x60; gain_eeprom_channel = 0x61; }else if(fabs(5. - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x62; gain_eeprom_channel = 0x63; }else if(fabs(2.5 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x64; gain_eeprom_channel = 0x65; }else if(fabs(1. - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x66; gain_eeprom_channel = 0x67; }else if(fabs(0.5 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x68; gain_eeprom_channel = 0x69; }else if(fabs(0.25 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x6a; gain_eeprom_channel = 0x6b; }else if(fabs(0.1 - range_ptr->max) < epsilon) { offset_eeprom_channel = 0x6c; gain_eeprom_channel = 0x6d; }else { fprintf(stderr, "%s: logic error, failed to determine eeprom channel for range min=%g, max=%g\n", __FUNCTION__, range_ptr->min, range_ptr->max); abort(); } } current_cal = sc_alloc_calibration_setting(setup->new_calibration); /* load offset */ value = read_eeprom(setup, offset_eeprom_channel); if(value < 0) { fprintf(stderr, "%s: line %i: read_eeprom() returned error\n", __FUNCTION__, __LINE__); abort(); } update_caldac(setup, ADC_OFFSET_6052, value); sc_push_caldac(current_cal, setup->caldacs[ADC_OFFSET_6052]); /* load gain */ value = read_eeprom(setup, gain_eeprom_channel); if(value < 0) { fprintf(stderr, "%s: line %i: read_eeprom() returned error\n", __FUNCTION__, __LINE__); abort(); } update_caldac(setup, ADC_GAIN_6052, value); sc_push_caldac(current_cal, setup->caldacs[ADC_GAIN_6052]); current_cal->subdevice = setup->ad_subdev; sc_push_channel(current_cal, SC_ALL_CHANNELS); sc_push_range(current_cal, range); sc_push_aref(current_cal, SC_ALL_AREFS); DPRINT( 0, "loaded adc range %i calibration from eeprom\n", range ); } static int dac_gain_coarse_6052( unsigned int channel ) { if( channel ) return DAC1_GAIN_COARSE_6052; else return DAC0_GAIN_COARSE_6052; } static int dac_gain_fine_6052( unsigned int channel ) { if( channel ) return DAC1_GAIN_FINE_6052; else return DAC0_GAIN_FINE_6052; } static int dac_offset_coarse_6052( unsigned int channel ) { if( channel ) return DAC1_OFFSET_COARSE_6052; else return DAC0_OFFSET_COARSE_6052; } static int dac_offset_fine_6052( unsigned int channel ) { if( channel ) return DAC1_OFFSET_FINE_6052; else return DAC0_OFFSET_FINE_6052; } /* load analog output caldacs from eeprom values (depend on range used) */ static void grab_ao_calibration_cb_pci_6052(calibration_setup_t *setup, unsigned int channel, unsigned int range) { comedi_calibration_setting_t *current_cal; int value; int gain_eeprom_chan; int offset_eeprom_chan; /* According to Measurement Computing the dac eeprom channels are: DAC Calibration values 70 DAC0 BIP10V coarse offset DAC0 BIP10V fine offset 71 DAC0 BIP10V coarse gain DAC0 BIP10V fine gain 72 DAC0 UNI10V coarse offset DAC0 UNI10V fine offset 73 DAC0 UNI10V coarse gain DAC0 UNI10V fine gain 74 DAC1 BIP10V coarse offset DAC1 BIP10V fine offset 75 DAC1 BIP10V coarse gain DAC1 BIP10V fine gain 76 DAC1 UNI10V coarse offset DAC1 UNI10V fine offset 77 DAC1 UNI10V coarse gain DAC1 UNI10V fine gain */ current_cal = sc_alloc_calibration_setting(setup->new_calibration); if(is_unipolar(setup->dev, setup->da_subdev, channel, range)) { switch(channel) { case 0: offset_eeprom_chan = 0x72; gain_eeprom_chan = 0x73; break; case 1: offset_eeprom_chan = 0x76; gain_eeprom_chan = 0x77; break; default: fprintf(stderr, "%s: line %i: logic error\n", __FUNCTION__, __LINE__); abort(); break; } }else { switch(channel) { case 0: offset_eeprom_chan = 0x70; gain_eeprom_chan = 0x71; break; case 1: offset_eeprom_chan = 0x74; gain_eeprom_chan = 0x75; break; default: fprintf(stderr, "%s: line %i: logic error\n", __FUNCTION__, __LINE__); abort(); break; } } /* load offset */ value = read_eeprom(setup, offset_eeprom_chan); if(value < 0) { fprintf(stderr, "%s: line %i: read_eeprom() returned error\n", __FUNCTION__, __LINE__); abort(); } update_caldac(setup, dac_offset_coarse_6052(channel), (value >> 8) & 0xff); sc_push_caldac(current_cal, setup->caldacs[dac_offset_coarse_6052(channel)]); update_caldac(setup, dac_offset_fine_6052(channel), value & 0xff); sc_push_caldac(current_cal, setup->caldacs[dac_offset_fine_6052(channel)]); // load gain calibration value = read_eeprom(setup, gain_eeprom_chan); if(value < 0) { fprintf(stderr, "%s: line %i: read_eeprom() returned error\n", __FUNCTION__, __LINE__); abort(); } update_caldac(setup, dac_gain_coarse_6052(channel), (value >> 8) & 0xff); sc_push_caldac(current_cal, setup->caldacs[dac_gain_coarse_6052(channel)]); update_caldac(setup, dac_gain_fine_6052(channel), value & 0xff); sc_push_caldac(current_cal, setup->caldacs[dac_gain_fine_6052(channel)]); current_cal->subdevice = setup->da_subdev; sc_push_channel(current_cal, channel); sc_push_range(current_cal, range); sc_push_aref(current_cal, SC_ALL_AREFS); DPRINT( 0, "loaded dac channel %i range %i calibration from eeprom\n", channel, range ); } static int cal_cb_pci_6052( calibration_setup_t *setup ) { int range, channel, num_ai_ranges, num_ao_ranges; num_ai_ranges = comedi_get_n_ranges(setup->dev, setup->ad_subdev, 0); if(num_ai_ranges < 0) { fprintf(stderr, "%s: line %i: comedi_get_n_ranges() returned error\n", __FUNCTION__, __LINE__); abort(); } num_ao_ranges = comedi_get_n_ranges(setup->dev, setup->da_subdev, 0); if(num_ao_ranges < 0) { fprintf(stderr, "%s: line %i: comedi_get_n_ranges() returned error\n", __FUNCTION__, __LINE__); abort(); } for(range = 0; range < num_ai_ranges; range++) grab_ai_calibration_cb_pci_6052(setup, range); if(setup->da_subdev >= 0 && setup->do_output) { for(channel = 0; channel < 2; channel++) { for(range = 0; range < num_ao_ranges; range++) grab_ao_calibration_cb_pci_6052(setup, channel, range); } } return write_calibration_file(setup->cal_save_file_path, setup->new_calibration); } comedi_calibrate-5/comedi_calibrate/cal_common.c0000644000000000000000000004463612416542124017114 00000000000000/*************************************************************************** cal_common.c - shared calibration routines ------------------- begin : Fri May 2, 2003 copyright : (C) 2003 by Frank Mori Hess email : fmhess@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #define _GNU_SOURCE #include "calib.h" #include #include #include void generic_do_cal( calibration_setup_t *setup, comedi_calibration_setting_t *saved_cal, int observable, int caldac ) { if( caldac < 0 || observable < 0 ) return; cal_binary( setup, observable, caldac ); sc_push_caldac( saved_cal, setup->caldacs[ caldac ] ); } void generic_do_relative( calibration_setup_t *setup, comedi_calibration_setting_t *saved_cal, int observable1, int observable2, int caldac ) { if( caldac < 0 || observable1 < 0 || observable2 < 0 ) return; cal_relative_binary( setup, observable1, observable2, caldac ); sc_push_caldac( saved_cal, setup->caldacs[ caldac ] ); } void generic_do_linearity( calibration_setup_t *setup, comedi_calibration_setting_t *saved_cal, int observable1, int observable2, int observable3, int caldac ) { if( caldac < 0 || observable1 < 0 || observable2 < 0 || observable3 < 0 ) return; cal_linearity_binary( setup, observable1, observable2, observable3, caldac ); sc_push_caldac( saved_cal, setup->caldacs[ caldac ] ); } void generic_peg( calibration_setup_t *setup, int observable, int caldac, int maximize ) { if( caldac < 0 || observable < 0 ) return; peg_binary( setup, observable, caldac, maximize ); } void generic_prep_adc_caldacs( calibration_setup_t *setup, const generic_layout_t *layout, unsigned int channel, unsigned int range ) { int retval; if( setup->ad_subdev < 0 ) return; if( setup->old_calibration == NULL ) { reset_caldac( setup, layout->adc_offset( channel ) ); reset_caldac( setup, layout->adc_gain( channel ) ); reset_caldac( setup, layout->adc_offset_fine( channel ) ); reset_caldac( setup, layout->adc_gain_fine( channel ) ); reset_caldac( setup, layout->adc_postgain_offset( channel ) ); }else { retval = comedi_apply_parsed_calibration( setup->dev, setup->ad_subdev, channel, range, AREF_GROUND, setup->old_calibration ); if( retval < 0 ) { DPRINT( 0, "Failed to apply existing calibration, reseting dac caldacs.\n" ); reset_caldac( setup, layout->adc_offset( channel ) ); reset_caldac( setup, layout->adc_gain( channel ) ); reset_caldac( setup, layout->adc_offset_fine( channel ) ); reset_caldac( setup, layout->adc_gain_fine( channel ) ); reset_caldac( setup, layout->adc_postgain_offset( channel ) ); } } } void generic_prep_dac_caldacs( calibration_setup_t *setup, const generic_layout_t *layout, unsigned int channel, unsigned int range ) { int retval; if( setup->da_subdev < 0 ) return; if( setup->old_calibration == NULL ) { reset_caldac( setup, layout->dac_offset( channel ) ); reset_caldac( setup, layout->dac_gain( channel ) ); reset_caldac( setup, layout->dac_linearity( channel ) ); reset_caldac( setup, layout->dac_offset_fine( channel ) ); reset_caldac( setup, layout->dac_gain_fine( channel ) ); reset_caldac( setup, layout->dac_linearity_fine( channel ) ); }else { retval = comedi_apply_parsed_calibration( setup->dev, setup->da_subdev, channel, range, AREF_GROUND, setup->old_calibration ); if( retval < 0 ) { DPRINT( 0, "Failed to apply existing calibration, reseting dac caldacs.\n" ); reset_caldac( setup, layout->dac_offset( channel ) ); reset_caldac( setup, layout->dac_gain( channel ) ); reset_caldac( setup, layout->dac_linearity( channel ) ); reset_caldac( setup, layout->dac_offset_fine( channel ) ); reset_caldac( setup, layout->dac_gain_fine( channel ) ); reset_caldac( setup, layout->dac_linearity_fine( channel ) ); } } } static void generic_prep_adc_for_dac( calibration_setup_t *setup, comedi_calibration_t *calibration, int observable ) { unsigned int adc_channel, adc_range; int chanspec; if( observable < 0 ) return; chanspec = setup->observables[ observable ].observe_insn.chanspec; adc_channel = CR_CHAN( chanspec ); adc_range = CR_RANGE( chanspec ); comedi_apply_parsed_calibration( setup->dev, setup->ad_subdev, adc_channel, adc_range, 0, calibration ); } static int dac_cal_is_good( calibration_setup_t *setup, const generic_layout_t *layout, unsigned int channel, unsigned int range ) { if( fabs( fractional_offset( setup, setup->da_subdev, channel, range, layout->dac_ground_observable( setup, channel, range ) ) ) > layout->dac_fractional_tolerance ) return 0; else if( fabs( fractional_offset( setup, setup->da_subdev, channel, range, layout->dac_high_observable( setup, channel, range ) ) ) > layout->dac_fractional_tolerance ) return 0; return 1; } static void generic_do_dac_channel( calibration_setup_t *setup, const generic_layout_t *layout , comedi_calibration_t *calibration, comedi_calibration_setting_t *current_cal, unsigned int channel, unsigned int range ) { static const int max_iterations = 4; int i; current_cal->subdevice = setup->da_subdev; generic_prep_adc_for_dac( setup, calibration, layout->dac_ground_observable( setup, channel, range ) ); for( i = 0; i < max_iterations; i++ ) { generic_do_linearity(setup, current_cal, layout->dac_ground_observable( setup, channel, range ), layout->dac_mid_observable( setup, channel, range ), layout->dac_high_observable( setup, channel, range ), layout->dac_linearity(channel)); generic_do_relative( setup, current_cal, layout->dac_high_observable( setup, channel, range ), layout->dac_ground_observable( setup, channel, range ),layout->dac_gain( channel ) ); generic_do_cal( setup, current_cal, layout->dac_ground_observable( setup, channel, range ), layout->dac_offset( channel ) ); generic_do_linearity(setup, current_cal, layout->dac_ground_observable( setup, channel, range ), layout->dac_mid_observable( setup, channel, range ), layout->dac_high_observable( setup, channel, range ), layout->dac_linearity_fine(channel)); generic_do_relative( setup, current_cal, layout->dac_high_observable( setup, channel, range ), layout->dac_ground_observable( setup, channel, range ), layout->dac_gain_fine( channel ) ); generic_do_cal( setup, current_cal, layout->dac_ground_observable( setup, channel, range ), layout->dac_offset_fine( channel ) ); if( dac_cal_is_good( setup, layout, channel, range ) ) break; } if( i == max_iterations ) DPRINT(0, "WARNING: unable to calibrate dac channel %i, range %i to desired %g tolerance\n", channel, range, layout->dac_fractional_tolerance ); sc_push_channel( current_cal, channel ); sc_push_range( current_cal, range ); sc_push_aref( current_cal, SC_ALL_AREFS ); } static int adc_cal_is_good( calibration_setup_t *setup, const generic_layout_t *layout, unsigned int channel, unsigned int range ) { if( fabs( fractional_offset( setup, setup->ad_subdev, channel, range, layout->adc_ground_observable( setup, channel, range ) ) ) > layout->adc_fractional_tolerance ) return 0; else if( fabs( fractional_offset( setup, setup->ad_subdev, channel, range, layout->adc_high_observable( setup, channel, range ) ) ) > layout->adc_fractional_tolerance ) return 0; return 1; } static void generic_do_adc_channel( calibration_setup_t *setup, const generic_layout_t *layout, comedi_calibration_setting_t *current_cal, unsigned int channel, unsigned int range ) { static const int max_iterations = 4; int i; current_cal->subdevice = setup->ad_subdev; for( i = 0; i < max_iterations; i++ ) { generic_do_relative( setup, current_cal, layout->adc_high_observable( setup, channel, range ), layout->adc_ground_observable( setup, channel, range ), layout->adc_gain( channel ) ); generic_do_cal( setup, current_cal, layout->adc_ground_observable( setup, channel, range ), layout->adc_offset( channel ) ); generic_do_relative( setup, current_cal, layout->adc_high_observable( setup, channel, range ), layout->adc_ground_observable( setup, channel, range ), layout->adc_gain_fine( channel ) ); generic_do_cal( setup, current_cal, layout->adc_ground_observable( setup, channel, range ), layout->adc_offset_fine( channel ) ); if( adc_cal_is_good( setup, layout, channel, range ) ) break; } if( i == max_iterations ) DPRINT(0, "WARNING: unable to calibrate adc channel %i, range %i to desired %g tolerance\n", channel, range, layout->adc_fractional_tolerance ); sc_push_channel( current_cal, channel ); sc_push_range( current_cal, range ); sc_push_aref( current_cal, SC_ALL_AREFS ); } static void generic_do_adc_postgain_offset( calibration_setup_t *setup, const generic_layout_t *layout, comedi_calibration_setting_t *current_cal, unsigned int channel, int unipolar ) { int lowgain, highgain; int bip_lowgain; current_cal->subdevice = setup->ad_subdev; bip_lowgain = get_bipolar_lowgain( setup->dev, setup->ad_subdev ); if( unipolar ) { lowgain = get_unipolar_lowgain( setup->dev, setup->ad_subdev ); highgain = get_unipolar_highgain( setup->dev, setup->ad_subdev ); }else { lowgain = bip_lowgain; highgain = get_bipolar_highgain( setup->dev, setup->ad_subdev ); } generic_prep_adc_caldacs( setup, layout, channel, highgain ); if( unipolar ) { /* Need to make sure we aren't stuck on zero for unipolar, * by setting pregain offset to maximum. Use bipolar lowgain * for pegs to make sure we aren't out-of-range. */ generic_peg( setup, layout->adc_ground_observable( setup, channel, bip_lowgain ), layout->adc_offset( channel ), 1 ); generic_peg( setup, layout->adc_ground_observable( setup, channel, bip_lowgain ), layout->adc_offset_fine( channel ), 1 ); } generic_do_relative( setup, current_cal, layout->adc_ground_observable( setup, channel, lowgain ), layout->adc_ground_observable( setup, channel, highgain ), layout->adc_postgain_offset( channel ) ); sc_push_channel( current_cal, channel ); sc_push_aref( current_cal, SC_ALL_AREFS ); } int generic_cal_by_channel_and_range( calibration_setup_t *setup, const generic_layout_t *layout ) { int range, channel, num_ai_ranges, num_ai_channels, num_ao_ranges, num_ao_channels, retval; comedi_calibration_setting_t *current_cal; assert( comedi_range_is_chan_specific( setup->dev, setup->ad_subdev ) == 0 ); num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); if( num_ai_ranges < 0 ) return -1; num_ai_channels = comedi_get_n_channels( setup->dev, setup->ad_subdev ); if( num_ai_channels < 0 ) return -1; if(setup->da_subdev >= 0 && setup->do_output ) { assert( comedi_range_is_chan_specific( setup->dev, setup->da_subdev ) == 0 ); num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); if( num_ao_ranges < 0 ) return -1; num_ao_channels = comedi_get_n_channels( setup->dev, setup->da_subdev ); if( num_ao_channels < 0 ) return -1; }else num_ao_ranges = num_ao_channels = 0; for( channel = 0; channel < num_ai_channels; channel++ ) { int postgain_bip, postgain_unip; if( layout->adc_postgain_offset( 0 ) >= 0 ) { /* bipolar postgain */ current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_do_adc_postgain_offset( setup, layout, current_cal, channel, 0 ); for( range = 0; range < num_ai_ranges; range++ ) if( is_bipolar( setup->dev, setup->ad_subdev, channel, range ) ) sc_push_range( current_cal, range ); postgain_bip = setup->caldacs[ layout->adc_postgain_offset( channel ) ].value; /* unipolar postgain */ if( layout->do_adc_unipolar_postgain ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_do_adc_postgain_offset( setup, layout, current_cal, channel, 1 ); } for( range = 0; range < num_ai_ranges; range++ ) if( is_unipolar( setup->dev, setup->ad_subdev, channel, range ) ) sc_push_range( current_cal, range ); postgain_unip = setup->caldacs[ layout->adc_postgain_offset( channel ) ].value; }else postgain_bip = postgain_unip = -1; for( range = 0; range < num_ai_ranges; range++ ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_prep_adc_caldacs( setup, layout, channel, range ); if( is_unipolar( setup->dev, setup->ad_subdev, channel, range ) ) update_caldac( setup, layout->adc_postgain_offset( channel ), postgain_unip ); else update_caldac( setup, layout->adc_postgain_offset( channel ), postgain_bip ); generic_do_adc_channel( setup, layout, current_cal, channel, range ); } } for( channel = 0; channel < num_ao_channels; channel++ ) { for( range = 0; range < num_ao_ranges; range++ ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_prep_dac_caldacs( setup, layout, channel, range ); generic_do_dac_channel( setup, layout, setup->new_calibration, current_cal, channel, range ); } } retval = write_calibration_file(setup->cal_save_file_path, setup->new_calibration); return retval; } int generic_cal_by_range( calibration_setup_t *setup, const generic_layout_t *layout ) { int channel, range, num_ai_ranges, num_ao_ranges, num_ao_channels, retval; comedi_calibration_setting_t *current_cal; int postgain_bip, postgain_unip; assert( comedi_range_is_chan_specific( setup->dev, setup->ad_subdev ) == 0 ); num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); if( num_ai_ranges < 0 ) return -1; if(setup->da_subdev >= 0 && setup->do_output ) { assert( comedi_range_is_chan_specific( setup->dev, setup->da_subdev ) == 0 ); num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); if( num_ao_ranges < 0 ) return -1; num_ao_channels = comedi_get_n_channels( setup->dev, setup->da_subdev ); if( num_ao_channels < 0 ) return -1; }else num_ao_ranges = num_ao_channels = 0; if( layout->adc_postgain_offset( 0 ) >= 0 ) { /* bipolar postgain */ current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_do_adc_postgain_offset( setup, layout, current_cal, 0, 0 ); sc_push_channel( current_cal, SC_ALL_CHANNELS ); for( range = 0; range < num_ai_ranges; range++ ) if( is_bipolar( setup->dev, setup->ad_subdev, 0, range ) ) sc_push_range( current_cal, range ); postgain_bip = setup->caldacs[ layout->adc_postgain_offset( 0 ) ].value; /* unipolar postgain */ if( layout->do_adc_unipolar_postgain ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_do_adc_postgain_offset( setup, layout, current_cal, 0, 1 ); sc_push_channel( current_cal, SC_ALL_CHANNELS ); } for( range = 0; range < num_ai_ranges; range++ ) if( is_unipolar( setup->dev, setup->ad_subdev, 0, range ) ) sc_push_range( current_cal, range ); postgain_unip = setup->caldacs[ layout->adc_postgain_offset( 0 ) ].value; }else postgain_bip = postgain_unip = -1; for( range = 0; range < num_ai_ranges; range++ ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_prep_adc_caldacs( setup, layout, 0, range ); if( is_unipolar( setup->dev, setup->ad_subdev, 0, range ) ) update_caldac( setup, layout->adc_postgain_offset( 0 ), postgain_unip ); else update_caldac( setup, layout->adc_postgain_offset( 0 ), postgain_bip ); generic_do_adc_channel( setup, layout, current_cal, 0, range ); sc_push_channel( current_cal, SC_ALL_CHANNELS ); } for( channel = 0; channel < num_ao_channels; channel++ ) { for( range = 0; range < num_ao_ranges; range++ ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_prep_dac_caldacs( setup, layout, channel, range ); generic_do_dac_channel( setup, layout, setup->new_calibration, current_cal, channel, range ); } } retval = write_calibration_file(setup->cal_save_file_path, setup->new_calibration); return retval; } int generic_cal_ao(calibration_setup_t *setup, const generic_layout_t *layout ) { int channel, range, num_ao_ranges, num_ao_channels, retval; comedi_calibration_setting_t *current_cal; if(setup->da_subdev >= 0 && setup->do_output) { assert( comedi_range_is_chan_specific( setup->dev, setup->da_subdev ) == 0 ); num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); if( num_ao_ranges < 0 ) return -1; num_ao_channels = comedi_get_n_channels( setup->dev, setup->da_subdev ); if( num_ao_channels < 0 ) return -1; }else num_ao_ranges = num_ao_channels = 0; for( channel = 0; channel < num_ao_channels; channel++ ) { for( range = 0; range < num_ao_ranges; range++ ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); generic_prep_dac_caldacs( setup, layout, channel, range ); generic_do_dac_channel( setup, layout, setup->new_calibration, current_cal, channel, range ); } } retval = write_calibration_file(setup->cal_save_file_path, setup->new_calibration); return retval; } static int dummy_caldac( unsigned int channel ) { return -1; } static int dummy_observable( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return -1; } void init_generic_layout( generic_layout_t *layout ) { layout->adc_offset = dummy_caldac; layout->adc_offset_fine = dummy_caldac; layout->adc_gain = dummy_caldac; layout->adc_gain_fine = dummy_caldac; layout->adc_postgain_offset = dummy_caldac; layout->dac_offset = dummy_caldac; layout->dac_offset_fine = dummy_caldac; layout->dac_linearity = dummy_caldac; layout->dac_linearity_fine = dummy_caldac; layout->dac_gain = dummy_caldac; layout->dac_gain_fine = dummy_caldac; layout->adc_high_observable = dummy_observable; layout->adc_ground_observable = dummy_observable; layout->dac_high_observable = dummy_observable; layout->dac_mid_observable = dummy_observable; layout->dac_ground_observable = dummy_observable; layout->adc_fractional_tolerance = INFINITY; layout->adc_fractional_tolerance = INFINITY; layout->do_adc_unipolar_postgain = 0; } comedi_calibrate-5/comedi_calibrate/cb.c0000644000000000000000000004142212416542124015357 00000000000000/*************************************************************************** cb.c - calibration support for some Measurement computing boards. ------------------- begin : Sat Apr 27 2002 copyright : (C) 2002,2003 by Frank Mori Hess email : fmhess@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include "calib.h" char cb_id[] = "$Id$"; struct board_struct{ char *name; int status; int (*setup)( calibration_setup_t *setup ); }; static int setup_cb_pci_1xxx( calibration_setup_t *setup ); static int setup_cb_pci_1602_16( calibration_setup_t *setup ); static int cal_cb_pci_1xxx( calibration_setup_t *setup ); static int cal_cb_pci_1602_16( calibration_setup_t *setup ); static int init_observables_1xxx( calibration_setup_t *setup ); static struct board_struct boards[]={ { "pci-das1000", STATUS_DONE, setup_cb_pci_1xxx }, { "pci-das1001", STATUS_GUESS, setup_cb_pci_1xxx }, { "pci-das1002", STATUS_GUESS, setup_cb_pci_1xxx }, { "pci-das1200", STATUS_DONE, setup_cb_pci_1xxx }, { "pci-das1200/jr", STATUS_GUESS, setup_cb_pci_1xxx }, { "pci-das1602/12", STATUS_GUESS, setup_cb_pci_1xxx }, { "pci-das1602/16", STATUS_DONE, setup_cb_pci_1602_16 }, { "pci-das1602/16/jr", STATUS_GUESS, setup_cb_pci_1602_16 }, }; static const int num_boards = ( sizeof(boards) / sizeof(boards[0]) ); enum calibration_source_1xxx { CS_1XXX_GROUND = 0, CS_1XXX_7V = 1, CS_1002_3500mV = 2, CS_1002_1750mV = 3, CS_1001_88600uV = 3, CS_1XXX_875mV = 4, CS_1XXX_8600uV = 5, CS_1602_16_minus_10V = 5, CS_1XXX_DAC0 = 6, CS_1XXX_DAC1 = 7, }; static inline int CS_1XXX_DAC( unsigned int channel ) { if( channel ) return CS_1XXX_DAC1; else return CS_1XXX_DAC0; } int cb_setup( calibration_setup_t *setup, const char *device_name ) { unsigned int i; for( i = 0; i < num_boards; i++ ) { if( !strcmp( device_name, boards[i].name ) ) { setup->status = boards[i].status; return boards[i].setup( setup ); break; } } if( i == num_boards ) return -1; return 0; } static int setup_cb_pci_1xxx( calibration_setup_t *setup ) { int retval; static const int caldac_subdev = 4; static const int calpot_subdev = 5; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 66 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } //this larger delay is definitely needed by pci-das1000, possibly not for pci-das1200 setup->sv_settling_time_ns = 10000000; retval = init_observables_1xxx( setup ); if( retval < 0 ) return retval; setup_caldacs( setup, caldac_subdev ); setup_caldacs( setup, calpot_subdev ); setup->do_cal = cal_cb_pci_1xxx; return 0; } static int setup_cb_pci_1602_16( calibration_setup_t *setup ) { int retval; static const int caldac_subdev = 4; static const int calpot_subdev = 5; static const int dac08_subdev = 6; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 66 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } setup->sv_settling_time_ns = 10000000; setup->sv_order = 12; retval = init_observables_1xxx( setup ); if( retval < 0 ) return retval; setup_caldacs( setup, caldac_subdev ); setup_caldacs( setup, calpot_subdev ); setup_caldacs( setup, dac08_subdev ); setup->do_cal = cal_cb_pci_1602_16; return 0; } static int ai_ground_observable_1xxx( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return 2 * range; } static int ai_high_observable_1xxx( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return ai_ground_observable_1xxx( setup, channel, range ) + 1; } static int ao_ground_observable_1xxx( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { int num_ai_ranges, num_ao_ranges; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges > 0 ); num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); assert( num_ao_ranges > 0 ); return 2 * num_ai_ranges + 2 * num_ao_ranges * channel + 2 * range; } static int ao_high_observable_1xxx( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return ao_ground_observable_1xxx( setup, channel, range ) + 1; } static double ai_low_target_1xxx( calibration_setup_t *setup, unsigned int range ) { if( is_bipolar( setup->dev, setup->ad_subdev, 0, range ) ) return 0.0; else return very_low_target( setup->dev, setup->ad_subdev, 0, range ); } static int source_eeprom_addr_1xxx( calibration_setup_t *setup, unsigned int range_index ) { enum source_eeprom_addr { EEPROM_7V_CHAN = 0x80, EEPROM_3500mV_CHAN = 0x84, EEPROM_1750mV_CHAN = 0x88, EEPROM_88600uV_CHAN_1001 = 0x88, EEPROM_875mV_CHAN = 0x8c, EEPROM_8600uV_CHAN = 0x90, }; comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, range_index ); if( range == NULL ) return -1; if( range->max > 7.0 ) return EEPROM_7V_CHAN; else if( range->max > 3.5 ) return EEPROM_3500mV_CHAN; else if( range->max > 1.750 ) return EEPROM_1750mV_CHAN; else if( range->max > 0.875 ) return EEPROM_875mV_CHAN; else if( range->max > .0886 ) return EEPROM_88600uV_CHAN_1001; else if( range->max > 0.0086 ) return EEPROM_8600uV_CHAN; return -1; } static int ai_high_cal_source_1xxx( calibration_setup_t *setup, unsigned int range_index ) { comedi_range *range; range = comedi_get_range( setup->dev, setup->ad_subdev, 0, range_index ); if( range == NULL ) return -1; if( range->max > 7.0 ) return CS_1XXX_7V; else if( range->max > 3.5 ) return CS_1002_3500mV; else if( range->max > 1.750 ) return CS_1002_1750mV; else if( range->max > 0.875 ) return CS_1XXX_875mV; else if( range->max > .0886 ) return CS_1001_88600uV; else if( range->max > 0.0086 ) return CS_1XXX_8600uV; return -1; } static int ao_set_high_target_1xxx( calibration_setup_t *setup, unsigned int obs, unsigned int range_index ) { double target; comedi_range *range; range = comedi_get_range( setup->dev, setup->da_subdev, 0, range_index ); if( range == NULL ) return -1; target = range->max * 0.9; set_target( setup, obs, target ); return 0; } static int init_observables_1xxx( calibration_setup_t *setup ) { comedi_insn tmpl, po_tmpl; observable *o; int retval, range, num_ai_ranges, num_ao_ranges, channel, num_channels; float target; int ai_for_ao_range; setup->n_observables = 0; memset( &tmpl, 0, sizeof(tmpl) ); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); if( num_ai_ranges < 0 ) return -1; for( range = 0; range < num_ai_ranges; range++ ) { o = setup->observables + ai_ground_observable_1xxx( setup, 0, range ); o->reference_source = CS_1XXX_GROUND; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, range %i, ground referenced", o->reference_source, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; o->target = ai_low_target_1xxx( setup, range ); setup->n_observables++; o = setup->observables + ai_high_observable_1xxx( setup, 0, range );; retval = ai_high_cal_source_1xxx( setup, range ); if( retval < 0 ) return -1; o->reference_source = retval; assert( o->name == NULL ); if( asprintf( &o->name, "calibration source %i, range %i, ground referenced", o->reference_source, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; retval = cb_actual_source_voltage( setup->dev, setup->eeprom_subdev, source_eeprom_addr_1xxx( setup, range ), &target ); if( retval < 0 ) return -1; o->target = target; setup->n_observables++; } if( setup->da_subdev >= 0 ) { num_channels = comedi_get_n_channels( setup->dev, setup->da_subdev ); if( num_channels < 0 ) return -1; num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); if( num_ao_ranges < 0 ) return -1; memset( &po_tmpl, 0, sizeof(po_tmpl) ); po_tmpl.insn = INSN_WRITE; po_tmpl.n = 1; po_tmpl.subdev = setup->da_subdev; ai_for_ao_range = get_bipolar_lowgain( setup->dev, setup->ad_subdev ); if( ai_for_ao_range < 0 ) return -1; for( range = 0; range < num_ao_ranges; range++ ) { for( channel = 0; channel < num_channels; channel++ ) { o = setup->observables + ao_ground_observable_1xxx( setup, channel, range ); o->reference_source = CS_1XXX_DAC( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "DAC ground calibration source, ch %i, range %i", channel, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( channel, range, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, ai_for_ao_range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; set_target( setup, ao_ground_observable_1xxx( setup, channel, range ), 0.0 ); setup->n_observables++; o = setup->observables + ao_high_observable_1xxx( setup, channel, range ); o->reference_source = CS_1XXX_DAC( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "DAC high calibration source, ch %i, range %i", channel, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( channel , range, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, ai_for_ao_range, AREF_GROUND) | CR_ALT_SOURCE | CR_ALT_FILTER; ao_set_high_target_1xxx( setup, ao_high_observable_1xxx( setup, channel, range ), range ); setup->n_observables++; } } } return 0; } enum cal_knobs_1xxx { DAC0_GAIN_FINE_1XXX = 0, DAC0_GAIN_COARSE_1XXX = 1, DAC0_OFFSET_1XXX = 2, DAC1_OFFSET_1XXX = 3, DAC1_GAIN_FINE_1XXX = 4, DAC1_GAIN_COARSE_1XXX = 5, ADC_OFFSET_COARSE_1XXX = 6, ADC_OFFSET_FINE_1XXX = 7, ADC_GAIN_1XXX = 8, }; static int adc_offset_coarse_1xxx( unsigned int channel ) { return ADC_OFFSET_COARSE_1XXX; } static int adc_offset_fine_1xxx( unsigned int channel ) { return ADC_OFFSET_FINE_1XXX; } static int adc_gain_1xxx( unsigned int channel ) { return ADC_GAIN_1XXX; } static int dac_offset_1xxx( unsigned int channel ) { if( channel ) return DAC1_OFFSET_1XXX; else return DAC0_OFFSET_1XXX; } static int dac_gain_fine_1xxx( unsigned int channel ) { if( channel ) return DAC1_GAIN_FINE_1XXX; else return DAC0_GAIN_FINE_1XXX; } static int dac_gain_coarse_1xxx( unsigned int channel ) { if( channel ) return DAC1_GAIN_COARSE_1XXX; else return DAC0_GAIN_COARSE_1XXX; } static int cal_cb_pci_1xxx( calibration_setup_t *setup ) { generic_layout_t layout; init_generic_layout( &layout ); layout.adc_gain = adc_gain_1xxx; layout.adc_offset = adc_offset_coarse_1xxx; layout.adc_offset_fine = adc_offset_fine_1xxx; layout.dac_gain = dac_gain_coarse_1xxx; layout.dac_gain_fine = dac_gain_fine_1xxx; layout.dac_offset = dac_offset_1xxx; layout.adc_high_observable = ai_high_observable_1xxx; layout.adc_ground_observable = ai_ground_observable_1xxx; layout.dac_high_observable = ao_high_observable_1xxx; layout.dac_ground_observable = ao_ground_observable_1xxx; layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); return generic_cal_by_range( setup, &layout ); } enum cal_knobs_1602_16 { DAC0_GAIN_FINE_1602_16 = 0, DAC0_GAIN_COARSE_1602_16 = 1, DAC0_OFFSET_COARSE_1602_16 = 2, DAC1_OFFSET_COARSE_1602_16 = 3, DAC1_GAIN_FINE_1602_16 = 4, DAC1_GAIN_COARSE_1602_16 = 5, DAC0_OFFSET_FINE_1602_16 = 6, DAC1_OFFSET_FINE_1602_16 = 7, ADC_GAIN_1602_16 = 8, ADC_POSTGAIN_OFFSET_1602_16 = 9, ADC_PREGAIN_OFFSET_1602_16 = 10, }; static int dac_gain_coarse_1602_16( unsigned int channel ) { if( channel ) return DAC1_GAIN_COARSE_1602_16; else return DAC0_GAIN_COARSE_1602_16; } static int dac_gain_fine_1602_16( unsigned int channel ) { if( channel ) return DAC1_GAIN_FINE_1602_16; else return DAC0_GAIN_FINE_1602_16; } static int dac_offset_coarse_1602_16( unsigned int channel ) { if( channel ) return DAC1_OFFSET_COARSE_1602_16; else return DAC0_OFFSET_COARSE_1602_16; } static int dac_offset_fine_1602_16( unsigned int channel ) { if( channel ) return DAC1_OFFSET_FINE_1602_16; else return DAC0_OFFSET_FINE_1602_16; } static int adc_gain_1602_16( unsigned int channel ) { return ADC_GAIN_1602_16; } static int adc_pregain_offset_1602_16( unsigned int channel ) { return ADC_PREGAIN_OFFSET_1602_16; } static int adc_postgain_offset_1602_16( unsigned int channel ) { return ADC_POSTGAIN_OFFSET_1602_16; } static int cal_cb_pci_1602_16( calibration_setup_t *setup ) { generic_layout_t layout; init_generic_layout( &layout ); layout.adc_gain = adc_gain_1602_16; layout.adc_offset = adc_pregain_offset_1602_16; layout.adc_postgain_offset = adc_postgain_offset_1602_16; layout.dac_gain = dac_gain_coarse_1602_16; layout.dac_gain_fine = dac_gain_fine_1602_16; layout.dac_offset = dac_offset_coarse_1602_16; layout.dac_offset_fine = dac_offset_fine_1602_16; layout.adc_high_observable = ai_high_observable_1xxx; layout.adc_ground_observable = ai_ground_observable_1xxx; layout.dac_high_observable = ao_high_observable_1xxx; layout.dac_ground_observable = ao_ground_observable_1xxx; layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); /* The bipolar postgain calibration should be good for both * bipolar and unipolar ranges, so disable separate * unipolar postgain offset calibration (it will fail * horribly anyways if you try it). */ layout.do_adc_unipolar_postgain = 0; return generic_cal_by_range( setup, &layout ); } // converts calibration source voltages from two 16 bit eeprom values to a floating point value static float eeprom16_to_source( uint16_t *data ) { union translator { uint32_t bits; float value; }; union translator my_translator; my_translator.bits = ( data[ 0 ] & 0xffff ) | ( ( data[ 1 ] << 16 ) & 0xffff0000 ); return my_translator.value; } static float eeprom8_to_source( uint8_t *data ) { union translator { uint32_t bits; float value; }; union translator my_translator; int i; my_translator.bits = 0; for( i = 0; i < 4; i++ ) { my_translator.bits |= ( data[ i ] & 0xffff ) << ( 8 * i ); } return my_translator.value; } int cb_actual_source_voltage( comedi_t *dev, unsigned int subdevice, unsigned int eeprom_channel, float *voltage) { int retval; unsigned int i; lsampl_t data; int max_data; max_data = comedi_get_maxdata( dev, subdevice, eeprom_channel ); if( max_data == 0xffff ) { uint16_t word[ 2 ]; for( i = 0; i < 2; i++ ) { retval = comedi_data_read( dev, subdevice, eeprom_channel + i, 0, 0, &data ); if( retval < 0 ) { comedi_perror( __FUNCTION__ ); return retval; } word[ i ] = data; } *voltage = eeprom16_to_source( word ); }else if( max_data == 0xff ) { uint8_t byte[ 4 ]; for( i = 0; i < 4; i++ ) { retval = comedi_data_read( dev, subdevice, eeprom_channel + i, 0, 0, &data ); if( retval < 0 ) { comedi_perror( __FUNCTION__ ); return retval; } byte[ i ] = data; } *voltage = eeprom8_to_source( byte ); }else { fprintf( stderr, "%s: maxdata = 0x%x invalid for subdevice %i, channel %i\n", __FUNCTION__, max_data, subdevice, eeprom_channel); return -1; } DPRINT(1, "eeprom ch 0x%x gives calibration source of %gV\n", eeprom_channel, *voltage); return 0; } comedi_calibrate-5/comedi_calibrate/ni_labpc.c0000644000000000000000000001670412416542124016547 00000000000000/* calibration support for NI labpc and compatible boards copyright (C) 2003 by Frank Mori Hess */ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include "calib.h" char ni_labpc_id[] = "$Id$"; int ni_labpc_setup( calibration_setup_t *setup , const char *device_name ); static int cal_ni_labpc( calibration_setup_t *setup ); enum labpc_caldacs { DAC0_GAIN = 1, ADC_OFFSET_FINE = 2, DAC1_GAIN = 5, ADC_GAIN = 6, ADC_OFFSET_COARSE_ALT = 7, DAC1_OFFSET = 9, ADC_POSTGAIN_OFFSET = 10, DAC0_OFFSET_ALT = 11, ADC_OFFSET_COARSE = 12, DAC0_OFFSET = 13, }; static inline unsigned int DAC_OFFSET( unsigned int channel ) { if( channel ) return DAC1_OFFSET; else return DAC0_OFFSET; } static inline unsigned int DAC_GAIN( unsigned int channel ) { if( channel ) return DAC1_GAIN; else return DAC0_GAIN; } int ni_labpc_setup( calibration_setup_t *setup , const char *device_name ) { if( setup->caldac_subdev < 0 ) { fprintf( stderr, "no caldac subdevice found\n"); return -1; } setup->status = STATUS_DONE; setup->do_cal = cal_ni_labpc; setup_caldacs( setup, setup->caldac_subdev ); return 0; } /* load analog input caldacs from eeprom values (depend on range used) */ static void labpc_grab_ai_calibration( calibration_setup_t *setup, unsigned int range ) { comedi_calibration_setting_t *current_cal; /* points to (end of) analog input bipolar calibration values */ const int ai_bip_frame = read_eeprom( setup, 127 ); enum offset_indices { coarse_offset_index = 0, fine_offset_index = -1, }; /* points to (end of) analog input unipolar calibration values */ const int ai_unip_frame = read_eeprom( setup, 126 ); /* points to (end of) analog input bipolar calibration values */ const int bip_gain_frame = read_eeprom( setup, 123 ); /* points to (end of) analog input bipolar calibration values */ const int unip_gain_frame = read_eeprom( setup, 122 ); /* points to (end of) analog input bipolar calibration values */ const int bip_offset_frame = read_eeprom( setup, 121 ); /* points to (end of) analog input bipolar calibration values */ const int unip_offset_frame = read_eeprom( setup, 120 ); int ai_frame, gain_frame, offset_frame; /* eeprom offsets by range */ int range_to_index[ 14 ] = { 0, -2, -3, -4, -5, -6, -7, 0, -2, -3, -4, -5, -6, -7, }; int value; if( is_unipolar( setup->dev, setup->ad_subdev, 0, range ) ) { ai_frame = ai_unip_frame; gain_frame = unip_gain_frame; offset_frame = unip_offset_frame; }else { ai_frame = ai_bip_frame; gain_frame = bip_gain_frame; offset_frame = bip_offset_frame; } assert( ai_frame >=0 && gain_frame >= 0 && offset_frame >= 0 ); current_cal = sc_alloc_calibration_setting(setup->new_calibration); /* load coarse offset */ value = read_eeprom( setup, ai_frame + coarse_offset_index ); assert( value >= 0 ); update_caldac( setup, ADC_OFFSET_COARSE, value ); sc_push_caldac( current_cal, setup->caldacs[ ADC_OFFSET_COARSE ] ); update_caldac( setup, ADC_OFFSET_COARSE_ALT, value ); sc_push_caldac( current_cal, setup->caldacs[ ADC_OFFSET_COARSE_ALT ] ); /* load fine offset */ value = read_eeprom( setup, ai_frame + fine_offset_index ); assert( value >= 0 ); update_caldac( setup, ADC_OFFSET_FINE, value ); sc_push_caldac( current_cal, setup->caldacs[ ADC_OFFSET_FINE ] ); /* load postgain offset */ value = read_eeprom( setup, offset_frame + range_to_index[ range ] ); assert( value >= 0 ); update_caldac( setup, ADC_POSTGAIN_OFFSET, value ); sc_push_caldac( current_cal, setup->caldacs[ ADC_POSTGAIN_OFFSET ] ); /* load gain */ value = read_eeprom( setup, gain_frame + range_to_index[ range ] ); assert( value >= 0 ); update_caldac( setup, ADC_GAIN, value ); sc_push_caldac( current_cal, setup->caldacs[ ADC_GAIN ] ); current_cal->subdevice = setup->ad_subdev; sc_push_channel( current_cal, SC_ALL_CHANNELS ); sc_push_range( current_cal, range ); sc_push_aref( current_cal, SC_ALL_AREFS ); DPRINT( 0, "loaded adc range %i calibration from eeprom\n", range ); } static int ao_offset_index( unsigned int channel ) { if( channel ) return -2; else return 0; } static int ao_gain_index( unsigned int channel ) { if( channel ) return -3; else return -1; } /* load analog output caldacs from eeprom values (depend on range used) */ static void labpc_grab_ao_calibration( calibration_setup_t *setup, unsigned int channel, unsigned int range) { comedi_calibration_setting_t *current_cal; /* points to (end of) analog output bipolar calibration values */ int ao_bip_frame = read_eeprom( setup, 125 ); /* points to (end of) analog output bipolar calibration values */ int ao_unip_frame = read_eeprom( setup, 124 ); int ao_frame; int value; current_cal = sc_alloc_calibration_setting(setup->new_calibration); if( is_unipolar( setup->dev, setup->da_subdev, 0, range ) ) ao_frame = ao_unip_frame; else ao_frame = ao_bip_frame; assert( ao_frame >= 0 ); /* load offset */ value = read_eeprom( setup, ao_frame + ao_offset_index( channel ) ); assert( value >= 0 ); update_caldac( setup, DAC_OFFSET( channel ), value ); sc_push_caldac( current_cal, setup->caldacs[ DAC_OFFSET( channel ) ] ); if( channel == 0 ) { update_caldac( setup, DAC0_OFFSET_ALT, value ); sc_push_caldac( current_cal, setup->caldacs[ DAC0_OFFSET_ALT ] ); } // load gain calibration value = read_eeprom( setup, ao_frame + ao_gain_index( channel ) ); assert( value >= 0 ); update_caldac( setup, DAC_GAIN( channel ), value ); sc_push_caldac( current_cal, setup->caldacs[ DAC_GAIN( channel ) ] ); current_cal->subdevice = setup->da_subdev; sc_push_channel( current_cal, channel ); sc_push_range( current_cal, range ); sc_push_aref( current_cal, SC_ALL_AREFS ); DPRINT( 0, "loaded dac channel %i range %i calibration from eeprom\n", channel, range ); } static int cal_ni_labpc( calibration_setup_t *setup ) { int range, channel, num_ai_ranges, num_ao_ranges; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 66 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges > 0 ); num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, 0 ); assert( num_ao_ranges > 0 ); for( range = 0; range < num_ai_ranges; range++ ) labpc_grab_ai_calibration( setup, range ); if( setup->da_subdev >= 0 && setup->do_output ) { for( channel = 0; channel < 2; channel++ ) { for( range = 0; range < num_ao_ranges; range++ ) labpc_grab_ao_calibration( setup, channel, range ); } } return write_calibration_file(setup->cal_save_file_path, setup->new_calibration); } comedi_calibrate-5/comedi_calibrate/comedi_calibrate.c0000644000000000000000000011516612416542124020250 00000000000000/* A little auto-calibration utility, for boards that support it. copyright (C) 1999,2000,2001,2002 by David Schleef copyright (C) 2003 by Frank Mori Hess */ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #define _GNU_SOURCE #include #include "comedilib.h" #include #include #include #include #include #include #include #include #include #include "calib.h" /* global variables */ int verbose = 0; struct board_struct{ char *name; char *id; int (*init_setup)( calibration_setup_t *setup, const char *device_name ); }; struct board_struct drivers[] = { { "ni_pcimio", ni_id, ni_setup }, { "ni_atmio", ni_id, ni_setup }, { "ni_mio_cs", ni_id, ni_setup }, { "cb_pcidas", cb_id, cb_setup }, { "cb_pcidas64", cb64_id, cb64_setup }, { "ni_labpc", ni_labpc_id, ni_labpc_setup }, }; #define n_drivers (sizeof(drivers)/sizeof(drivers[0])) void help(void) { printf("comedi_calibrate [options] - autocalibrates a Comedi device\n"); printf(" --verbose, -v \n"); printf(" --quiet, -q \n"); printf(" --help, -h \n"); printf(" --file, -f [/dev/comediN] \n"); printf(" --save-file, -S [filepath] \n"); printf(" --driver-name [driver] \n"); printf(" --device-name [device] \n"); printf(" --[no-]reset \n"); printf(" --[no-]calibrate \n"); printf(" --[no-]dump \n"); printf(" --[no-]results \n"); printf(" --[no-]output \n"); } typedef struct { int verbose; const char *file_path; const char *save_file_path; const char *driver_name; const char *device_name; int do_reset; int do_dump; int do_calibrate; int do_results; int do_output; unsigned int subdevice; unsigned int channel; unsigned int range; unsigned int aref; } parsed_options_t; static void parse_options( int argc, char *argv[], parsed_options_t *settings ) { int c, index; struct option options[] = { { "verbose", 0, 0, 'v' }, { "quiet", 0, 0, 'q' }, { "file", 1, 0, 'f' }, { "save-file", 1, 0, 'S' }, { "help", 0, 0, 'h' }, { "driver-name", 1, 0, 0x1000 }, { "device-name", 1, 0, 0x1001 }, { "reset", 0, &settings->do_reset, 1 }, { "no-reset", 0, &settings->do_reset, 0 }, { "calibrate", 0, &settings->do_calibrate, 1 }, { "no-calibrate", 0, &settings->do_calibrate, 0 }, { "dump", 0, &settings->do_dump, 1 }, { "no-dump", 0, &settings->do_dump, 0 }, { "results", 0, &settings->do_results, 1 }, { "no-results", 0, &settings->do_results, 0 }, { "output", 0, &settings->do_output, 1 }, { "no-output", 0, &settings->do_output, 0 }, { "subdevice", 1, 0, 's' }, { "channel", 1, 0, 'c' }, { "range", 1, 0, 'r' }, { "aref", 1, 0, 'a' }, { 0 }, }; while (1) { c = getopt_long(argc, argv, "f:S:vqs:c:r:a:", options, &index); if (c == -1)break; switch (c) { case 0: continue; case 'h': help(); exit(0); break; case 'f': settings->file_path = optarg; break; case 'S': settings->save_file_path = optarg; break; case 'v': settings->verbose++; break; case 'q': settings->verbose--; break; case 0x1000: settings->driver_name = optarg; break; case 0x1001: settings->device_name = optarg; break; case 's': settings->subdevice = strtoul( optarg, NULL, 0 ); break; case 'c': settings->channel = strtoul( optarg, NULL, 0 ); break; case 'r': settings->range = strtoul( optarg, NULL, 0 ); break; case 'a': settings->aref = strtoul( optarg, NULL, 0 ); break; default: help(); exit(1); } } } int main(int argc, char *argv[]) { int i; struct board_struct *this_board; int device_status = STATUS_UNKNOWN; calibration_setup_t setup; int retval; parsed_options_t options; memset( &setup, 0, sizeof( setup ) ); setup.sv_settling_time_ns = 99999; setup.sv_order = 10; memset( &options, 0, sizeof( options ) ); options.do_dump = 0; options.do_reset = 0; options.do_calibrate = -1; options.do_results = 0; options.do_output = 1; options.file_path = "/dev/comedi0"; parse_options( argc, argv, &options ); verbose = options.verbose; setup.dev = comedi_open( options.file_path ); if( setup.dev == NULL ) { fprintf( stderr, "comedi_open() failed, with device file name: %s\n", options.file_path ); comedi_perror("comedi_open"); return 1; } if( options.save_file_path == NULL ) options.save_file_path = comedi_get_default_calibration_path( setup.dev ); if(!options.driver_name) options.driver_name = comedi_get_driver_name( setup.dev ); if(!options.device_name) options.device_name = comedi_get_board_name( setup.dev ); setup.ad_subdev=comedi_find_subdevice_by_type( setup.dev,COMEDI_SUBD_AI,0); setup.da_subdev=comedi_find_subdevice_by_type( setup.dev,COMEDI_SUBD_AO,0); setup.caldac_subdev=comedi_find_subdevice_by_type( setup.dev,COMEDI_SUBD_CALIB,0); setup.eeprom_subdev=comedi_find_subdevice_by_type( setup.dev,COMEDI_SUBD_MEMORY,0); for(i=0;iinit_setup( &setup, options.device_name ); if( retval < 0 ){ fprintf(stderr, "init_setup() failed for %s\n", options.device_name ); return 1; } device_status = setup.status; if(device_status=0){ char *s = "$Id$"; printf("%.*s\n",(int)strlen(s)-2,s+1); printf("Driver name: %s\n", options.driver_name); printf("Device name: %s\n", options.device_name); printf("%.*s\n",(int)strlen(this_board->id)-2,this_board->id+1); printf("Comedi version: %d.%d.%d\n", (comedi_get_version_code(setup.dev)>>16)&0xff, (comedi_get_version_code(setup.dev)>>8)&0xff, (comedi_get_version_code(setup.dev))&0xff); } if( options.do_reset == 0 ) setup.old_calibration = comedi_parse_calibration_file( options.save_file_path ); else setup.old_calibration = NULL; if( options.do_calibrate < 0 ) { if( setup.old_calibration ) options.do_calibrate = 0; else options.do_calibrate = 1; } setup.do_output = options.do_output; setup.cal_save_file_path = options.save_file_path; if(options.do_dump) observe( &setup ); if(options.do_calibrate && setup.do_cal) { setup.new_calibration = malloc( sizeof( comedi_calibration_t ) ); if( setup.new_calibration == NULL ) { errno = ENOMEM; perror(NULL); return 1; } memset( setup.new_calibration, 0, sizeof( comedi_calibration_t ) ); setup.new_calibration->driver_name = strdup( comedi_get_driver_name( setup.dev ) ); if( setup.new_calibration->driver_name == NULL ) { errno = ENOMEM; perror(NULL); return 1; } setup.new_calibration->board_name = strdup( comedi_get_board_name( setup.dev ) ); if( setup.new_calibration->board_name == NULL ) { errno = ENOMEM; perror(NULL); return 1; } retval = setup.do_cal( &setup ); if( retval < 0 ) { fprintf( stderr, "calibration function returned error\n" ); return -1; } } if(options.do_results) observe( &setup ); if( setup.old_calibration ) comedi_cleanup_calibration( setup.old_calibration ); if( setup.new_calibration ) comedi_cleanup_calibration( setup.new_calibration ); retval = comedi_apply_calibration( setup.dev, options.subdevice, options.channel, options.range, options.aref, setup.cal_save_file_path ); if( retval < 0 ) { DPRINT( 0, "Failed to apply " ); }else { DPRINT( 0, "Applied " ); } DPRINT( 0, "calibration for subdevice %i, channel %i, range %i, aref %i\n", options.subdevice, options.channel, options.range, options.aref ); comedi_close(setup.dev); return retval; } void set_target( calibration_setup_t *setup, int obs, double target) { comedi_range *range; lsampl_t maxdata, data; comedi_set_global_oor_behavior( COMEDI_OOR_NUMBER ); range = comedi_get_range(setup->dev, setup->observables[obs].preobserve_insn.subdev, CR_CHAN( setup->observables[obs].preobserve_insn.chanspec ), CR_RANGE( setup->observables[obs].preobserve_insn.chanspec )); assert( range ); maxdata = comedi_get_maxdata( setup->dev, setup->observables[obs].preobserve_insn.subdev, CR_CHAN(setup->observables[obs].preobserve_insn.chanspec)); assert( maxdata > 0 ); data = comedi_from_phys(target,range,maxdata); setup->observables[obs].preobserve_data[0] = data; setup->observables[obs].target = comedi_to_phys(data,range,maxdata); } static void apply_appropriate_cal( calibration_setup_t *setup, comedi_insn insn ) { int retval = 0; if( setup->new_calibration ) { retval = comedi_apply_parsed_calibration( setup->dev, insn.subdev, CR_CHAN( insn.chanspec ), CR_RANGE( insn.chanspec ), CR_AREF( insn.chanspec ), setup->new_calibration ); }else if( setup->old_calibration ) { retval = comedi_apply_parsed_calibration( setup->dev, insn.subdev, CR_CHAN( insn.chanspec ), CR_RANGE( insn.chanspec ), CR_AREF( insn.chanspec ), setup->old_calibration ); }else { reset_caldacs( setup ); return; } if( retval < 0 ) DPRINT( 1, "Failed to apply "); else DPRINT( 1, "Applied "); DPRINT( 1, "calibration for subdev %i, channel %i, range %i, aref %i\n", insn.subdev, CR_CHAN( insn.chanspec ), CR_RANGE( insn.chanspec ), CR_AREF( insn.chanspec ) ); } void observe( calibration_setup_t *setup ) { int i; observable *obs; for( i = 0; i < setup->n_observables; i++){ obs = &setup->observables[ i ]; if( obs->observe_insn.n == 0 ) continue; preobserve( setup, i); DPRINT(0,"%s\n", setup->observables[i].name); if( obs->preobserve_insn.n != 0){ apply_appropriate_cal( setup, obs->preobserve_insn ); } apply_appropriate_cal( setup, obs->observe_insn ); measure_observable( setup, i); if(verbose>=1){ observable_dependence( setup, i); } } } int preobserve( calibration_setup_t *setup, int obs) { int retval; comedi_insn reference_source_config; lsampl_t ref_data[ 2 ]; // setup reference source if(setup->observables[obs].reference_source >= 0) { memset( &reference_source_config, 0, sizeof(reference_source_config) ); reference_source_config.insn = INSN_CONFIG; reference_source_config.n = 2; reference_source_config.subdev = setup->ad_subdev; reference_source_config.data = ref_data; reference_source_config.data[ 0 ] = INSN_CONFIG_ALT_SOURCE; reference_source_config.data[ 1 ] = setup->observables[obs].reference_source; retval = comedi_do_insn( setup->dev, &reference_source_config ); /* ignore errors for now since older ni driver doesn't * support reference config insn */ if( retval < 0 ) perror("preobserve() ignoring reference config error" ); } retval = 0; if( setup->observables[obs].preobserve_insn.n != 0){ retval = comedi_do_insn( setup->dev, &setup->observables[obs].preobserve_insn); } if( retval < 0 ) perror("preobserve()"); return retval; } void measure_observable( calibration_setup_t *setup, int obs) { char s[100]; new_sv_t sv; my_sv_init(&sv, setup, setup->observables[obs].observe_insn.subdev, setup->observables[obs].observe_insn.chanspec); new_sv_measure(setup->dev, &sv); sci_sprint_alt(s,sv.average,sv.error); DPRINT(0,"reading %s, target %g\n",s, setup->observables[obs].target); assert( isnan( setup->observables[obs].target) == 0 ); } void observable_dependence(calibration_setup_t *setup, int obs) { int i; linear_fit_t l; for( i = 0; i < setup->n_caldacs; i++){ check_gain_chan_x( setup, &l, setup->observables[obs].observe_insn.chanspec, i); } } void postgain_cal( calibration_setup_t *setup, int obs1, int obs2, int dac) { double offset1,offset2; linear_fit_t l; double slope1,slope2; double a; double gain; comedi_range *range1,*range2; DPRINT(0,"postgain: %s; %s\n", setup->observables[obs1].name, setup->observables[obs2].name); preobserve(setup, obs1); check_gain_chan_x( setup, &l, setup->observables[obs1].observe_insn.chanspec, dac); offset1=linear_fit_func_y(&l, setup->caldacs[dac].value); DPRINT(2,"obs1: [%d] offset %g\n",obs1,offset1); range1 = comedi_get_range(setup->dev, setup->observables[obs1].observe_insn.subdev, CR_CHAN( setup->observables[obs1].observe_insn.chanspec), CR_RANGE( setup->observables[obs1].observe_insn.chanspec)); slope1=l.slope; preobserve( setup, obs2); check_gain_chan_x( setup, &l, setup->observables[obs2].observe_insn.chanspec,dac); offset2=linear_fit_func_y(&l, setup->caldacs[dac].value); DPRINT(2,"obs2: [%d] offset %g\n",obs2,offset2); range2 = comedi_get_range(setup->dev, setup->observables[obs2].observe_insn.subdev, CR_CHAN( setup->observables[obs2].observe_insn.chanspec), CR_RANGE( setup->observables[obs2].observe_insn.chanspec)); slope2=l.slope; gain = (range1->max-range1->min)/(range2->max-range2->min); DPRINT(4,"range1 %g range2 %g\n", range1->max-range1->min, range2->max-range2->min); DPRINT(3,"gain: %g\n",gain); DPRINT(3,"difference: %g\n",offset2-offset1); a = (offset1-offset2)/(slope1-slope2); a = setup->caldacs[dac].value - a; update_caldac( setup, dac, rint(a) ); usleep(caldac_settle_usec); DPRINT(0,"caldac[%d] set to %g (%g)\n",dac,rint(a),a); if(verbose>=2){ preobserve( setup, obs1); measure_observable( setup, obs1); preobserve( setup, obs2); measure_observable( setup, obs2); } } void cal1( calibration_setup_t *setup, int obs, int dac) { linear_fit_t l; double a; DPRINT(0,"linear: %s\n", setup->observables[obs].name); preobserve( setup, obs); check_gain_chan_x( setup, &l, setup->observables[obs].observe_insn.chanspec,dac); a=linear_fit_func_x(&l, setup->observables[obs].target); update_caldac( setup, dac, rint(a) ); usleep(caldac_settle_usec); DPRINT(0,"caldac[%d] set to %g (%g)\n",dac,rint(a),a); if(verbose>=3){ measure_observable( setup, obs); } } void cal1_fine( calibration_setup_t *setup, int obs, int dac ) { linear_fit_t l; double a; DPRINT(0,"linear fine: %s\n", setup->observables[obs].name); preobserve( setup, obs); check_gain_chan_fine( setup, &l, setup->observables[obs].observe_insn.chanspec,dac); a=linear_fit_func_x(&l,setup->observables[obs].target); update_caldac( setup, dac, rint(a) ); usleep(caldac_settle_usec); DPRINT(0,"caldac[%d] set to %g (%g)\n",dac,rint(a),a); if(verbose>=3){ measure_observable( setup, obs); } } void peg_binary( calibration_setup_t *setup, int obs, int dac, int maximize ) { int x0, x1, x; double y0, y1; new_sv_t sv; unsigned int chanspec = setup->observables[obs].observe_insn.chanspec; int polarity; DPRINT(0,"binary peg: %s\n", setup->observables[obs].name); preobserve( setup, obs); comedi_set_global_oor_behavior( COMEDI_OOR_NUMBER ); my_sv_init(&sv, setup, setup->ad_subdev, chanspec); x0 = caldac_maxdata(setup->dev, &setup->caldacs[dac]); update_caldac( setup, dac, x0 ); usleep(caldac_settle_usec); new_sv_measure( setup->dev, &sv); y0 = sv.average; x1 = 0; update_caldac( setup, dac, x1 ); usleep(caldac_settle_usec); new_sv_measure( setup->dev, &sv); y1 = sv.average; if( (y0 - y1) > 0.0 ) polarity = 1; else polarity = -1; if( maximize ) { if( polarity > 0 ) x = x0; else x = x1; }else { if( polarity > 0 ) x = x1; else x = x0; } update_caldac( setup, dac, x ); DPRINT(0,"caldac[%d] set to %d\n",dac,x); if(verbose>=3){ measure_observable( setup, obs); } } void cal_binary( calibration_setup_t *setup, int obs, int dac) { int x0, x1, x2, x; unsigned int bit; double y0, y1, y2; new_sv_t sv; double target = setup->observables[obs].target; unsigned int chanspec = setup->observables[obs].observe_insn.chanspec; int polarity; DPRINT(0,"binary: %s\n", setup->observables[obs].name); preobserve( setup, obs); comedi_set_global_oor_behavior( COMEDI_OOR_NUMBER ); my_sv_init(&sv, setup, setup->ad_subdev, chanspec); x0 = caldac_maxdata(setup->dev, &setup->caldacs[dac]); update_caldac( setup, dac, x0 ); usleep(caldac_settle_usec); new_sv_measure( setup->dev, &sv); y0 = sv.average; x1 = x2 = 0; update_caldac( setup, dac, x1 ); usleep(caldac_settle_usec); new_sv_measure( setup->dev, &sv); y1 = y2 = sv.average; if( (y0 - y1) > 0.0 ) polarity = 1; else polarity = -1; bit = 1; while((bit << 1) < caldac_maxdata(setup->dev, &setup->caldacs[dac])) bit <<= 1; for( ; bit; bit >>= 1 ){ x2 = x1 | bit; update_caldac( setup, dac, x2 ); usleep(caldac_settle_usec); new_sv_measure( setup->dev, &sv); y2 = sv.average; DPRINT(3,"trying %d, result %g, target %g\n",x2,y2,target); if( (y2 - target) * polarity < 0.0 ){ x1 = x2; y1 = y2; } if(verbose>=3){ measure_observable( setup, obs); } } // get that least signficant bit right if( fabs( y1 - target ) < fabs( y2 - target ) ) x = x1; else x = x2; update_caldac( setup, dac, x ); DPRINT(0,"caldac[%d] set to %d\n",dac,x); if( x >= caldac_maxdata(setup->dev, &setup->caldacs[dac]) || x <= 0 ) DPRINT(0,"WARNING: caldac[%d] pegged!\n", dac ); if(verbose>=3){ measure_observable( setup, obs); } } void cal_postgain_binary( calibration_setup_t *setup, int obs1, int obs2, int dac) { cal_relative_binary( setup, obs1, obs2, dac ); } void cal_relative_binary( calibration_setup_t *setup, int obs1, int obs2, int dac) { int x0, x1, x2, x, polarity; double y0, y1, y2; new_sv_t sv1, sv2; double target = setup->observables[obs1].target - setup->observables[obs2].target; unsigned int chanspec1 = setup->observables[obs1].observe_insn.chanspec; unsigned int chanspec2 = setup->observables[obs2].observe_insn.chanspec; unsigned int bit; DPRINT(0,"relative binary: %s, %s\n", setup->observables[obs1].name, setup->observables[obs2].name); comedi_set_global_oor_behavior( COMEDI_OOR_NUMBER ); x0 = caldac_maxdata(setup->dev, &setup->caldacs[dac]); update_caldac( setup, dac, x0 ); usleep(caldac_settle_usec); preobserve( setup, obs1); my_sv_init(&sv1, setup, setup->ad_subdev,chanspec1); new_sv_measure( setup->dev, &sv1); preobserve( setup, obs2); my_sv_init(&sv2, setup, setup->ad_subdev,chanspec2); new_sv_measure( setup->dev, &sv2); y0 = sv1.average - sv2.average; x1 = x2 = 0; update_caldac( setup, dac, x1 ); usleep(caldac_settle_usec); preobserve( setup, obs1); new_sv_measure( setup->dev, &sv1); preobserve( setup, obs2); new_sv_measure( setup->dev, &sv2); y1 = y2 = sv1.average - sv2.average; if( (y0 - y1) > 0.0 ) polarity = 1; else polarity = -1; bit = 1; while((bit << 1) < caldac_maxdata(setup->dev, &setup->caldacs[dac])) bit <<= 1; for( ; bit; bit >>= 1 ) { x2 = x1 | bit; update_caldac( setup, dac, x2 ); usleep(caldac_settle_usec); preobserve( setup, obs1); new_sv_measure( setup->dev, &sv1); preobserve( setup, obs2); new_sv_measure( setup->dev, &sv2); y2 = sv1.average - sv2.average; DPRINT(3,"trying %d, result %g, target %g\n",x2,y2,target); if( (y2 - target) * polarity < 0.0 ){ x1 = x2; y1 = y2; } if(verbose>=3){ preobserve( setup, obs1); measure_observable( setup, obs1); preobserve( setup, obs2); measure_observable( setup, obs2); } } if( fabs( y1 - target ) < fabs( y2 - target ) ) x = x1; else x = x2; update_caldac( setup, dac, x ); DPRINT(0,"caldac[%d] set to %d\n",dac,x); if(x >= caldac_maxdata(setup->dev, &setup->caldacs[dac]) || x <= 0 ) DPRINT(0,"WARNING: caldac[%d] pegged!\n", dac ); if(verbose>=3){ preobserve( setup, obs1); measure_observable( setup, obs1); preobserve( setup, obs2); measure_observable( setup, obs2); } } void cal_linearity_binary( calibration_setup_t *setup, int obs1, int obs2, int obs3, int dac) { int x0, x1, x2, x, polarity; double y0, y1, y2; new_sv_t sv1, sv2, sv3; double target = ( setup->observables[obs3].target - setup->observables[obs2].target ) / ( setup->observables[obs2].target - setup->observables[obs1].target ); unsigned int chanspec1 = setup->observables[obs1].observe_insn.chanspec; unsigned int chanspec2 = setup->observables[obs2].observe_insn.chanspec; unsigned int chanspec3 = setup->observables[obs3].observe_insn.chanspec; unsigned int bit; DPRINT(0,"linearity binary: %s,\n%s,\n%s\n", setup->observables[obs1].name, setup->observables[obs2].name,setup->observables[obs3].name); comedi_set_global_oor_behavior( COMEDI_OOR_NUMBER ); x0 = caldac_maxdata(setup->dev, &setup->caldacs[dac]); update_caldac( setup, dac, x0 ); usleep(caldac_settle_usec); preobserve( setup, obs1); my_sv_init(&sv1, setup, setup->ad_subdev,chanspec1); new_sv_measure( setup->dev, &sv1); preobserve( setup, obs2); my_sv_init(&sv2, setup, setup->ad_subdev,chanspec2); new_sv_measure( setup->dev, &sv2); preobserve( setup, obs3); my_sv_init(&sv3, setup, setup->ad_subdev,chanspec3); new_sv_measure( setup->dev, &sv3); y0 = ( sv3.average - sv2.average ) / ( sv2.average - sv1.average ); x1 = x2 = 0; update_caldac( setup, dac, x1 ); usleep(caldac_settle_usec); preobserve( setup, obs1); new_sv_measure( setup->dev, &sv1); preobserve( setup, obs2); new_sv_measure( setup->dev, &sv2); preobserve( setup, obs3); new_sv_measure( setup->dev, &sv3); y1 = y2 = ( sv3.average - sv2.average ) / ( sv2.average - sv1.average ); if( (y0 - y1) > 0.0 ) polarity = 1; else polarity = -1; bit = 1; while((bit << 1) < caldac_maxdata(setup->dev, &setup->caldacs[dac])) bit <<= 1; for( ; bit; bit >>= 1 ) { x2 = x1 | bit; update_caldac( setup, dac, x2 ); usleep(caldac_settle_usec); preobserve( setup, obs1); new_sv_measure( setup->dev, &sv1); preobserve( setup, obs2); new_sv_measure( setup->dev, &sv2); preobserve( setup, obs3); new_sv_measure( setup->dev, &sv3); y2 = ( sv3.average - sv2.average ) / ( sv2.average - sv1.average ); DPRINT(3,"trying %d, result %g, target %g\n",x2,y2,target); if( (y2 - target) * polarity < 0.0 ){ x1 = x2; y1 = y2; } if(verbose>=3){ preobserve( setup, obs1); measure_observable( setup, obs1); preobserve( setup, obs2); measure_observable( setup, obs2); preobserve( setup, obs3); measure_observable( setup, obs3); } } if( fabs( y1 - target ) < fabs( y2 - target ) ) x = x1; else x = x2; update_caldac( setup, dac, x ); DPRINT(0,"caldac[%d] set to %d\n",dac,x); if(x >= caldac_maxdata(setup->dev, &setup->caldacs[dac]) || x <= 0 ) DPRINT(0,"WARNING: caldac[%d] pegged!\n", dac ); if(verbose>=3){ preobserve( setup, obs1); measure_observable( setup, obs1); preobserve( setup, obs2); measure_observable( setup, obs2); preobserve( setup, obs3); measure_observable( setup, obs3); } } #if 0 void chan_cal(int adc,int cdac,int range,double target) { linear_fit_t l; double offset; double gain; double a; char s[32]; check_gain_chan_x(&l,CR_PACK(adc,range,AREF_OTHER),cdac); offset=linear_fit_func_y(&l,caldacs[cdac].current); gain=l.slope; a=caldacs[cdac].current+(target-offset)/gain; update_caldac( setup, cdac, rint(a)); read_chan2(s,adc,range); DPRINT(1,"caldac[%d] set to %g, offset=%s\n",cdac,a,s); } #endif #if 0 void channel_dependence(int adc,int range) { int i; double gain; for(i=0;idev, caldac_subdev ); assert(n_chan >= 0); assert(setup->n_caldacs + n_chan < N_CALDACS); for(i = 0; i < n_chan; i++){ setup->caldacs[ setup->n_caldacs + i ].subdevice = caldac_subdev; setup->caldacs[ setup->n_caldacs + i ].channel = i; setup->caldacs[ setup->n_caldacs + i ].value = 0; } setup->n_caldacs += n_chan; } void reset_caldac( calibration_setup_t *setup, int caldac_index ) { if( caldac_index < 0 ) return; assert( caldac_index < setup->n_caldacs ); update_caldac(setup, caldac_index, caldac_maxdata(setup->dev, &setup->caldacs[caldac_index]) / 2); } void reset_caldacs( calibration_setup_t *setup ) { int i; for( i = 0; i < setup->n_caldacs; i++){ reset_caldac( setup, i ); } } void update_caldac( calibration_setup_t *setup, int caldac_index, int value ) { int ret; comedi_caldac_t *dac; if( caldac_index < 0 ) return; if( caldac_index >= setup->n_caldacs ) { fprintf( stderr, "invalid caldac index\n" ); return; } if(value < 0){ DPRINT(1,"caldac set out of range (%d<0)\n", value); value = 0; } dac = &setup->caldacs[ caldac_index ]; if(value > caldac_maxdata(setup->dev, dac)) { DPRINT(1,"caldac set out of range (%d>%d)\n", value, caldac_maxdata(setup->dev, dac)); value = caldac_maxdata(setup->dev, dac); } dac->value = value; DPRINT(4,"update %d %d %d\n", dac->subdevice, dac->channel, dac->value); ret = comedi_data_write(setup->dev, dac->subdevice, dac->channel, 0, 0, dac->value); if(ret < 0) perror("update_caldac()"); } #if 0 void check_gain(int ad_chan,int range) { int i; for(i=0;idev, &setup->caldacs[cdac]) + 1; memset(l,0,sizeof(*l)); step=n/16; if(step<1)step=1; l->n=0; l->y_data=malloc(n*sizeof(double)/step); if(l->y_data == NULL) { perror( __FUNCTION__ ); exit(1); } orig = setup->caldacs[cdac].value; my_sv_init(&sv, setup, setup->ad_subdev,ad_chanspec); update_caldac( setup, cdac, 0 ); usleep(caldac_settle_usec); new_sv_measure( setup->dev, &sv); sum_err=0; for(i=0;i*stepdev, &sv); l->y_data[i]=sv.average; if(!isnan(sv.average)){ sum_err+=sv.error; sum_err_count++; } l->n++; } update_caldac( setup, cdac, orig ); l->yerr=sum_err/sqrt(sum_err_count); l->dx=step; l->x0=0; linear_fit_monotonic(l); if(verbose>=2 || (verbose>=1 && (fabs(l->slope / l->err_slope) > 4.0 || isnan(l->slope / l->err_slope)))){ sci_sprint_alt(str,l->slope,l->err_slope); printf("caldac[%d] gain=%s V/bit S_min=%g dof=%g\n", cdac,str,l->S_min,l->dof); //printf("--> %g\n",fabs(l.slope/l.err_slope)); } if(verbose>=3)dump_curve(l); free(l->y_data); return l->slope; } double check_gain_chan_fine( calibration_setup_t *setup, linear_fit_t *l,unsigned int ad_chanspec,int cdac) { int orig,i,n; int step; new_sv_t sv; double sum_err; int sum_err_count=0; char str[100]; int fine_size = 10; n=2*fine_size+1; memset(l,0,sizeof(*l)); step=1; l->n=0; l->y_data=malloc(n*sizeof(double)/step); if(l->y_data == NULL) { perror( __FUNCTION__ ); exit(1); } orig = setup->caldacs[cdac].value; my_sv_init(&sv, setup, setup->ad_subdev,ad_chanspec); update_caldac( setup, cdac, 0 ); usleep(caldac_settle_usec); new_sv_measure( setup->dev, &sv); sum_err=0; for(i=0;idev, &sv); l->y_data[i]=sv.average; if(!isnan(sv.average)){ sum_err+=sv.error; sum_err_count++; } l->n++; } update_caldac( setup, cdac, orig ); l->yerr=sum_err/sqrt(sum_err_count); l->dx=1; l->x0=orig-fine_size; linear_fit_monotonic(l); if(verbose>=2 || (verbose>=1 && fabs(l->slope/l->err_slope)>4.0)){ sci_sprint_alt(str,l->slope,l->err_slope); printf("caldac[%d] gain=%s V/bit S_min=%g dof=%g\n", cdac,str,l->S_min,l->dof); //printf("--> %g\n",fabs(l.slope/l.err_slope)); } if(verbose>=3)dump_curve(l); free(l->y_data); return l->slope; } /* helpers */ int is_unipolar( comedi_t *dev, unsigned int subdevice, unsigned int channel, unsigned int range ) { comedi_range *range_ptr; range_ptr = comedi_get_range( dev, subdevice, channel, range ); assert( range_ptr != NULL ); /* This method is better than a direct test, which might fail */ if( fabs( range_ptr->min ) < fabs( range_ptr->max * 0.001 ) ) return 1; else return 0; } int is_bipolar( comedi_t *dev, unsigned int subdevice, unsigned int channel, unsigned int range ) { comedi_range *range_ptr; range_ptr = comedi_get_range( dev, subdevice, channel, range ); assert( range_ptr != NULL ); /* This method is better than a direct test, which might fail */ if( fabs( range_ptr->max + range_ptr->min ) < fabs( range_ptr->max * 0.001 ) ) return 1; else return 0; } int get_bipolar_lowgain(comedi_t *dev,int subdev) { int ret = -1; int i; int n_ranges = comedi_get_n_ranges(dev,subdev,0); double max = 0; comedi_range *range; for(i=0;iunit == UNIT_none ) continue; if(range->max>max){ ret = i; max=range->max; } } return ret; } int get_bipolar_highgain(comedi_t *dev,int subdev) { int ret = -1; int i; int n_ranges = comedi_get_n_ranges(dev,subdev,0); double min = HUGE_VAL; comedi_range *range; for(i=0;iunit == UNIT_none ) continue; if(range->maxmax; } } return ret; } int get_unipolar_lowgain(comedi_t *dev,int subdev) { int ret = -1; int i; int n_ranges = comedi_get_n_ranges(dev,subdev,0); double max = 0.0; comedi_range *range; for(i=0;iunit == UNIT_none ) continue; if(range->max>max){ ret = i; max=range->max; } } return ret; } int get_unipolar_highgain(comedi_t *dev,int subdev) { int ret = -1; int i; int n_ranges = comedi_get_n_ranges(dev,subdev,0); double max = HUGE_VAL; comedi_range *range; for(i=0;iunit == UNIT_none ) continue; if(range->max < max){ ret = i; max=range->max; } } return ret; } int read_eeprom( calibration_setup_t *setup, int addr) { lsampl_t data = 0; int retval; retval = comedi_data_read( setup->dev, setup->eeprom_subdev, addr,0,0,&data); if( retval < 0 ) { perror( "read_eeprom()" ); return retval; } return data; } double read_chan( calibration_setup_t *setup, int adc,int range) { new_sv_t sv; char str[100]; my_sv_init(&sv, setup, setup->ad_subdev,CR_PACK(adc,range,AREF_OTHER)); new_sv_measure( setup->dev, &sv); sci_sprint_alt(str,sv.average,sv.error); printf("chan=%d ave=%s\n",adc,str); return sv.average; } int read_chan2( calibration_setup_t *setup, char *s,int adc,int range) { new_sv_t sv; my_sv_init(&sv, setup, setup->ad_subdev,CR_PACK(adc,range,AREF_OTHER)); new_sv_measure( setup->dev, &sv); return sci_sprint_alt(s,sv.average,sv.error); } #if 0 void set_ao(comedi_t *dev,int subdev,int chan,int range,double value) { comedi_range *r = comedi_get_range(dev,subdev,chan,range); lsampl_t maxdata = comedi_get_maxdata(dev,subdev,chan); lsampl_t data; data = comedi_from_phys(value,r,maxdata); comedi_data_write(dev,subdev,chan,range,AREF_GROUND,data); } #endif int my_sv_init( new_sv_t *sv, const calibration_setup_t *setup, int subdev, unsigned int chanspec ) { int retval; retval = new_sv_init( sv, setup->dev, subdev, chanspec ); sv->settling_time_ns = setup->sv_settling_time_ns; sv->order = setup->sv_order; return retval; } int new_sv_init(new_sv_t *sv,comedi_t *dev,int subdev,unsigned int chanspec) { memset(sv,0,sizeof(*sv)); sv->subd=subdev; //sv->t.flags=TRIG_DITHER; sv->chanspec = chanspec; //sv->chanlist[0]=CR_PACK(chan,range,aref); sv->maxdata=comedi_get_maxdata(dev,subdev,CR_CHAN(chanspec)); sv->rng=comedi_get_range(dev,subdev, CR_CHAN(chanspec), CR_RANGE(chanspec)); sv->order=10; return 0; } int new_sv_measure( comedi_t *dev, new_sv_t *sv) { lsampl_t *data; int n,i,ret; double x,s,s2; n=1<order; data=malloc(sizeof(lsampl_t)*n); if(data == NULL) { perror( __FUNCTION__ ); exit(1); } ret = comedi_data_read_hint(dev, sv->subd, sv->chanspec, 0, 0); if(ret<0){ printf("hint barf\n"); goto out; } comedi_nanodelay(dev, sv->settling_time_ns); ret = comedi_data_read_n(dev, sv->subd, sv->chanspec, 0, 0, data, n); if(ret<0){ printf("barf\n"); goto out; } s=0.0; s2=0.0; for(i = 0; i < n; i++){ x = comedi_to_phys(data[i], sv->rng, sv->maxdata); s += x; s2 += x * x; } s /= n; s2 /= n; sv->average=s; sv->stddev=sqrt( ( ( n + 1 ) / n ) * ( s2 - s * s ) ); sv->error=sv->stddev / sqrt( n ); ret=n; out: free(data); return ret; } int new_sv_measure_order( comedi_t *dev, new_sv_t *sv,int order) { lsampl_t *data; int n,i,ret; double x,s,s2; n=1<subd, sv->chanspec, 0, 0, data, n); if(ret<0){ printf("barf order\n"); goto out; } s=0; s2=0; for(i = 0; i < n; i++){ x = comedi_to_phys(data[i], sv->rng, sv->maxdata); s += x; s2 += x * x; } s /= n; s2 /= n; sv->average = s; sv->stddev=sqrt( ( ( n + 1 ) / n ) * ( s2 - s * s ) ); sv->error=sv->stddev / sqrt( n ); ret=n; out: free(data); return ret; } /* linear fitting */ int calculate_residuals(linear_fit_t *l); int linear_fit_monotonic(linear_fit_t *l) { double x,y; double sxp; int i; l->min=HUGE_VAL; l->max=-HUGE_VAL; l->s1=0; l->sx=0; l->sy=0; l->sxy=0; l->sxx=0; for(i=0;in;i++){ x=l->x0+i*l->dx; y=l->y_data[i]; if(isnan(y))continue; if(l->y_data[i]min)l->min=l->y_data[i]; if(l->y_data[i]>l->max)l->max=l->y_data[i]; l->s1+=1; l->sx+=x; l->sy+=y; l->sxy+=x*y; l->sxx+=x*x; } sxp=l->sxx-l->sx*l->sx/l->s1; l->ave_x=l->sx/l->s1; l->ave_y=l->sy/l->s1; l->slope=(l->s1*l->sxy-l->sx*l->sy)/(l->s1*l->sxx-l->sx*l->sx); l->err_slope=l->yerr/sqrt(sxp); l->err_ave_y=l->yerr/sqrt(l->s1); calculate_residuals(l); return 0; } int calculate_residuals(linear_fit_t *l) { double x,y; double res,sum_res2; int i; sum_res2=0; for(i=0;in;i++){ x=l->x0+i*l->dx-l->ave_x; y=l->y_data[i]; if(isnan(y))continue; res=l->ave_y+l->slope*x-y; sum_res2+=res*res; } l->S_min=sum_res2/(l->yerr*l->yerr); l->dof=l->s1-2; return 0; } double linear_fit_func_y(linear_fit_t *l,double x) { return l->ave_y+l->slope*(x-l->ave_x); } double linear_fit_func_x(linear_fit_t *l,double y) { return l->ave_x+(y-l->ave_y)/l->slope; } void dump_curve(linear_fit_t *l) { static int dump_number=0; double x,y; int i; printf("start dump %d\n",dump_number); for(i=0;in;i++){ x=l->x0+i*l->dx-l->ave_x; y=l->y_data[i]; printf("D%d: %d %g %g %g\n",dump_number,i,y, l->ave_y+l->slope*x, l->ave_y+l->slope*x-y); } printf("end dump\n"); dump_number++; } /* printing of scientific numbers (with errors) */ int sci_sprint(char *s,double x,double y) { int errsig; int maxsig; int sigfigs; double mantissa; double error; errsig = floor(log10(y)); maxsig = floor(log10(x)); if(maxsig1){ return sprintf(s,"%0.0f(%2.0f)",x,error); } if(maxsig<=0 && maxsig>=-2){ return sprintf(s,"%0.*f(%2.0f)",sigfigs-1-maxsig, mantissa*pow(10,maxsig),error); } return sprintf(s,"%0.*f(%2.0f)e%d",sigfigs-1,mantissa,error,maxsig); } double very_low_target( comedi_t *dev, unsigned int subdevice, unsigned int channel, unsigned int range ) { comedi_range *range_ptr; int max_data; range_ptr = comedi_get_range( dev, subdevice, channel, range ); assert( range_ptr != NULL ); max_data = comedi_get_maxdata( dev, subdevice, 0 ); assert( max_data > 0 ); return comedi_to_phys( 1, range_ptr, max_data ) / 2.0; } double fractional_offset( calibration_setup_t *setup, int subdevice, unsigned int channel, unsigned int range, int obs ) { comedi_range *range_ptr; double target; double reading; unsigned int chanspec; new_sv_t sv; if( subdevice < 0 || obs < 0 ) return 0.0; chanspec = setup->observables[obs].observe_insn.chanspec; target = setup->observables[obs].target; range_ptr = comedi_get_range( setup->dev, subdevice, channel, range ); assert( range_ptr != NULL ); comedi_set_global_oor_behavior( COMEDI_OOR_NUMBER ); preobserve( setup, obs); my_sv_init( &sv, setup, setup->ad_subdev, chanspec ); new_sv_measure( setup->dev, &sv ); reading = sv.average; return ( reading - target ) / ( range_ptr->max - range_ptr->min ); } double get_tolerance( calibration_setup_t *setup, int subdevice, double num_bits ) { int maxdata; if( subdevice < 0 ) return INFINITY; maxdata = comedi_get_maxdata( setup->dev, subdevice, 0 ); assert( maxdata > 0 ); return num_bits / maxdata; } unsigned caldac_maxdata(comedi_t *dev, const comedi_caldac_t *caldac) { unsigned maxdata = comedi_get_maxdata(dev, caldac->subdevice, caldac->channel); assert(maxdata > 0); return maxdata; } comedi_calibrate-5/comedi_calibrate/Makefile.in0000644000000000000000000007746313062555270016716 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = comedi_calibrate$(EXEEXT) subdir = comedi_calibrate ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_comedi_calibrate_OBJECTS = \ comedi_calibrate-comedi_calibrate.$(OBJEXT) \ comedi_calibrate-ni.$(OBJEXT) comedi_calibrate-cb.$(OBJEXT) \ comedi_calibrate-cb64.$(OBJEXT) \ comedi_calibrate-other.$(OBJEXT) \ comedi_calibrate-cal_common.$(OBJEXT) \ comedi_calibrate-ni_labpc.$(OBJEXT) comedi_calibrate_OBJECTS = $(am_comedi_calibrate_OBJECTS) comedi_calibrate_DEPENDENCIES = \ ../libcomedi_calibrate/libcomedi_calibrate.a comedi_calibrate_LINK = $(CCLD) $(comedi_calibrate_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(comedi_calibrate_SOURCES) DIST_SOURCES = $(comedi_calibrate_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(noinst_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp README DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COMEDI_CALIBRATE_CFLAGS = @COMEDI_CALIBRATE_CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_HEADERS = calib.h comedi_calibrate_SOURCES = \ comedi_calibrate.c ni.c cb.c cb64.c other.c cal_common.c ni_labpc.c comedi_calibrate_CFLAGS = $(COMEDI_CALIBRATE_CFLAGS) comedi_calibrate_LDADD = ../libcomedi_calibrate/libcomedi_calibrate.a -lcomedi -lm EXTRA_DIST = results all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu comedi_calibrate/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu comedi_calibrate/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) comedi_calibrate$(EXEEXT): $(comedi_calibrate_OBJECTS) $(comedi_calibrate_DEPENDENCIES) $(EXTRA_comedi_calibrate_DEPENDENCIES) @rm -f comedi_calibrate$(EXEEXT) $(AM_V_CCLD)$(comedi_calibrate_LINK) $(comedi_calibrate_OBJECTS) $(comedi_calibrate_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_calibrate-cal_common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_calibrate-cb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_calibrate-cb64.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_calibrate-comedi_calibrate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_calibrate-ni.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_calibrate-ni_labpc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_calibrate-other.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` comedi_calibrate-comedi_calibrate.o: comedi_calibrate.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-comedi_calibrate.o -MD -MP -MF $(DEPDIR)/comedi_calibrate-comedi_calibrate.Tpo -c -o comedi_calibrate-comedi_calibrate.o `test -f 'comedi_calibrate.c' || echo '$(srcdir)/'`comedi_calibrate.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-comedi_calibrate.Tpo $(DEPDIR)/comedi_calibrate-comedi_calibrate.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='comedi_calibrate.c' object='comedi_calibrate-comedi_calibrate.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-comedi_calibrate.o `test -f 'comedi_calibrate.c' || echo '$(srcdir)/'`comedi_calibrate.c comedi_calibrate-comedi_calibrate.obj: comedi_calibrate.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-comedi_calibrate.obj -MD -MP -MF $(DEPDIR)/comedi_calibrate-comedi_calibrate.Tpo -c -o comedi_calibrate-comedi_calibrate.obj `if test -f 'comedi_calibrate.c'; then $(CYGPATH_W) 'comedi_calibrate.c'; else $(CYGPATH_W) '$(srcdir)/comedi_calibrate.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-comedi_calibrate.Tpo $(DEPDIR)/comedi_calibrate-comedi_calibrate.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='comedi_calibrate.c' object='comedi_calibrate-comedi_calibrate.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-comedi_calibrate.obj `if test -f 'comedi_calibrate.c'; then $(CYGPATH_W) 'comedi_calibrate.c'; else $(CYGPATH_W) '$(srcdir)/comedi_calibrate.c'; fi` comedi_calibrate-ni.o: ni.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-ni.o -MD -MP -MF $(DEPDIR)/comedi_calibrate-ni.Tpo -c -o comedi_calibrate-ni.o `test -f 'ni.c' || echo '$(srcdir)/'`ni.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-ni.Tpo $(DEPDIR)/comedi_calibrate-ni.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ni.c' object='comedi_calibrate-ni.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-ni.o `test -f 'ni.c' || echo '$(srcdir)/'`ni.c comedi_calibrate-ni.obj: ni.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-ni.obj -MD -MP -MF $(DEPDIR)/comedi_calibrate-ni.Tpo -c -o comedi_calibrate-ni.obj `if test -f 'ni.c'; then $(CYGPATH_W) 'ni.c'; else $(CYGPATH_W) '$(srcdir)/ni.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-ni.Tpo $(DEPDIR)/comedi_calibrate-ni.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ni.c' object='comedi_calibrate-ni.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-ni.obj `if test -f 'ni.c'; then $(CYGPATH_W) 'ni.c'; else $(CYGPATH_W) '$(srcdir)/ni.c'; fi` comedi_calibrate-cb.o: cb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-cb.o -MD -MP -MF $(DEPDIR)/comedi_calibrate-cb.Tpo -c -o comedi_calibrate-cb.o `test -f 'cb.c' || echo '$(srcdir)/'`cb.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-cb.Tpo $(DEPDIR)/comedi_calibrate-cb.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cb.c' object='comedi_calibrate-cb.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-cb.o `test -f 'cb.c' || echo '$(srcdir)/'`cb.c comedi_calibrate-cb.obj: cb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-cb.obj -MD -MP -MF $(DEPDIR)/comedi_calibrate-cb.Tpo -c -o comedi_calibrate-cb.obj `if test -f 'cb.c'; then $(CYGPATH_W) 'cb.c'; else $(CYGPATH_W) '$(srcdir)/cb.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-cb.Tpo $(DEPDIR)/comedi_calibrate-cb.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cb.c' object='comedi_calibrate-cb.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-cb.obj `if test -f 'cb.c'; then $(CYGPATH_W) 'cb.c'; else $(CYGPATH_W) '$(srcdir)/cb.c'; fi` comedi_calibrate-cb64.o: cb64.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-cb64.o -MD -MP -MF $(DEPDIR)/comedi_calibrate-cb64.Tpo -c -o comedi_calibrate-cb64.o `test -f 'cb64.c' || echo '$(srcdir)/'`cb64.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-cb64.Tpo $(DEPDIR)/comedi_calibrate-cb64.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cb64.c' object='comedi_calibrate-cb64.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-cb64.o `test -f 'cb64.c' || echo '$(srcdir)/'`cb64.c comedi_calibrate-cb64.obj: cb64.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-cb64.obj -MD -MP -MF $(DEPDIR)/comedi_calibrate-cb64.Tpo -c -o comedi_calibrate-cb64.obj `if test -f 'cb64.c'; then $(CYGPATH_W) 'cb64.c'; else $(CYGPATH_W) '$(srcdir)/cb64.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-cb64.Tpo $(DEPDIR)/comedi_calibrate-cb64.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cb64.c' object='comedi_calibrate-cb64.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-cb64.obj `if test -f 'cb64.c'; then $(CYGPATH_W) 'cb64.c'; else $(CYGPATH_W) '$(srcdir)/cb64.c'; fi` comedi_calibrate-other.o: other.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-other.o -MD -MP -MF $(DEPDIR)/comedi_calibrate-other.Tpo -c -o comedi_calibrate-other.o `test -f 'other.c' || echo '$(srcdir)/'`other.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-other.Tpo $(DEPDIR)/comedi_calibrate-other.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='other.c' object='comedi_calibrate-other.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-other.o `test -f 'other.c' || echo '$(srcdir)/'`other.c comedi_calibrate-other.obj: other.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-other.obj -MD -MP -MF $(DEPDIR)/comedi_calibrate-other.Tpo -c -o comedi_calibrate-other.obj `if test -f 'other.c'; then $(CYGPATH_W) 'other.c'; else $(CYGPATH_W) '$(srcdir)/other.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-other.Tpo $(DEPDIR)/comedi_calibrate-other.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='other.c' object='comedi_calibrate-other.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-other.obj `if test -f 'other.c'; then $(CYGPATH_W) 'other.c'; else $(CYGPATH_W) '$(srcdir)/other.c'; fi` comedi_calibrate-cal_common.o: cal_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-cal_common.o -MD -MP -MF $(DEPDIR)/comedi_calibrate-cal_common.Tpo -c -o comedi_calibrate-cal_common.o `test -f 'cal_common.c' || echo '$(srcdir)/'`cal_common.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-cal_common.Tpo $(DEPDIR)/comedi_calibrate-cal_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cal_common.c' object='comedi_calibrate-cal_common.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-cal_common.o `test -f 'cal_common.c' || echo '$(srcdir)/'`cal_common.c comedi_calibrate-cal_common.obj: cal_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-cal_common.obj -MD -MP -MF $(DEPDIR)/comedi_calibrate-cal_common.Tpo -c -o comedi_calibrate-cal_common.obj `if test -f 'cal_common.c'; then $(CYGPATH_W) 'cal_common.c'; else $(CYGPATH_W) '$(srcdir)/cal_common.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-cal_common.Tpo $(DEPDIR)/comedi_calibrate-cal_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cal_common.c' object='comedi_calibrate-cal_common.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-cal_common.obj `if test -f 'cal_common.c'; then $(CYGPATH_W) 'cal_common.c'; else $(CYGPATH_W) '$(srcdir)/cal_common.c'; fi` comedi_calibrate-ni_labpc.o: ni_labpc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-ni_labpc.o -MD -MP -MF $(DEPDIR)/comedi_calibrate-ni_labpc.Tpo -c -o comedi_calibrate-ni_labpc.o `test -f 'ni_labpc.c' || echo '$(srcdir)/'`ni_labpc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-ni_labpc.Tpo $(DEPDIR)/comedi_calibrate-ni_labpc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ni_labpc.c' object='comedi_calibrate-ni_labpc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-ni_labpc.o `test -f 'ni_labpc.c' || echo '$(srcdir)/'`ni_labpc.c comedi_calibrate-ni_labpc.obj: ni_labpc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -MT comedi_calibrate-ni_labpc.obj -MD -MP -MF $(DEPDIR)/comedi_calibrate-ni_labpc.Tpo -c -o comedi_calibrate-ni_labpc.obj `if test -f 'ni_labpc.c'; then $(CYGPATH_W) 'ni_labpc.c'; else $(CYGPATH_W) '$(srcdir)/ni_labpc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_calibrate-ni_labpc.Tpo $(DEPDIR)/comedi_calibrate-ni_labpc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ni_labpc.c' object='comedi_calibrate-ni_labpc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_calibrate_CFLAGS) $(CFLAGS) -c -o comedi_calibrate-ni_labpc.obj `if test -f 'ni_labpc.c'; then $(CYGPATH_W) 'ni_labpc.c'; else $(CYGPATH_W) '$(srcdir)/ni_labpc.c'; fi` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-data-local install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS .PRECIOUS: Makefile install-data-local: $(INSTALL) -d $(DESTDIR)$(localstatedir)/lib/comedi/calibrations # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: comedi_calibrate-5/comedi_calibrate/ni.c0000644000000000000000000015635112416542124015411 00000000000000/* A little auto-calibration utility, for boards that support it. copyright (C) 1999,2000,2001,2002 by David Schleef copyright (C) 2003 by Frank Mori Hess */ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include "calib.h" char ni_id[] = "$Id$"; struct board_struct{ char *name; int status; int (*cal)( calibration_setup_t *setup); int (*setup_observables)( calibration_setup_t *setup ); int ref_eeprom_lsb; int ref_eeprom_msb; }; static int ni_setup_board( calibration_setup_t *setup , const char *device_name ); static int ni_setup_observables( calibration_setup_t *setup ); static int ni_setup_observables_611x( calibration_setup_t *setup ); static int ni67xx_setup_observables( calibration_setup_t *setup ); static int cal_ni_at_mio_16de_10(calibration_setup_t *setup); static int cal_ni_at_mio_16e_2(calibration_setup_t *setup); static int cal_ni_at_mio_64e_3(calibration_setup_t *setup); static int cal_ni_daqcard_ai_16xe_50(calibration_setup_t *setup); static int cal_ni_at_mio_16e_1(calibration_setup_t *setup); static int cal_ni_pci_mio_16e_1(calibration_setup_t *setup); static int cal_ni_pci_6014(calibration_setup_t *setup); static int cal_ni_pci_6024e(calibration_setup_t *setup); static int cal_ni_pci_6032e(calibration_setup_t *setup); static int cal_ni_pci_6034e(calibration_setup_t *setup); static int cal_ni_pci_6035e(calibration_setup_t *setup); static int cal_ni_pci_6036e(calibration_setup_t *setup); static int cal_ni_pci_6071e(calibration_setup_t *setup); static int cal_ni_pxi_6071e(calibration_setup_t *setup); static int cal_ni_at_mio_16e_10(calibration_setup_t *setup); static int cal_ni_pci_mio_16xe_50(calibration_setup_t *setup); static int cal_ni_pci_6023e(calibration_setup_t *setup); static int cal_ni_at_mio_16xe_50(calibration_setup_t *setup); static int cal_ni_pci_mio_16xe_10(calibration_setup_t *setup); static int cal_ni_pci_6052e(calibration_setup_t *setup); static int cal_ni_daqcard_ai_16e_4(calibration_setup_t *setup); static int cal_ni_pci_611x(calibration_setup_t *setup); static int cal_ni_pci_mio_16e_4(calibration_setup_t *setup); static int cal_ni_daqcard_6062e(calibration_setup_t *setup); static int cal_ni_daqcard_6024e(calibration_setup_t *setup); static int cal_ni_daqcard_6036e(calibration_setup_t *setup); static int cal_ni_pci_6711(calibration_setup_t *setup); static double ni_get_reference( calibration_setup_t *setup, int lsb_loc,int msb_loc); static struct board_struct boards[]={ { "at-ai-16xe-10", STATUS_UNKNOWN, NULL, ni_setup_observables, 0x1b7, 0x1b8 }, { "at-mio-16de-10", STATUS_DONE, cal_ni_at_mio_16de_10, ni_setup_observables, 0x1a7, 0x1a8 }, { "at-mio-16e-1", STATUS_DONE, cal_ni_at_mio_16e_1, ni_setup_observables, 0x1a9, 0x1aa }, { "at-mio-16e-2", STATUS_DONE, cal_ni_at_mio_16e_2, ni_setup_observables, 0x1a9, 0x1aa }, { "at-mio-16e-10", STATUS_DONE, cal_ni_at_mio_16e_10, ni_setup_observables, 0x1a7, 0x1a8 }, { "at-mio-16xe-10", STATUS_UNKNOWN, NULL, ni_setup_observables, 0x1b7, 0x1b8 }, { "at-mio-16xe-50", STATUS_DONE, cal_ni_at_mio_16xe_50, ni_setup_observables, 0x1b5, 0x1b6 }, { "at-mio-64e-3", STATUS_SOME, cal_ni_at_mio_64e_3, ni_setup_observables, 0x1a9, 0x1aa}, { "DAQCard-ai-16e-4", STATUS_DONE, cal_ni_daqcard_ai_16e_4, ni_setup_observables, 0x1b5, 0x1b6 }, { "DAQCard-ai-16xe-50", STATUS_DONE, cal_ni_daqcard_ai_16xe_50, ni_setup_observables, 0x1be, 0x1bf }, { "DAQCard-6024E", STATUS_SOME, cal_ni_daqcard_6024e, ni_setup_observables, -1, -1 }, { "DAQCard-6036E", STATUS_DONE, cal_ni_daqcard_6036e, ni_setup_observables, 0x1ab, 0x1ac }, { "DAQCard-6062E", STATUS_DONE, cal_ni_daqcard_6062e, ni_setup_observables, 0x1a9, 0x1aa }, { "pci-mio-16e-1", STATUS_DONE, cal_ni_pci_mio_16e_1, ni_setup_observables, 0x1a9, 0x1aa }, { "pci-mio-16e-4", STATUS_DONE, cal_ni_pci_mio_16e_4, ni_setup_observables, 0x1a9, 0x1aa }, { "pci-mio-16xe-10", STATUS_DONE, cal_ni_pci_mio_16xe_10, ni_setup_observables, 0x1ae, 0x1af }, { "pci-mio-16xe-50", STATUS_SOME, cal_ni_pci_mio_16xe_50, ni_setup_observables, 0x1b5, 0x1b6 }, { "pci-6014", STATUS_DONE, cal_ni_pci_6014, ni_setup_observables, 0x1ab, 0x1ac }, { "pci-6023e", STATUS_DONE, cal_ni_pci_6023e, ni_setup_observables, 0x1bb, 0x1bc }, { "pci-6024e", STATUS_DONE, cal_ni_pci_6024e, ni_setup_observables, 0x1af, 0x1b0 }, { "pci-6025e", STATUS_DONE, cal_ni_pci_6035e, ni_setup_observables, 0x1af, 0x1b0 }, { "pci-6031e", STATUS_DONE, cal_ni_pci_mio_16xe_10, ni_setup_observables, 0x1ae, 0x1af }, { "pci-6032e", STATUS_DONE, cal_ni_pci_6032e, ni_setup_observables, 0x1ae, 0x1af }, { "pci-6033e", STATUS_DONE, cal_ni_pci_6032e, ni_setup_observables, 0x1b7, 0x1b8 }, { "pci-6034e", STATUS_DONE, cal_ni_pci_6034e, ni_setup_observables, 0x1bb, 0x1bc }, { "pci-6035e", STATUS_DONE, cal_ni_pci_6035e, ni_setup_observables, 0x1af, 0x1b0 }, { "pci-6036e", STATUS_DONE, cal_ni_pci_6036e, ni_setup_observables, 0x1ab, 0x1ac }, { "pci-6052e", STATUS_DONE, cal_ni_pci_6052e, ni_setup_observables, 0x19f, 0x1a0 }, { "pci-6071e", STATUS_DONE, cal_ni_pci_6071e, ni_setup_observables, 0x1a9, 0x1aa }, { "pci-6110", STATUS_DONE, cal_ni_pci_611x, ni_setup_observables_611x, 0x1d4, 0x1d5 }, { "pci-6111", STATUS_DONE, cal_ni_pci_611x, ni_setup_observables_611x, 0x1d4, 0x1d5 }, { "pxi-6025e", STATUS_GUESS, cal_ni_pci_6035e, ni_setup_observables, -1, -1 }, { "pxi-6030e", STATUS_GUESS, cal_ni_pci_mio_16xe_10, ni_setup_observables, -1, -1 }, { "pxi-6031e", STATUS_DONE, cal_ni_pci_mio_16xe_10, ni_setup_observables, 0x1ae, 0x1af }, { "pxi-6040e", STATUS_GUESS, cal_ni_pci_mio_16e_4, ni_setup_observables, -1, -1 }, { "pxi-6052e", STATUS_GUESS, cal_ni_pci_6052e, ni_setup_observables, -1, -1 }, { "pxi-6070e", STATUS_UNKNOWN, NULL, ni_setup_observables, -1, -1 }, { "pci-6070e", STATUS_UNKNOWN, NULL, ni_setup_observables, -1, -1 }, { "pxi-6071e", STATUS_GUESS, cal_ni_pxi_6071e, ni_setup_observables, -1, -1 }, { "pci-6711", STATUS_DONE, cal_ni_pci_6711, ni67xx_setup_observables, 0x1d4, 0x1d5}, { "pci-6713", STATUS_DONE, cal_ni_pci_6711, ni67xx_setup_observables, 0x1d4, 0x1d5}, { "pci-6731", STATUS_GUESS, cal_ni_pci_6711, ni67xx_setup_observables, -1, -1}, { "pci-6733", STATUS_GUESS, cal_ni_pci_6711, ni67xx_setup_observables, -1, -1}, { "pxi-6711", STATUS_GUESS, cal_ni_pci_6711, ni67xx_setup_observables, -1, -1}, { "pxi-6713", STATUS_DONE, cal_ni_pci_6711, ni67xx_setup_observables, 0x1d4, 0x1d5}, { "pxi-6731", STATUS_GUESS, cal_ni_pci_6711, ni67xx_setup_observables, -1, -1}, { "pxi-6733", STATUS_GUESS, cal_ni_pci_6711, ni67xx_setup_observables, -1, -1}, #if 0 { "at-mio-64e-3", cal_ni_16e_1 }, #endif }; #define n_boards (sizeof(boards)/sizeof(boards[0])) static const int ni_num_observables = 20; enum observables{ ni_zero_offset_low = 0, ni_zero_offset_high, ni_reference_low, ni_unip_zero_offset_low, ni_unip_zero_offset_high, ni_unip_reference_low, ni_ao0_zero_offset, ni_ao0_reference, ni_ao0_linearity, ni_ao1_zero_offset, ni_ao1_reference, ni_ao1_linearity, ni_ao0_unip_zero_offset, ni_ao0_unip_reference, ni_ao0_unip_low_linearity, ni_ao0_unip_mid_linearity, ni_ao1_unip_zero_offset, ni_ao1_unip_reference, ni_ao1_unip_low_linearity, ni_ao1_unip_mid_linearity, }; static inline unsigned int ni_ao_zero_offset( unsigned int channel ) { if( channel ) return ni_ao1_zero_offset; else return ni_ao0_zero_offset; } static inline unsigned int ni_ao_reference( unsigned int channel ) { if( channel ) return ni_ao1_reference; else return ni_ao0_reference; } static inline unsigned int ni_ao_mid_linearity( unsigned int channel ) { if( channel ) return ni_ao1_linearity; else return ni_ao0_linearity; } static inline unsigned int ni_ao_unip_zero_offset( unsigned int channel ) { if( channel ) return ni_ao1_unip_zero_offset; else return ni_ao0_unip_zero_offset; } static inline unsigned int ni_ao_unip_reference( unsigned int channel ) { if( channel ) return ni_ao1_unip_reference; else return ni_ao0_unip_reference; } static inline unsigned int ni_ao_unip_low_linearity( unsigned int channel ) { if( channel ) return ni_ao1_unip_low_linearity; else return ni_ao0_unip_low_linearity; } static inline unsigned int ni_ao_unip_mid_linearity( unsigned int channel ) { if( channel ) return ni_ao1_unip_mid_linearity; else return ni_ao0_unip_mid_linearity; } static const int num_ao_observables_611x = 4; static int ni_ao_zero_offset_611x( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { assert( range == 0 ); return 2 * channel; }; static int ni_ao_reference_611x( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { assert( range == 0 ); return 2 * channel + 1; }; static int ni_zero_offset_611x( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return num_ao_observables_611x + 8 * range + 2 * channel; }; static int ni_reference_611x( const calibration_setup_t *setup, unsigned int channel, unsigned int range ) { return num_ao_observables_611x + 8 * range + 2 * channel + 1; }; enum reference_sources { REF_GND_GND = 0, REF_AOGND_AIGND = 1, REF_DAC0_GND = 2, REF_DAC1_GND = 3, REF_CALSRC_CALSRC = 4, REF_CALSRC_GND = 5, REF_DAC0_CALSRC = 6, REF_DAC1_CALSRC = 7, }; static inline unsigned int REF_DAC_GND( unsigned int channel ) { if( channel ) return REF_DAC1_GND; else return REF_DAC0_GND; } static inline unsigned int REF_DAC_CALSRC( unsigned int channel ) { if( channel ) return REF_DAC1_CALSRC; else return REF_DAC0_CALSRC; } static struct board_struct* ni_board( calibration_setup_t *setup ) { return setup->private_data; } typedef struct { int adc_pregain_offset; int adc_postgain_offset; int adc_gain; int adc_pregain_offset_fine; int adc_postgain_offset_fine; int adc_gain_fine; int adc_unip_offset; int adc_unip_offset_fine; int dac_offset[ 2 ]; int dac_offset_fine[ 2 ]; int dac_gain[ 2 ]; int dac_gain_fine[ 2 ]; int dac_linearity[ 2 ]; } ni_caldac_layout_t; static int cal_ni_generic( calibration_setup_t *setup, const ni_caldac_layout_t *layout ); static inline void init_ni_caldac_layout( ni_caldac_layout_t *layout ) { int i; layout->adc_pregain_offset = -1; layout->adc_postgain_offset = -1; layout->adc_gain = -1; layout->adc_unip_offset = -1; layout->adc_unip_offset_fine = -1; layout->adc_pregain_offset_fine = -1; layout->adc_postgain_offset_fine = -1; layout->adc_gain_fine = -1; for( i = 0; i < 2; i++ ) { layout->dac_offset[ i ] = -1; layout->dac_offset_fine[ i ] = -1; layout->dac_gain[ i ] = -1; layout->dac_gain_fine[ i ] = -1; layout->dac_linearity[ i ] = -1; } } int ni_setup( calibration_setup_t *setup , const char *device_name ) { int retval; retval = ni_setup_board( setup, device_name ); if( retval < 0 ) { return retval; } setup_caldacs( setup, setup->caldac_subdev ); return 0; } static int ni_setup_board( calibration_setup_t *setup, const char *device_name ) { int i; for(i = 0; i < n_boards; i++ ){ if(!strcmp( device_name, boards[i].name )){ setup->status = boards[i].status; setup->do_cal = boards[i].cal; setup->private_data = &boards[ i ]; if( boards[i].setup_observables( setup ) < 0 ) return -1; break; } } if( i == n_boards ) return -1; return 0; } static int ni_setup_ao_observables( calibration_setup_t *setup ) { observable *o; comedi_insn tmpl, po_tmpl; unsigned int channel; int ai_bipolar_lowgain; int ao_bipolar_lowgain; int ao_unipolar_lowgain; ai_bipolar_lowgain = get_bipolar_lowgain( setup->dev, setup->ad_subdev); assert(ai_bipolar_lowgain >= 0); ao_bipolar_lowgain = get_bipolar_lowgain( setup->dev, setup->da_subdev); assert(ao_bipolar_lowgain >= 0); ao_unipolar_lowgain = get_unipolar_lowgain( setup->dev, setup->da_subdev); memset(&tmpl,0,sizeof(tmpl)); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; memset(&po_tmpl, 0, sizeof(po_tmpl)); po_tmpl.insn = INSN_WRITE; po_tmpl.n = 1; po_tmpl.subdev = setup->da_subdev; for( channel = 0; channel < 2; channel++ ) { /* ao zero offset */ o = setup->observables + ni_ao_zero_offset( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "ao %i, zero offset, low gain", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(channel,ao_bipolar_lowgain,0); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_DAC_GND( channel ),ai_bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_zero_offset( channel ),0.0); /* ao gain */ o = setup->observables + ni_ao_reference( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "ao %i, reference voltage, low gain", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(channel,ao_bipolar_lowgain,0); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_DAC_GND( channel ),ai_bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_reference( channel ),8.0); /* ao linearity, mid */ o = setup->observables + ni_ao_mid_linearity( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "ao %i, linearity (mid), low gain", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(channel,ao_bipolar_lowgain,0); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_DAC_GND( channel ),ai_bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_mid_linearity( channel ),4.0); if( ao_unipolar_lowgain >= 0 ) { /* ao unipolar zero offset */ o = setup->observables + ni_ao_unip_zero_offset( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "ao %i, unipolar zero offset, low gain", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(channel,ao_unipolar_lowgain,0); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_DAC_GND( channel ),ai_bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_unip_zero_offset( channel ),0.0); /* ao unipolar gain */ o = setup->observables + ni_ao_unip_reference( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "ao %i, unipolar high, low gain", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(channel,ao_unipolar_lowgain,0); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_DAC_GND( channel ),ai_bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_unip_reference( channel ), 9.0); /* ao unipolar linearity, mid */ o = setup->observables + ni_ao_unip_mid_linearity( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "ao %i, unipolar linearity (mid), low gain", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(channel,ao_unipolar_lowgain,0); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_DAC_GND( channel ),ai_bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_unip_mid_linearity( channel ), 5.0); /* ao unipolar linearity, low */ o = setup->observables + ni_ao_unip_low_linearity( channel ); assert( o->name == NULL ); if( asprintf( &o->name, "ao %i, unipolar linearity (low), low gain", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(channel,ao_unipolar_lowgain,0); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_DAC_GND( channel ),ai_bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_unip_low_linearity( channel ), 1.0); } } return 0; } static int ni_setup_observables( calibration_setup_t *setup ) { comedi_insn tmpl; int bipolar_lowgain; int bipolar_highgain; int unipolar_lowgain; int unipolar_highgain; double voltage_reference; observable *o; bipolar_lowgain = get_bipolar_lowgain( setup->dev, setup->ad_subdev); bipolar_highgain = get_bipolar_highgain( setup->dev, setup->ad_subdev); unipolar_lowgain = get_unipolar_lowgain( setup->dev, setup->ad_subdev); unipolar_highgain = get_unipolar_highgain( setup->dev, setup->ad_subdev); if( ni_board( setup )->ref_eeprom_lsb >= 0 && ni_board( setup )->ref_eeprom_msb >= 0 ) { voltage_reference = ni_get_reference( setup, ni_board( setup )->ref_eeprom_lsb, ni_board( setup )->ref_eeprom_msb ); }else { DPRINT( 0, "WARNING: unknown eeprom address for reference voltage\n" "correction. This might be fixable if you send us an eeprom dump\n" "(see the demo/eeprom_dump program).\n"); voltage_reference = 5.0; } memset(&tmpl,0,sizeof(tmpl)); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; setup->n_observables = ni_num_observables; /* 0 offset, low gain */ o = setup->observables + ni_zero_offset_low; o->name = "ai, bipolar zero offset, low gain"; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_GND_GND,bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_GND_GND; o->target = 0; /* 0 offset, high gain */ o = setup->observables + ni_zero_offset_high; o->name = "ai, bipolar zero offset, high gain"; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_GND_GND,bipolar_highgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_GND_GND; o->target = 0; /* voltage reference */ o = setup->observables + ni_reference_low; o->name = "ai, bipolar voltage reference, low gain"; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_CALSRC_GND,bipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_CALSRC_GND; o->target = voltage_reference; if(unipolar_lowgain>=0){ o = setup->observables + ni_unip_zero_offset_low; o->name = "ai, unipolar zero offset, low gain"; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_GND_GND,unipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_GND_GND; o->target = very_low_target( setup->dev, setup->ad_subdev, 0, unipolar_lowgain ); o = setup->observables + ni_unip_reference_low; o->name = "ai, unipolar voltage reference, low gain"; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_CALSRC_GND,unipolar_lowgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_CALSRC_GND; o->target = voltage_reference; } if(unipolar_highgain >= 0) { o = setup->observables + ni_unip_zero_offset_high; o->name = "ai, unipolar zero offset, high gain"; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(REF_GND_GND,unipolar_highgain,AREF_OTHER) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_GND_GND; o->target = very_low_target( setup->dev, setup->ad_subdev, 0, unipolar_highgain ); } if(setup->da_subdev >= 0) return ni_setup_ao_observables( setup ); return 0; } /* for +-50V and +-20V ranges, the reference source goes 0V * to 50V instead of 0V to 5V */ static unsigned int cal_gain_register_bits_611x( double reference, double *voltage ) { int bits; bits = 200.0 * ( *voltage / reference ); if( bits > 200 ) bits = 200; if( bits < 0 ) bits = 0; *voltage = reference * ( bits / 200.0 ); return bits; } static unsigned int ref_source_611x( unsigned int ref_source, unsigned int cal_gain_bits ) { return ( ref_source & 0xf ) | ( ( cal_gain_bits << 4 ) & 0xff0 ); } static void reference_target_611x( calibration_setup_t *setup, observable *o, double master_reference, unsigned int range ) { int cal_gain_reg_bits; double reference; double target; comedi_range *range_ptr; range_ptr = comedi_get_range( setup->dev, setup->ad_subdev, 0, range ); assert( range_ptr != NULL ); if( range_ptr->max > 19.0 ) reference = 10 * master_reference; else reference = master_reference; target = range_ptr->max * 0.8; cal_gain_reg_bits = cal_gain_register_bits_611x( reference, &target ); o->reference_source = ref_source_611x( REF_CALSRC_GND, cal_gain_reg_bits ); o->target = target; } static int ni_setup_observables_611x( calibration_setup_t *setup ) { comedi_insn tmpl; comedi_insn po_tmpl; int range, channel; double master_reference; observable *o; int num_ai_channels, num_ai_ranges; static const int num_ao_channels = 2; setup->sv_settling_time_ns = 10000000; setup->sv_order = 14; master_reference = ni_get_reference( setup, ni_board( setup )->ref_eeprom_lsb, ni_board( setup )->ref_eeprom_msb ); memset(&tmpl,0,sizeof(tmpl)); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; num_ai_channels = comedi_get_n_channels( setup->dev, setup->ad_subdev ); assert( num_ai_channels >= 0 ); num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges >= 0 ); for( channel = 0; channel < num_ai_channels; channel++ ) { for( range = 0; range < num_ai_ranges; range++ ) { /* 0 offset */ o = setup->observables + ni_zero_offset_611x( setup, channel, range ); assert( o->name == NULL ); if( asprintf( &o->name, "ai, ch %i, range %i, zero offset", channel, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( channel, range, AREF_DIFF ) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_GND_GND; o->target = 0.0; /* voltage reference */ o = setup->observables + ni_reference_611x( setup, channel, range ); assert( o->name == NULL ); if( asprintf( &o->name, "ai, ch %i, range %i, voltage reference", channel, range ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( channel, range, AREF_DIFF ) | CR_ALT_SOURCE | CR_ALT_FILTER; reference_target_611x( setup, o, master_reference, range ); } } memset(&po_tmpl,0,sizeof(po_tmpl)); po_tmpl.insn = INSN_WRITE; po_tmpl.n = 1; po_tmpl.subdev = setup->da_subdev; for( channel = 0; channel < num_ao_channels; channel ++ ) { static const int ai_range_for_ao = 2; /* ao zero offset */ o = setup->observables + ni_ao_zero_offset_611x( setup, channel, 0 ); assert( o->name == NULL ); if( asprintf( &o->name, "ao ch %i, zero offset", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( channel, 0, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, ai_range_for_ao, AREF_DIFF ) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_zero_offset_611x( setup, channel, 0 ), 0.0 ); /* ao gain */ o = setup->observables + ni_ao_reference_611x( setup, channel, 0 ); assert( o->name == NULL ); if( asprintf( &o->name, "ao ch %i, reference voltage", channel ) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( channel, 0, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK( 0, ai_range_for_ao, AREF_DIFF ) | CR_ALT_SOURCE | CR_ALT_FILTER; o->reference_source = REF_DAC_GND( channel ); set_target( setup, ni_ao_reference_611x( setup, channel, 0 ), 5.0 ); } setup->n_observables = num_ao_observables_611x + 2 * num_ai_ranges * num_ai_channels; return 0; } static int cal_ni_daqcard_ai_16xe_50(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 2; layout.adc_gain = 0; layout.adc_gain_fine = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_at_mio_16xe_50(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 2; layout.adc_gain = 0; layout.adc_gain_fine = 1; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 4; layout.dac_offset[ 1 ] = 7; layout.dac_gain[ 1 ] = 5; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_mio_16xe_10(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 2; layout.adc_postgain_offset_fine = 3; layout.adc_gain = 0; layout.adc_gain_fine = 1; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 4; layout.dac_offset[ 1 ] = 7; layout.dac_gain[ 1 ] = 5; return cal_ni_generic( setup, &layout ); } static int cal_ni_at_mio_16e_1(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 1; layout.adc_gain = 3; layout.adc_unip_offset = 2; layout.dac_offset[0] = 5; layout.dac_gain[0] = 6; layout.dac_linearity[0] = 4; layout.dac_offset[1] = 8; layout.dac_gain[1] = 9; layout.dac_linearity[1] = 7; return cal_ni_generic( setup, &layout ); } static int cal_ni_at_mio_16e_2(calibration_setup_t *setup) { return cal_ni_at_mio_16e_1(setup); } static int cal_ni_pci_mio_16e_1(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 1; layout.adc_unip_offset = 2; layout.adc_gain = 3; layout.dac_offset[ 0 ] = 5; layout.dac_gain[ 0 ] = 6; layout.dac_linearity[ 0 ] = 4; layout.dac_offset[ 1 ] = 8; layout.dac_gain[ 1 ] = 9; layout.dac_linearity[ 1 ] = 7; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6014(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 4; layout.adc_pregain_offset_fine = 8; layout.adc_gain = 2; layout.dac_offset[0] = 6; layout.dac_offset_fine[0] = 10; layout.dac_gain[0] = 7; layout.dac_gain_fine[0] = 11; layout.dac_offset[1] = 9; layout.dac_offset_fine[1] = 1; layout.dac_gain[1] = 3; layout.dac_gain_fine[1] = 5; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6032e(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 2; layout.adc_postgain_offset_fine = 3; layout.adc_gain = 0; layout.adc_gain_fine = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6034e(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_pregain_offset_fine = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; return cal_ni_generic( setup, &layout ); } static int cal_ni_at_mio_16de_10(calibration_setup_t *setup) { if(comedi_get_version_code(setup->dev) <= COMEDI_VERSION_CODE(0, 7, 70)) { DPRINT(0, "WARNING: you need comedi driver version 0.7.71 or later\n" "for this calibration to work properly\n" ); } return cal_ni_pci_6035e(setup); } static int cal_ni_pci_6035e(calibration_setup_t *setup) { /* this is for the ad8804_debug caldac */ ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_pregain_offset_fine = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6036e(calibration_setup_t *setup) { ni_caldac_layout_t layout; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 66 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } /* this is for the ad8804_debug caldac */ init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 4; layout.adc_pregain_offset_fine = 8; layout.adc_gain = 2; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 7; layout.dac_gain_fine[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 3; layout.dac_gain_fine[ 1 ] = 5; layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6071e(calibration_setup_t *setup) { ni_caldac_layout_t layout; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 66 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 4; layout.adc_unip_offset = 7; layout.adc_gain = 2; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_pxi_6071e(calibration_setup_t *setup) { ni_caldac_layout_t layout; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 66 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_pregain_offset_fine = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_at_mio_16e_10(calibration_setup_t *setup) { ni_caldac_layout_t layout; if(comedi_get_version_code(setup->dev) <= COMEDI_VERSION_CODE(0, 7, 68)) { DPRINT(0, "WARNING: you need comedi driver version 0.7.69 or later\n" "for this calibration to work properly\n" ); } init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_pregain_offset_fine = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; layout.adc_unip_offset = 7; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[1] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_mio_16xe_50(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 2; layout.adc_gain = 0; layout.adc_gain_fine = 1; layout.adc_unip_offset = 7; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 4; layout.dac_offset[ 1 ] = 7; layout.dac_gain[ 1 ] = 5; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6023e(calibration_setup_t *setup) { /* for comedi-0.7.65 */ ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; /* possibly wrong */ layout.adc_pregain_offset_fine = 0; layout.adc_postgain_offset = 4; layout.adc_gain = 2; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6024e(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 4; layout.adc_pregain_offset_fine = 8; layout.adc_gain = 2; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_pci_6052e(calibration_setup_t *setup) { /* * This board has noisy caldacs * * The NI documentation says (true mb88341 addressing): * 0, 8 AI pregain (coarse, fine) * 4, 12 AI postgain * 2, 10 AI reference * 14, 7 AI unipolar offset * * 0 AO0 linearity * 8, 4 AO0 reference * 12 AO0 offset * 2 AO1 linearity * 10, 6 AO1 reference * 14 AO1 offset * * For us, these map to (ad8804 channels) * * 0, 1 AI pregain (coarse, fine) * 2, 3 AI postgain * 4, 5 AI reference * 7 AI unipolar offset * * 0 AO0 linearity * 1, 2 AO0 reference * 3 AO0 offset * 4 AO1 linearity * 5, 6 AO1 reference * 7 AO1 offset * * or, with mb88341 channels * * xxx AO0 linearity * 7, 3 AO0 reference * 11 AO0 offset * 1 AO1 linearity * 9, 5 AO1 reference * xxx AO1 offset * */ ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 2; layout.adc_gain = 4; layout.adc_unip_offset = 6; layout.adc_unip_offset_fine = 7; layout.adc_pregain_offset_fine = 1; layout.adc_postgain_offset_fine = 3; layout.adc_gain_fine = 5; if(comedi_get_version_code(setup->dev) <= COMEDI_VERSION_CODE(0, 7, 66)) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } /* this works when the first two caldacs are ad8804_debug */ layout.dac_offset[ 0 ] = 16 + 3; layout.dac_gain[ 0 ] = 16 + 1; layout.dac_gain_fine[ 0 ] = 16 + 2; layout.dac_linearity[ 0 ] = 16 + 0; layout.dac_offset[ 1 ] = 16 + 7; layout.dac_gain[ 1 ] = 16 + 5; layout.dac_gain_fine[ 1 ] = 16 + 6; layout.dac_linearity[ 1 ] = 16 + 4; return cal_ni_generic( setup, &layout ); } static int cal_ni_daqcard_ai_16e_4(calibration_setup_t *setup) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 1; layout.adc_gain = 3; layout.adc_unip_offset = 2; return cal_ni_generic( setup, &layout ); } static int adc_offset_611x( unsigned int channel ) { return 2 * channel + 2; } static int adc_gain_611x( unsigned int channel ) { return 2 * channel + 1; } static int dac_offset_611x( unsigned int channel ) { return 12 + 2 + 2 * channel; } static int dac_gain_611x( unsigned int channel ) { return 12 + 1 + 2 * channel; } static int cal_ni_pci_611x( calibration_setup_t *setup ) { generic_layout_t layout; init_generic_layout( &layout ); layout.adc_offset = adc_offset_611x; layout.adc_gain = adc_gain_611x; layout.dac_offset = dac_offset_611x; layout.dac_gain = dac_gain_611x; layout.adc_high_observable = ni_reference_611x; layout.adc_ground_observable = ni_zero_offset_611x; layout.dac_high_observable = ni_ao_reference_611x; layout.dac_ground_observable = ni_ao_zero_offset_611x; return generic_cal_by_channel_and_range( setup, &layout ); } static int cal_ni_pci_mio_16e_4( calibration_setup_t *setup ) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; layout.adc_unip_offset = 7; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_daqcard_6062e( calibration_setup_t *setup ) { ni_caldac_layout_t layout; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 66 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n" "for this calibration to work properly\n" ); } init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; layout.adc_unip_offset = 7; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 11; layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_daqcard_6024e( calibration_setup_t *setup ) { ni_caldac_layout_t layout; init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_postgain_offset = 4; layout.adc_gain = 2; //layout.adc_unip_offset = 7; layout.dac_offset[ 0 ] = 6; layout.dac_gain[ 0 ] = 3; //layout.dac_linearity[ 0 ] = 10; layout.dac_offset[ 1 ] = 1; layout.dac_gain[ 1 ] = 5; //layout.dac_linearity[ 1 ] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_daqcard_6036e( calibration_setup_t *setup ) { ni_caldac_layout_t layout; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 68 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.69 or later\n" "for this calibration to work properly\n" ); } init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 0; layout.adc_pregain_offset_fine = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; layout.dac_offset[0] = 6; layout.dac_gain[0] = 7; layout.dac_gain_fine[ 0 ] = 11; layout.dac_linearity[0] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 3; layout.dac_gain_fine[ 1 ] = 5; layout.dac_linearity[1] = 1; return cal_ni_generic( setup, &layout ); } static int cal_ni_at_mio_64e_3( calibration_setup_t *setup ) { ni_caldac_layout_t layout; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE( 0, 7, 68 ) ) { DPRINT(0, "WARNING: you need comedi driver version 0.7.69 or later\n" "for this calibration to work properly\n" ); } init_ni_caldac_layout( &layout ); layout.adc_pregain_offset = 8; layout.adc_postgain_offset = 4; layout.adc_gain = 2; layout.dac_offset[0] = 6; layout.dac_gain[0] = 14; layout.dac_linearity[0] = 10; layout.dac_offset[ 1 ] = 9; layout.dac_gain[ 1 ] = 5; layout.dac_linearity[1] = 1; return cal_ni_generic( setup, &layout ); } static void prep_adc_caldacs_generic( calibration_setup_t *setup, const ni_caldac_layout_t *layout, unsigned int range ) { int retval; if( setup->old_calibration == NULL ) { reset_caldac( setup, layout->adc_pregain_offset ); reset_caldac( setup, layout->adc_postgain_offset ); reset_caldac( setup, layout->adc_gain ); reset_caldac( setup, layout->adc_pregain_offset_fine ); reset_caldac( setup, layout->adc_postgain_offset_fine ); reset_caldac( setup, layout->adc_gain_fine ); reset_caldac( setup, layout->adc_unip_offset ); reset_caldac( setup, layout->adc_unip_offset_fine ); }else { retval = comedi_apply_parsed_calibration( setup->dev, setup->ad_subdev, 0, range, AREF_GROUND, setup->old_calibration ); if( retval < 0 ) { DPRINT( 0, "Failed to apply existing calibration, reseting adc caldacs.\n" ); reset_caldac( setup, layout->adc_pregain_offset ); reset_caldac( setup, layout->adc_postgain_offset ); reset_caldac( setup, layout->adc_gain ); reset_caldac( setup, layout->adc_pregain_offset_fine ); reset_caldac( setup, layout->adc_postgain_offset_fine ); reset_caldac( setup, layout->adc_gain_fine ); reset_caldac( setup, layout->adc_unip_offset ); reset_caldac( setup, layout->adc_unip_offset_fine ); } } } static void prep_dac_caldacs_generic( calibration_setup_t *setup, const ni_caldac_layout_t *layout, unsigned int channel, unsigned int range ) { int retval; if( setup->da_subdev < 0 ) return; if( setup->old_calibration == NULL ) { reset_caldac( setup, layout->dac_offset[ channel ] ); reset_caldac( setup, layout->dac_offset_fine[ channel ] ); reset_caldac( setup, layout->dac_gain[ channel ] ); reset_caldac( setup, layout->dac_gain_fine[ channel ] ); reset_caldac( setup, layout->dac_linearity[ channel ] ); }else { retval = comedi_apply_parsed_calibration( setup->dev, setup->da_subdev, channel, range, AREF_GROUND, setup->old_calibration ); if( retval < 0 ) { DPRINT( 0, "Failed to apply existing calibration, reseting dac caldacs.\n" ); reset_caldac( setup, layout->dac_offset[ channel ] ); reset_caldac( setup, layout->dac_offset_fine[ channel ] ); reset_caldac( setup, layout->dac_gain[ channel ] ); reset_caldac( setup, layout->dac_gain_fine[ channel ] ); reset_caldac( setup, layout->dac_linearity[ channel ] ); } } } static void prep_adc_for_dac( calibration_setup_t *setup, int observable ) { unsigned int adc_range; int chanspec; if( observable < 0 ) return; chanspec = setup->observables[ observable ].observe_insn.chanspec; adc_range = CR_RANGE( chanspec ); comedi_apply_parsed_calibration( setup->dev, setup->ad_subdev, 0, adc_range, 0, setup->new_calibration ); } static int cal_ni_generic( calibration_setup_t *setup, const ni_caldac_layout_t *layout ) { comedi_calibration_setting_t *current_cal; int retval; int num_ai_ranges; int range; int ai_unipolar_lowgain, ai_bipolar_lowgain; num_ai_ranges = comedi_get_n_ranges( setup->dev, setup->ad_subdev, 0 ); assert( num_ai_ranges > 0 ); ai_bipolar_lowgain = get_bipolar_lowgain( setup->dev, setup->ad_subdev ); ai_unipolar_lowgain = get_unipolar_lowgain( setup->dev, setup->ad_subdev ); prep_adc_caldacs_generic( setup, layout, ai_bipolar_lowgain ); current_cal = sc_alloc_calibration_setting(setup->new_calibration); current_cal->subdevice = setup->ad_subdev; reset_caldac( setup, layout->adc_gain_fine ); generic_do_relative( setup, current_cal, ni_zero_offset_low, ni_reference_low, layout->adc_gain ); reset_caldac( setup, layout->adc_postgain_offset_fine ); generic_do_relative( setup, current_cal, ni_zero_offset_low, ni_zero_offset_high, layout->adc_postgain_offset ); generic_do_relative( setup, current_cal, ni_zero_offset_low, ni_zero_offset_high, layout->adc_postgain_offset_fine ); reset_caldac( setup, layout->adc_pregain_offset_fine ); generic_do_cal( setup, current_cal, ni_zero_offset_high, layout->adc_pregain_offset ); generic_do_relative( setup, current_cal, ni_zero_offset_low, ni_reference_low, layout->adc_gain_fine ); generic_do_cal( setup, current_cal, ni_zero_offset_high, layout->adc_pregain_offset_fine ); sc_push_channel( current_cal, SC_ALL_CHANNELS ); sc_push_aref( current_cal, SC_ALL_AREFS ); if( layout->adc_unip_offset >= 0 ) { sc_push_range( current_cal, SC_ALL_RANGES ); }else { for( range = 0; range < num_ai_ranges; range++ ) { if( is_bipolar( setup->dev, setup->ad_subdev, 0, range ) ) sc_push_range( current_cal, range ); } } /* do seperate unipolar calibration if appropriate */ if( ai_unipolar_lowgain >= 0 ) { current_cal = sc_alloc_calibration_setting(setup->new_calibration); current_cal->subdevice = setup->ad_subdev; if( layout->adc_unip_offset >= 0 ) { reset_caldac( setup, layout->adc_unip_offset_fine ); generic_do_cal( setup, current_cal, ni_unip_zero_offset_high, layout->adc_unip_offset ); generic_do_cal( setup, current_cal, ni_unip_zero_offset_high, layout->adc_unip_offset_fine ); /* if we don't have a unipolar offset caldac, do a fully * independent calibration for unipolar ranges */ }else { prep_adc_caldacs_generic( setup, layout, ai_unipolar_lowgain ); generic_peg( setup, ni_unip_zero_offset_low, layout->adc_pregain_offset, 1 ); generic_peg( setup, ni_unip_zero_offset_low, layout->adc_postgain_offset, 1 ); reset_caldac(setup, layout->adc_gain_fine); generic_do_relative( setup, current_cal, ni_unip_zero_offset_low, ni_unip_reference_low, layout->adc_gain ); reset_caldac(setup, layout->adc_postgain_offset_fine); generic_do_relative( setup, current_cal, ni_unip_zero_offset_low, ni_unip_zero_offset_high, layout->adc_postgain_offset ); generic_do_relative( setup, current_cal, ni_unip_zero_offset_low, ni_unip_zero_offset_high, layout->adc_postgain_offset_fine ); reset_caldac( setup, layout->adc_pregain_offset_fine ); generic_do_cal( setup, current_cal, ni_unip_zero_offset_high, layout->adc_pregain_offset ); generic_do_relative( setup, current_cal, ni_unip_zero_offset_low, ni_unip_reference_low, layout->adc_gain_fine ); generic_do_cal( setup, current_cal, ni_unip_zero_offset_high, layout->adc_pregain_offset_fine ); } for( range = 0; range < num_ai_ranges; range++ ) { if( is_unipolar( setup->dev, setup->ad_subdev, 0, range ) ) sc_push_range( current_cal, range ); } sc_push_channel( current_cal, SC_ALL_CHANNELS ); sc_push_aref( current_cal, SC_ALL_AREFS ); } if( setup->da_subdev >= 0 && setup->do_output ) { unsigned int channel, range; int ao_unipolar_lowgain = get_unipolar_lowgain( setup->dev, setup->da_subdev ); int ao_bipolar_lowgain = get_bipolar_lowgain( setup->dev, setup->da_subdev ); int num_ao_ranges; for( channel = 0; channel < 2; channel++ ) { num_ao_ranges = comedi_get_n_ranges( setup->dev, setup->da_subdev, channel ); prep_dac_caldacs_generic( setup, layout, channel, ao_bipolar_lowgain ); prep_adc_for_dac( setup, ni_ao_reference( channel ) ); current_cal = sc_alloc_calibration_setting(setup->new_calibration); current_cal->subdevice = setup->da_subdev; generic_do_linearity( setup, current_cal, ni_ao_zero_offset( channel ), ni_ao_mid_linearity( channel ), ni_ao_reference( channel ), layout->dac_linearity[ channel ] ); reset_caldac(setup, layout->dac_offset_fine[channel]); generic_do_cal( setup, current_cal, ni_ao_zero_offset( channel ), layout->dac_offset[ channel ] ); generic_do_cal( setup, current_cal, ni_ao_zero_offset( channel ), layout->dac_offset_fine[ channel ] ); reset_caldac( setup, layout->dac_gain_fine[ channel ] ); generic_do_cal( setup, current_cal, ni_ao_reference( channel ), layout->dac_gain[ channel ] ); generic_do_cal( setup, current_cal, ni_ao_reference( channel ), layout->dac_gain_fine[ channel ] ); sc_push_channel( current_cal, channel ); for( range = 0; range < num_ao_ranges; range++ ) { if( is_bipolar( setup->dev, setup->da_subdev, channel, range ) ) sc_push_range( current_cal, range ); } sc_push_aref( current_cal, SC_ALL_AREFS ); if( ao_unipolar_lowgain >= 0 ) { prep_dac_caldacs_generic( setup, layout, channel, ao_unipolar_lowgain ); current_cal = sc_alloc_calibration_setting(setup->new_calibration); current_cal->subdevice = setup->da_subdev; generic_do_linearity( setup, current_cal, ni_ao_unip_low_linearity( channel ), ni_ao_unip_mid_linearity( channel ), ni_ao_unip_reference( channel ), layout->dac_linearity[ channel ] ); reset_caldac( setup, layout->dac_offset_fine[ channel ] ); generic_do_cal( setup, current_cal, ni_ao_unip_zero_offset( channel), layout->dac_offset[ channel ] ); generic_do_cal( setup, current_cal, ni_ao_unip_zero_offset( channel), layout->dac_offset_fine[ channel ] ); reset_caldac( setup, layout->dac_gain_fine[ channel ] ); generic_do_cal( setup, current_cal, ni_ao_unip_reference( channel ), layout->dac_gain[ channel ] ); generic_do_cal( setup, current_cal, ni_ao_unip_reference( channel ), layout->dac_gain_fine[ channel ] ); sc_push_channel( current_cal, channel ); for( range = 0; range < num_ao_ranges; range++ ) { if( is_unipolar( setup->dev, setup->da_subdev, channel, range ) ) sc_push_range( current_cal, range ); } sc_push_aref( current_cal, SC_ALL_AREFS ); } } } retval = write_calibration_file(setup->cal_save_file_path, setup->new_calibration); return retval; } static double ni_get_reference( calibration_setup_t *setup, int lsb_loc,int msb_loc) { int lsb,msb; int16_t uv; double ref; lsb=read_eeprom( setup, lsb_loc ); msb=read_eeprom( setup, msb_loc ); assert( lsb >=0 && msb >= 0 ); DPRINT(0,"eeprom reference lsb=%d msb=%d\n", lsb, msb); uv = ( lsb & 0xff ) | ( ( msb << 8 ) & 0xff00 ); ref=5.000+1.0e-6*uv; DPRINT(0, "resulting reference voltage: %g\n", ref ); if( fabs( ref - 5.0 ) > 0.005 ) DPRINT( 0, "WARNING: eeprom indicates reference is more than 5mV away\n" "from 5V. Possible bad eeprom address?\n" ); return ref; } /**************** NI 671x and 673x support **************/ static const int channels_per_ad8804 = 16; static inline int ni67xx_ao_gain_caldac(unsigned int ao_channel) { int ad8804_gain_channels[4] = {8, 2, 11, 5}; int caldac_channel = ad8804_gain_channels[ao_channel % 4]; int caldac_index = ao_channel / 4; /* just guessing that second ad8804 is works for ao channels 4-7 * the same as the first ad8804 works for ao channels 0-3 */ return caldac_index * channels_per_ad8804 + caldac_channel; } static inline int ni67xx_ao_linearity_caldac(unsigned int ao_channel) { int ad8804_linearity_channels[4] = {4, 10, 1, 0}; int caldac_channel = ad8804_linearity_channels[ao_channel % 4]; int caldac_index = ao_channel / 4; return caldac_index * channels_per_ad8804 + caldac_channel; } static inline int ni67xx_ao_offset_caldac(unsigned int ao_channel) { int ad8804_offset_channels[4] = {7, 6, 9, 3}; int caldac_channel = ad8804_offset_channels[ao_channel % 4]; int caldac_index = ao_channel / 4; return caldac_index * channels_per_ad8804 + caldac_channel; } static int ni67xx_ao_ground_observable_index( const calibration_setup_t *setup, unsigned int channel, unsigned int ao_range ) { return 3 * channel + 0; } static int ni67xx_ao_mid_observable_index( const calibration_setup_t *setup, unsigned int channel, unsigned int ao_range ) { return 3 * channel + 1; } static int ni67xx_ao_high_observable_index( const calibration_setup_t *setup, unsigned int channel, unsigned int ao_range ) { return 3 * channel + 2; } static const double ni67xx_unitless_adc_offset = 0.5; /* determine conversion factor between actual voltage and * interval [0,1) returned by reads from the calibration adc * subdevice. */ static double ni67xx_unitless_adc_slope(calibration_setup_t *setup) { double reference_in_volts; double reference_unitless; double slope; comedi_insn insn; lsampl_t data; comedi_range *range; static const int maxdata = 0x10000; int retval; if(ni_board(setup)->ref_eeprom_lsb >= 0 && ni_board(setup)->ref_eeprom_msb >= 0) { reference_in_volts = ni_get_reference(setup, ni_board(setup)->ref_eeprom_lsb, ni_board(setup)->ref_eeprom_msb ); }else { DPRINT( 0, "WARNING: unknown eeprom address for reference voltage\n" "correction. This might be fixable if you send us an eeprom dump\n" "(see the demo/eeprom_dump program).\n"); reference_in_volts = 5.0; } memset(&insn, 0, sizeof(insn)); insn.insn = INSN_READ; insn.n = 1; insn.subdev = setup->ad_subdev; insn.data = &data; insn.chanspec = CR_PACK(0, 0, AREF_GROUND) | CR_ALT_SOURCE; retval = comedi_do_insn(setup->dev, &insn); assert(retval >= 0); range = comedi_get_range(setup->dev, setup->ad_subdev, 0, 0); assert( range ); reference_unitless = comedi_to_phys(data, range, maxdata); slope = (reference_unitless - ni67xx_unitless_adc_offset) / reference_in_volts; return slope; } /* calibration adc uses RANGE_UNKNOWN, so it will return a value from 0.0 to 1.0 instead of a voltage, so we need to renormalize. */ static void ni67xx_set_target( calibration_setup_t *setup, int obs, double target, double slope) { set_target(setup, obs, target); /* convert target from volts to interval [0,1) which calibration * adc returns */ setup->observables[obs].target *= slope; setup->observables[obs].target += ni67xx_unitless_adc_offset; } static int ni67xx_setup_observables( calibration_setup_t *setup ) { comedi_insn tmpl, po_tmpl; observable *o; int num_ao_channels; int i; double slope; slope = ni67xx_unitless_adc_slope(setup); /* calibration adc is very slow (15HZ) but accurate, so only sample a few times */ setup->sv_order = 0; num_ao_channels = comedi_get_n_channels(setup->dev, setup->da_subdev); assert(num_ao_channels >= 0); memset( &tmpl, 0, sizeof(tmpl) ); tmpl.insn = INSN_READ; tmpl.n = 1; tmpl.subdev = setup->ad_subdev; memset( &po_tmpl, 0, sizeof(po_tmpl) ); po_tmpl.insn = INSN_WRITE; po_tmpl.n = 1; po_tmpl.subdev = setup->da_subdev; setup->n_observables = 0; for(i = 0; i < num_ao_channels; i++) { o = setup->observables + ni67xx_ao_ground_observable_index( setup, i, 0); o->reference_source = -1; assert( o->name == NULL ); if( asprintf(&o->name, "dac%i ground, ground referenced", i) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(i, 0, AREF_GROUND); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(i, 0, AREF_GROUND); ni67xx_set_target(setup, ni67xx_ao_ground_observable_index(setup, i, 0), 0.0, slope); setup->n_observables++; o = setup->observables + ni67xx_ao_mid_observable_index( setup, i, 0); o->reference_source = -1; assert( o->name == NULL ); if( asprintf(&o->name, "dac%i mid, ground referenced", i) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK(i, 0, AREF_GROUND); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(i, 0, AREF_GROUND); ni67xx_set_target(setup, ni67xx_ao_mid_observable_index(setup, i, 0), 4.0, slope); setup->n_observables++; o = setup->observables + ni67xx_ao_high_observable_index( setup, i, 0); o->reference_source = -1; assert( o->name == NULL ); if( asprintf(&o->name, "dac%i high, ground referenced", i) < 0 ) { errno = ENOMEM; perror( NULL ); return -1; } o->preobserve_insn = po_tmpl; o->preobserve_insn.chanspec = CR_PACK( i, 0, AREF_GROUND ); o->preobserve_insn.data = o->preobserve_data; o->observe_insn = tmpl; o->observe_insn.chanspec = CR_PACK(i, 0, AREF_GROUND); ni67xx_set_target(setup, ni67xx_ao_high_observable_index(setup, i, 0), 8.0, slope); setup->n_observables++; } return 0; } static int cal_ni_pci_6711(calibration_setup_t *setup) { generic_layout_t layout; if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE(0, 7, 69)) { DPRINT(0, "WARNING: you need comedi driver version 0.7.69 or later\n" "for this calibration to work properly\n" ); } init_generic_layout( &layout ); layout.dac_gain = ni67xx_ao_gain_caldac; layout.dac_linearity = ni67xx_ao_linearity_caldac; layout.dac_offset = ni67xx_ao_offset_caldac; layout.dac_high_observable = ni67xx_ao_high_observable_index; layout.dac_mid_observable = ni67xx_ao_mid_observable_index; layout.dac_ground_observable = ni67xx_ao_ground_observable_index; layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); return generic_cal_ao(setup, &layout); } comedi_calibrate-5/comedi_calibrate/calib.h0000644000000000000000000002132612416542124016053 00000000000000/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef __CALIB_H_ #define __CALIB_H_ #include "comedilib.h" #include "../libcomedi_calibrate/comedi_calibrate_shared.h" #if 0 #include #include #include #include #include #include #include #include #include #endif #define DPRINT(level,fmt,args...) do{if(verbose>=level)printf(fmt, ## args);}while(0) #define N_CALDACS 64 #define N_OBSERVABLES 128 #define PREOBSERVE_DATA_LEN 10 static const int caldac_settle_usec = 100000; typedef struct{ char *name; comedi_insn preobserve_insn; lsampl_t preobserve_data[ PREOBSERVE_DATA_LEN ]; comedi_insn observe_insn; int reference_source; double target; }observable; typedef struct calibration_setup_struct calibration_setup_t; struct calibration_setup_struct { comedi_t *dev; int ad_subdev; int da_subdev; int eeprom_subdev; int caldac_subdev; int status; unsigned int sv_settling_time_ns; unsigned int sv_order; observable observables[ N_OBSERVABLES ]; unsigned int n_observables; comedi_caldac_t caldacs[ N_CALDACS ]; unsigned int n_caldacs; int (*do_cal) ( calibration_setup_t *setup ); const char *cal_save_file_path; unsigned do_output : 1; comedi_calibration_t *old_calibration; comedi_calibration_t *new_calibration; void *private_data; }; extern int verbose; enum { STATUS_UNKNOWN = 0, STATUS_GUESS, STATUS_SOME, STATUS_DONE }; /* high level */ void observe( calibration_setup_t *setup ); int preobserve( calibration_setup_t *setup, int obs); void observable_dependence( calibration_setup_t *setup, int obs); void measure_observable( calibration_setup_t *setup, int obs); void reset_caldac( calibration_setup_t *setup, int caldac_index ); void reset_caldacs( calibration_setup_t *setup); /* drivers */ extern char ni_id[]; extern char cb_id[]; extern char cb64_id[]; extern char ni_labpc_id[]; int ni_setup( calibration_setup_t*, const char *device_name ); int cb_setup( calibration_setup_t*, const char *device_name ); int cb64_setup( calibration_setup_t*, const char *device_name ); int ni_labpc_setup( calibration_setup_t*, const char *device_name ); /* low level */ void set_target( calibration_setup_t *setup, int obs,double target); void update_caldac( calibration_setup_t *setup, int caldac_index, int value ); void setup_caldacs( calibration_setup_t *setup, int caldac_subdev); void postgain_cal( calibration_setup_t *setup, int obs1, int obs2, int dac); void cal1( calibration_setup_t *setup, int obs, int dac); void cal1_fine( calibration_setup_t *setup, int obs, int dac); void cal_binary( calibration_setup_t *setup, int obs, int dac); void cal_postgain_binary( calibration_setup_t *setup, int obs1, int obs2, int dac); void cal_relative_binary( calibration_setup_t *setup, int obs1, int obs2, int dac); void cal_linearity_binary( calibration_setup_t *setup, int obs1, int obs2, int obs3, int dac); void peg_binary( calibration_setup_t *setup, int obs, int dac, int maximize ); /* misc and temp */ void channel_dependence(int adc,int range); void caldac_dependence(int caldac); void chan_cal(int adc,int caldac,int range,double target); int read_eeprom( calibration_setup_t *setup, int addr); double read_chan( calibration_setup_t *setup, int adc,int range); int read_chan2( calibration_setup_t *setup, char *s,int adc,int range); void set_ao(comedi_t *dev,int subdev,int chan,int range,double value); void check_gain(int ad_chan,int range); double check_gain_chan(int ad_chan,int range,int cdac); int cb_actual_source_voltage( comedi_t *dev, unsigned int subdevice, unsigned int eeprom_channel, float *voltage); /* helper functions */ int get_bipolar_lowgain(comedi_t *dev,int subdev); int get_bipolar_highgain(comedi_t *dev,int subdev); int get_unipolar_lowgain(comedi_t *dev,int subdev); int get_unipolar_highgain(comedi_t *dev,int subdev); double very_low_target( comedi_t *dev, unsigned int subdevice, unsigned int channel, unsigned int range ); int is_bipolar( comedi_t *dev, unsigned int subdevice, unsigned int channel, unsigned int range ); int is_unipolar( comedi_t *dev, unsigned int subdevice, unsigned int channel, unsigned int range ); double fractional_offset( calibration_setup_t *setup, int subdevice, unsigned int channel, unsigned int range, int obs ); double get_tolerance( calibration_setup_t *setup, int subdevice, double num_bits ); /* other */ void comedi_nanodelay(comedi_t *dev, unsigned int delay); unsigned caldac_maxdata(comedi_t *dev, const comedi_caldac_t *caldac); /* printing scientific numbers */ int sci_sprint(char *s,double x,double y); int sci_sprint_alt(char *s,double x,double y); /* linear fitting */ typedef struct { int n; double *y_data; double *yerr_data; double *x_data; double x0; double dx; double yerr; /* stats */ double s1,sx,sy,sxy,sxx; double min,max; /* results */ double ave_x; double ave_y; double slope; double err_slope; double err_ave_y; double S_min; double dof; }linear_fit_t; int linear_fit_monotonic(linear_fit_t *l); double linear_fit_func_y(linear_fit_t *l,double x); double linear_fit_func_x(linear_fit_t *l,double y); double check_gain_chan_x( calibration_setup_t *setup, linear_fit_t *l,unsigned int ad_chanspec,int cdac); double check_gain_chan_fine( calibration_setup_t *setup, linear_fit_t *l,unsigned int ad_chanspec,int cdac); void dump_curve(linear_fit_t *l); /* slowly varying measurements */ typedef struct{ comedi_t *dev; int maxdata; int order; int subd; unsigned int chanspec; unsigned int settling_time_ns; comedi_range *rng; double average; double stddev; double error; }new_sv_t; int new_sv_measure(comedi_t *dev, new_sv_t *sv); int new_sv_init(new_sv_t *sv,comedi_t *dev,int subdev,unsigned int chanspec); int my_sv_init( new_sv_t *sv, const calibration_setup_t *setup, int subdev, unsigned int chanspec ); /* generic calibration support */ typedef struct { int (*adc_offset)( unsigned int channel ); int (*adc_offset_fine)( unsigned int channel ); int (*adc_postgain_offset)( unsigned int channel ); int (*adc_gain)( unsigned int channel ); int (*adc_gain_fine)( unsigned int channel ); int (*dac_linearity)( unsigned int channel ); int (*dac_linearity_fine)( unsigned int channel ); int (*dac_offset)( unsigned int channel ); int (*dac_offset_fine)( unsigned int channel ); int (*dac_gain)( unsigned int channel ); int (*dac_gain_fine)( unsigned int channel ); int (*adc_high_observable)( const calibration_setup_t *setup, unsigned int channel, unsigned int range ); int (*adc_ground_observable)( const calibration_setup_t *setup, unsigned int channel, unsigned int range ); int (*dac_high_observable)( const calibration_setup_t *setup, unsigned int channel, unsigned int range ); int (*dac_mid_observable)( const calibration_setup_t *setup, unsigned int channel, unsigned int range ); int (*dac_ground_observable)( const calibration_setup_t *setup, unsigned int channel, unsigned int range ); double adc_fractional_tolerance; double dac_fractional_tolerance; unsigned do_adc_unipolar_postgain : 1; } generic_layout_t; void init_generic_layout( generic_layout_t *layout ); int generic_cal_by_channel_and_range( calibration_setup_t *setup, const generic_layout_t *layout ); int generic_cal_by_range( calibration_setup_t *setup, const generic_layout_t *layout ); int generic_cal_ao(calibration_setup_t *setup, const generic_layout_t *layout ); void generic_do_cal( calibration_setup_t *setup, comedi_calibration_setting_t *saved_cal, int observable, int caldac ); void generic_do_relative( calibration_setup_t *setup, comedi_calibration_setting_t *saved_cal, int observable1, int observable2, int caldac ); void generic_do_linearity( calibration_setup_t *setup, comedi_calibration_setting_t *saved_cal, int observable1, int observable2, int observable3, int caldac ); void generic_prep_adc_caldacs( calibration_setup_t *setup, const generic_layout_t *layout, unsigned int channel, unsigned int range ); void generic_prep_dac_caldacs( calibration_setup_t *setup, const generic_layout_t *layout, unsigned int channel, unsigned int range ); void generic_peg( calibration_setup_t *setup, int observable, int caldac, int maximize ); #endif comedi_calibrate-5/comedi_calibrate/README0000644000000000000000000002120212416542124015501 00000000000000 I always seem to forget how to convert the calibration dump information into code for doing a calibration, so I'm writing this mostly for myself. Boards may have one of 4 calibrations statuses, depending on how well the calibration code is trusted. These are: STATUS_UNKNOWN, the default for no information; STATUS_SOME, meaning that a dump has been converted to initial code, but not tested; STATUS_DONE means that the output of a STATUS_SOME dump has been checked, and is correct; STATUS_GUESS is a marker that code has been converted from a previous version of the code, but not checked. The NI E series boards have several internal voltages that can be measured, and also several calibration DACs that function similar to adjustable resistors on old data acquisition boards. The information we need is which DACs affect which measurable voltages; then we can write calibration code that adjusts those DACs until the voltages are within spec. Usually, there are DACs (or multiple DACs) that are added to an analog input signal: 1) before the variable gain amplifier ("pre-gain"), 2) after the variable gain amplifier ("post-gain"), 3) between the board's stable voltage reference and the reference input to the ADC ("gain offset"), and 4) before a unipolar-to-bipolar adjuster ("unipolar offset"), or other equivalent circuit. In addition there are DACs that adjust the output voltages and/or reference voltage inputs to a D/A converter. These are pretty intuitive once analog input is understood, and is dependent on correct analog input calibration. The measurable quantities are 0 volts and an internal voltage reference near 5 volts, and can be measured at any gain. The interesting combinations are: ai, bipolar zero offset, low gain ai, bipolar zero offset, high gain ai, bipolar voltage reference, low gain ai, unipolar zero offset, low gain The unipolar zero offset may not be available on some boards. In a STATUS_UNKNOWN dump, for each measurable quantity and each calibration DAC, the DAC is varied throughout its entire range and the quantity measured. The data is linearly fit, and if the slope is statistically non-zero, a line is printed: caldac[0] gain=1.26(11)e-7 V/bit S_min=235.659 dof=254 The information given is caldac index, slope (gain) and slope error (in parenthesis, modifying the last two digits of the slope), and two statistical parameters S_min and degrees of freedom. S_min and dof will be roughly similar for a good fit. If S_min is more than a factor of 4 greater than dof, this is probably not a good fit. Typically this means that the DAC doesn't affect the measureable strictly linearly, or there is systematic noise. The latter seems to common in E series boards, so I'm not too worried about the following dump where there are S_min/dof ratios above 4. Here's an example dump, generated by a STATUS_UNKNOWN dump for a pci-mio-16xe-10, with the analog output section removed: Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.21 2001/10/10 22:07:53 ds Exp Driver name: ni_pcimio Device name: pci-mio-16xe-10 Comedi version: 0.7.61 ai, bipolar zero offset, low gain offset -6.795(14)e-3, target 0 caldac[0] gain=1.26(11)e-7 V/bit S_min=235.659 dof=254 caldac[2] gain=3.96840(14)e-4 V/bit S_min=1390.18 dof=254 caldac[3] gain=4.348(11)e-6 V/bit S_min=258.75 dof=254 caldac[8] gain=5.4659(69)e-7 V/bit S_min=386.361 dof=254 ai, bipolar zero offset, high gain offset -2.4224(55)e-4, target 0 caldac[0] gain=3.61(45)e-9 V/bit S_min=247.26 dof=254 caldac[2] gain=3.96644(48)e-6 V/bit S_min=351.927 dof=254 caldac[3] gain=4.063(46)e-8 V/bit S_min=272.024 dof=254 caldac[8] gain=5.46305(30)e-7 V/bit S_min=314.035 dof=254 ai, bipolar voltage reference, low gain offset 4.992959(13), target 5 caldac[0] gain=-4.4928(11)e-5 V/bit S_min=1111.4 dof=254 caldac[1] gain=-2.792(11)e-6 V/bit S_min=248.971 dof=254 caldac[2] gain=3.96488(14)e-4 V/bit S_min=1059.18 dof=254 caldac[3] gain=4.318(11)e-6 V/bit S_min=437.441 dof=254 caldac[8] gain=5.4810(70)e-7 V/bit S_min=404.213 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[2] gain=3.96773(39)e-4 V/bit S_min=158.236 dof=107 [The explanation gets a little fuzzy here] The resulting function for calibration will look something like: void cal_ni_pci_mio_16xe_10(void) { postgain_cal(ni_zero_offset_low, ni_zero_offset_high, XXX); cal1(ni_zero_offset_high, XXX); cal1(ni_reference_low, XXX); cal1(ni_unip_offset_low, XXX); } You get to fill in the XXX's. The post-gain calibration DAC will be the one for which the ratio of caldac slopes for the low and high gain measurables is similar to the ratio of input ranges for low and high gain. This ratio is typically 100 or 200, and really should be printed by the program. Thus, for this dump, we choose caldac[2], since the ratio is very nearly 100. We don't choose caldac[0] or caldac[3], because the gains are smaller, and the ratio isn't exactly 100 or 200. Next is the pre-gain calibration. Adding a voltage before the amplifier will affect every input range selection equally, so the pre-gain cadac slope will be nearly equal for both bipolar zero offset at low and high gain. In this example, it would be caldac[8]. Next is the voltage reference calibration. The caldac controlling the voltage reference adjustment is proportional to the offset, so the correct caldac will typically be the one that has a large slope for the bipolar voltage reference measurement, but a small slope (by a factor of 2e4, here) for the zero offset measurements. It could be any of caldac[0], caldac[1], or caldac[3], or possibly all of them. We'll choose the caldac with the largest slope for rough calibration, then use the one with the smallest slope for fine calibration, namely caldac[0] and caldac[1]. This is one way that STATUS_SOME is useful, because you can calibrate the zero offset, then get a much better idea which other channels are likely to be for the voltage reference. Note that we haven't done anything with caldac[3]. It clearly does something useful, but until we attempt a coarse calibration, it's not certain what it does. It turns out to be a fine postgain adjustment. In this example, there doesn't appear to be a caldac that affects unipolar zero offset, so it will not be used in the final function: void cal_ni_pci_mio_16xe_10(void) { postgain_cal(ni_zero_offset_low, ni_zero_offset_high, 2); cal1(ni_zero_offset_high, 8); cal1(ni_reference_low, 0); cal1(ni_reference_low, 1); } There are a number of functions that are useful for optimizing a given caldac, each optimized for different cases. The inconsistently named postgain_cal() and cal1() measure the observable(s) at a number of points throughout the entire caldac range, and then do a linear fit to determine the optimum value for caldac. These functions are good if the caldac dependence is strictly linear. They are also useful if the target value for the observable is at the endpoint of the measurable range, as when measuring unipolar zero offset, since the functions automatically compensate for bad input values. The function cal_fine() is useful for fine-tuning of the results of cal1(), especially if the dependence is close, but not quite linear. The goodness of the linear fit is quantified by the S_min value in the log -- an S_min value that is approximately the same (within a factor of 2 or 3) as dof (degrees of freedom) indicates a good fit. An S_min value that is about 10 times dof indicates that fine tuning is probably necessary. An S_min value that is many orders of magnitude larger than dof indicates that linear fitting should not be used. The functions cal_binary() and cal_postgain_binary() are used when the caldac dependence is highly non-linear. It does a binary search in the range of the caldac to find a decent value. Notes by fmhess****************************************************** I would use cal_binary() always, as opposed to cal1() or cal1_fine(), since it is the best algorithm. cal_relative_binary() is the same as cal_postgain_binary(). I prefer the more general name because the function is useful for more than just postgain offsets. It adjusts a caldac so the difference between two observables is correct (although their absolute values may still be offset), which works for postgain offsets, but is also good for gain calibrations when the gain adjustment couples with the offset. cal_linearity_binary() was added for convenient calibration of analog output linearity on NI boards. It should be fed 3 observables that are well separated from each other. It adjusts a caldac so that the ratio (obs3 - obs2)/(obs2 - obs1) is correct. comedi_calibrate-5/comedi_calibrate/other.c0000644000000000000000000000220412416542124016107 00000000000000/* comedi_calibrate/other.c - functions that might move to the library Copyright (C) 2002 David A. Schleef This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include void comedi_nanodelay(comedi_t *dev, unsigned int delay) { comedi_insn insn; lsampl_t data = delay; int retval; memset(&insn, 0, sizeof(insn)); insn.insn = INSN_WAIT; insn.n = 1; insn.data = &data; retval = comedi_do_insn( dev, &insn ); // fall back on usleep for long delays if( retval < 0 ) usleep( delay / 1000 ); return; } comedi_calibrate-5/comedi_calibrate/results/0000755000000000000000000000000012416542124016405 500000000000000comedi_calibrate-5/comedi_calibrate/results/pci-mio-16xe-500000644000000000000000000000147312416542124020615 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.21 2001/10/10 22:07:53 ds Exp Driver name: ni_pcimio Device name: pci-mio-16xe-50 Comedi version: 0.7.61 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[2] gain=1.7354(14)e-5 V/bit S_min=1816.77 dof=254 caldac[2] gain=1.6481(19)e-7 V/bit S_min=262.174 dof=254 caldac[2] set to 4665.65 caldac set out of range (4666>255) linear: ai, bipolar zero offset, high gain caldac[8] gain=1.79213(12)e-7 V/bit S_min=362597 dof=254 caldac set out of range (6443>4095) caldac[8] set to 6442.78 linear: ai, bipolar voltage reference, low gain caldac[0] gain=-4.3377(14)e-5 V/bit S_min=166907 dof=254 caldac set out of range (-1133<0) caldac[0] set to -1132.76 comedi_calibrate-5/comedi_calibrate/results/pci-mio-16xe-100000644000000000000000000001563712416542124020620 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.27 2002/02/20 20:17:11 ds Exp Driver name: ni_pcimio Device name: pci-mio-16xe-10 Id: ni.c,v 1.13 2002/02/20 20:17:11 ds Exp Comedi version: 0.7.61 ai, bipolar zero offset, low gain offset -6.13(14)e-3, target 0 caldac[0] gain=1.13(11)e-7 V/bit S_min=329.737 dof=254 caldac[2] gain=4.02947(14)e-4 V/bit S_min=1923.56 dof=254 caldac[3] gain=4.233(12)e-6 V/bit S_min=318.032 dof=254 caldac[8] gain=4.2482(72)e-7 V/bit S_min=382.585 dof=254 ai, bipolar zero offset, high gain offset -3.6784(63)e-4, target 0 caldac[0] gain=4.66(47)e-9 V/bit S_min=230.026 dof=254 caldac[2] gain=4.03025(48)e-6 V/bit S_min=415.404 dof=254 caldac[3] gain=3.908(47)e-8 V/bit S_min=294.563 dof=254 caldac[8] gain=4.13959(30)e-7 V/bit S_min=312.685 dof=254 caldac[10] gain=-1.26(29)e-10 V/bit S_min=314.773 dof=254 ai, bipolar voltage reference, low gain offset 4.990885(14), target 5 caldac[0] gain=-4.5353(12)e-5 V/bit S_min=1710.04 dof=254 caldac[1] gain=-2.528(12)e-6 V/bit S_min=345.49 dof=254 caldac[2] gain=4.03051(14)e-4 V/bit S_min=1951.97 dof=254 caldac[3] gain=4.037(12)e-6 V/bit S_min=300.966 dof=254 caldac[8] gain=4.1921(73)e-7 V/bit S_min=334.401 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[2] gain=4.03681(45)e-4 V/bit S_min=273.533 dof=99 ao 0, zero offset, low gain offset -0.012720(15), target 0.00015259 caldac[0] gain=1.60(12)e-7 V/bit S_min=255.994 dof=254 caldac[2] gain=4.03024(14)e-4 V/bit S_min=2070.13 dof=254 caldac[3] gain=3.979(12)e-6 V/bit S_min=334.723 dof=254 caldac[6] gain=-7.8046(12)e-5 V/bit S_min=2531.75 dof=254 caldac[8] gain=4.0988(74)e-7 V/bit S_min=312.704 dof=254 ao 0, reference voltage, low gain offset -0.011089(16), target -7.62951e-05 caldac[0] gain=1.12(12)e-7 V/bit S_min=302.906 dof=254 caldac[2] gain=4.02999(15)e-4 V/bit S_min=1785.08 dof=254 caldac[3] gain=4.018(13)e-6 V/bit S_min=376.668 dof=254 caldac[4] gain=3.9056(12)e-5 V/bit S_min=772.527 dof=254 caldac[6] gain=-7.7789(13)e-5 V/bit S_min=1591.34 dof=254 caldac[8] gain=4.1246(79)e-7 V/bit S_min=318.688 dof=254 ao 1, zero offset, low gain offset -9.532(12)e-3, target 0.00015259 caldac[0] gain=1.45(12)e-7 V/bit S_min=334.497 dof=254 caldac[2] gain=4.02939(14)e-4 V/bit S_min=1871.2 dof=254 caldac[3] gain=4.099(12)e-6 V/bit S_min=326.813 dof=254 caldac[7] gain=-7.7595(12)e-5 V/bit S_min=1008.57 dof=254 caldac[8] gain=4.2170(73)e-7 V/bit S_min=298.23 dof=254 ao 1, reference voltage, low gain offset -2.509940(15), target -7.62951e-05 caldac[0] gain=2.3027(12)e-5 V/bit S_min=539.95 dof=254 caldac[1] gain=1.377(13)e-6 V/bit S_min=263.307 dof=254 caldac[2] gain=4.02753(15)e-4 V/bit S_min=2027.78 dof=254 caldac[3] gain=4.202(13)e-6 V/bit S_min=318.557 dof=254 caldac[5] gain=1.9813(12)e-5 V/bit S_min=369.468 dof=254 caldac[7] gain=-7.7568(12)e-5 V/bit S_min=856.56 dof=254 caldac[8] gain=4.2560(78)e-7 V/bit S_min=280.941 dof=254 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[2] gain=4.02968(14)e-4 V/bit S_min=2087.79 dof=254 caldac[2] gain=4.03000(48)e-6 V/bit S_min=389.873 dof=254 caldac[2] set to 152 (151.795) postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[3] gain=4.522(12)e-6 V/bit S_min=538.697 dof=254 caldac[3] gain=3.964(47)e-8 V/bit S_min=258.691 dof=254 caldac[3] set to 44 (43.7866) linear: ai, bipolar zero offset, high gain caldac[8] gain=4.14220(30)e-7 V/bit S_min=307.873 dof=254 caldac[8] set to 2702 (2702.27) linear: ai, bipolar voltage reference, low gain caldac[0] gain=-4.5815(12)e-5 V/bit S_min=2677.17 dof=254 caldac[0] set to 149 (149.15) linear: ai, bipolar voltage reference, low gain caldac[1] gain=-2.727(13)e-6 V/bit S_min=326.783 dof=254 caldac[1] set to 50 (49.7007) linear: ao 0, zero offset, low gain caldac[6] gain=-7.8083(12)e-5 V/bit S_min=1706.23 dof=254 caldac[6] set to 90 (90.086) linear: ao 0, reference voltage, low gain caldac[4] gain=3.9303(13)e-5 V/bit S_min=1926.15 dof=254 caldac[4] set to 82 (82.3106) linear: ao 1, zero offset, low gain caldac[7] gain=-7.7881(12)e-5 V/bit S_min=1590.01 dof=254 caldac[7] set to 131 (130.891) linear: ao 1, reference voltage, low gain caldac[5] gain=1.9950(12)e-5 V/bit S_min=807.589 dof=254 caldac set out of range (125431>255) caldac[5] set to 125431 (125431) ai, bipolar zero offset, low gain offset 3.8(15)e-5, target 0 caldac[0] gain=7.1(13)e-8 V/bit S_min=310.7 dof=254 caldac[2] gain=4.02845(14)e-4 V/bit S_min=2030.42 dof=254 caldac[3] gain=4.352(12)e-6 V/bit S_min=789.843 dof=254 caldac[8] gain=4.4401(73)e-7 V/bit S_min=767.012 dof=254 ai, bipolar zero offset, high gain offset 7.4(58)e-7, target 0 caldac[2] gain=4.02821(48)e-6 V/bit S_min=428.869 dof=254 caldac[3] gain=4.112(49)e-8 V/bit S_min=299.782 dof=254 caldac[8] gain=4.14311(30)e-7 V/bit S_min=389.731 dof=254 ai, bipolar voltage reference, low gain offset 4.999974(15), target 5 caldac[0] gain=-4.5783(12)e-5 V/bit S_min=2807.92 dof=254 caldac[1] gain=-2.789(13)e-6 V/bit S_min=318.904 dof=254 caldac[2] gain=4.02874(14)e-4 V/bit S_min=1801.89 dof=254 caldac[3] gain=4.452(13)e-6 V/bit S_min=622.676 dof=254 caldac[8] gain=4.4500(77)e-7 V/bit S_min=711.933 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[2] gain=4.03446(45)e-4 V/bit S_min=334.169 dof=99 caldac[3] gain=4.001(31)e-6 V/bit S_min=99.5987 dof=95 caldac[8] gain=3.69(23)e-7 V/bit S_min=22.661 dof=15 ao 0, zero offset, low gain offset 6.0(17)e-5, target 0.00015259 caldac[0] gain=5.8(14)e-8 V/bit S_min=413.608 dof=254 caldac[2] gain=4.02823(15)e-4 V/bit S_min=1898.71 dof=254 caldac[3] gain=4.330(12)e-6 V/bit S_min=554.527 dof=254 caldac[6] gain=-7.8111(12)e-5 V/bit S_min=1717.37 dof=254 caldac[8] gain=4.4508(76)e-7 V/bit S_min=663.271 dof=254 ao 0, reference voltage, low gain offset -2.9(17)e-5, target -7.62951e-05 caldac[1] gain=-5.8(13)e-8 V/bit S_min=330.279 dof=254 caldac[2] gain=4.02791(15)e-4 V/bit S_min=1732.81 dof=254 caldac[3] gain=4.443(13)e-6 V/bit S_min=564.931 dof=254 caldac[4] gain=3.9328(13)e-5 V/bit S_min=1723.58 dof=254 caldac[6] gain=-7.8098(13)e-5 V/bit S_min=1737.64 dof=254 caldac[8] gain=4.4615(82)e-7 V/bit S_min=576.175 dof=254 ao 1, zero offset, low gain offset 7.6(17)e-5, target 0.00015259 caldac[0] gain=5.6(13)e-8 V/bit S_min=314.141 dof=254 caldac[2] gain=4.02835(14)e-4 V/bit S_min=1841.77 dof=254 caldac[3] gain=4.325(12)e-6 V/bit S_min=619.217 dof=254 caldac[7] gain=-7.7899(12)e-5 V/bit S_min=1780.8 dof=254 caldac[8] gain=4.4706(75)e-7 V/bit S_min=583.297 dof=254 ao 1, reference voltage, low gain offset -2.497396(16), target -7.62951e-05 caldac[0] gain=2.2787(12)e-5 V/bit S_min=786.36 dof=254 caldac[1] gain=1.331(13)e-6 V/bit S_min=265.989 dof=254 caldac[2] gain=4.02543(15)e-4 V/bit S_min=2372.65 dof=254 caldac[3] gain=4.081(12)e-6 V/bit S_min=327.315 dof=254 caldac[5] gain=2.0002(12)e-5 V/bit S_min=787.03 dof=254 caldac[7] gain=-7.7783(12)e-5 V/bit S_min=1257.18 dof=254 caldac[8] gain=4.1166(76)e-7 V/bit S_min=347.496 dof=254 comedi_calibrate-5/comedi_calibrate/results/pci-60140000644000000000000000000001466712416542124017431 00000000000000mbdyn-rt:/home/sechi/comedilib/comedi_calibrate # ./comedi_calibrate WARNING: unknown eeprom address for reference voltage correction. This might be fixable if you send us an eeprom dump (see the demo/eeprom_dump program). Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --no-calibrate --no-results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_pcimio Device name: pci-6014 Id: ni.c,v 1.115 2004/05/22 01:08:48 fmhess Exp Comedi version: 0.7.68 ai, bipolar zero offset, low gain reading 0.017656(16), target 0 caldac[0] gain=-5.768(11)e-5 V/bit S_min=10.3056 dof=14 caldac[2] gain=-3.13(11)e-6 V/bit S_min=0.921059 dof=14 caldac[4] gain=-6.2683(11)e-4 V/bit S_min=55.8791 dof=14 caldac[8] gain=-1.01(11)e-6 V/bit S_min=1.45739 dof=14 ai, bipolar zero offset, high gain reading 8.7501(28)e-4, target 0 caldac[0] gain=-5.67757(39)e-5 V/bit S_min=140.21 dof=14 caldac[2] gain=4.43(39)e-8 V/bit S_min=6.16357 dof=14 caldac[4] gain=-3.1322(39)e-6 V/bit S_min=2.45954 dof=14 caldac[8] gain=-9.759(39)e-7 V/bit S_min=1.34279 dof=14 ai, bipolar voltage reference, low gain reading 5.0101744(75), target 5 caldac[0] gain=-5.699(11)e-5 V/bit S_min=20.6668 dof=14 caldac[2] gain=3.5617(11)e-4 V/bit S_min=192.542 dof=14 caldac[4] gain=-6.2683(11)e-4 V/bit S_min=36.8218 dof=14 caldac[8] gain=-8.7(10)e-7 V/bit S_min=0.91184 dof=14 ao 0, zero offset, low gain reading 6.452(87)e-4, target 0.00015259 caldac[0] gain=-5.759(12)e-5 V/bit S_min=23.5811 dof=14 caldac[2] gain=-4.34(12)e-6 V/bit S_min=1.48953 dof=14 caldac[4] gain=-6.2662(12)e-4 V/bit S_min=55.6746 dof=14 caldac[6] gain=-1.04453(12)e-3 V/bit S_min=116.539 dof=14 caldac[8] gain=-9.5(12)e-7 V/bit S_min=0.835527 dof=14 caldac[10] gain=-1.0048(12)e-4 V/bit S_min=10.8132 dof=14 ao 0, reference voltage, low gain reading 7.9836195(94), target 8.00015 caldac[0] gain=-5.799(12)e-5 V/bit S_min=16.1238 dof=14 caldac[2] gain=5.7015(12)e-4 V/bit S_min=334.607 dof=14 caldac[4] gain=-6.2677(12)e-4 V/bit S_min=46.0133 dof=14 caldac[6] gain=-1.04468(12)e-3 V/bit S_min=109.296 dof=14 caldac[7] gain=-1.56748(12)e-3 V/bit S_min=72.6876 dof=14 caldac[8] gain=-8.5(11)e-7 V/bit S_min=2.03799 dof=14 caldac[10] gain=-1.0072(12)e-4 V/bit S_min=10.5832 dof=14 caldac[11] gain=-1.2026(12)e-4 V/bit S_min=7.25575 dof=14 ao 0, linearity (mid), low gain reading 3.9921535(80), target 4.00015 caldac[0] gain=-5.796(12)e-5 V/bit S_min=22.5702 dof=14 caldac[2] gain=2.8288(12)e-4 V/bit S_min=107.619 dof=14 caldac[3] gain=-4.7(11)e-7 V/bit S_min=1.37003 dof=14 caldac[4] gain=-6.2670(12)e-4 V/bit S_min=34.8243 dof=14 caldac[6] gain=-1.04468(12)e-3 V/bit S_min=100.675 dof=14 caldac[7] gain=-7.8375(12)e-4 V/bit S_min=22.6948 dof=14 caldac[8] gain=-10.0(11)e-7 V/bit S_min=0.986251 dof=14 caldac[10] gain=-1.0071(12)e-4 V/bit S_min=15.8146 dof=14 caldac[11] gain=-6.028(12)e-5 V/bit S_min=5.13472 dof=14 ao 1, zero offset, low gain reading 2.7344(80)e-3, target 0.00015259 caldac[0] gain=-5.752(12)e-5 V/bit S_min=22.8584 dof=14 caldac[1] gain=-1.0003(12)e-4 V/bit S_min=10.4798 dof=14 caldac[2] gain=-4.04(12)e-6 V/bit S_min=0.465639 dof=14 caldac[3] gain=-7.9(11)e-7 V/bit S_min=0.907061 dof=14 caldac[4] gain=-6.2674(12)e-4 V/bit S_min=51.6414 dof=14 caldac[8] gain=-9.3(11)e-7 V/bit S_min=0.920044 dof=14 caldac[9] gain=-1.04284(12)e-3 V/bit S_min=135.769 dof=14 ao 1, reference voltage, low gain reading 7.9737756(95), target 8.00015 caldac[0] gain=-5.769(12)e-5 V/bit S_min=32.723 dof=14 caldac[1] gain=-1.0020(12)e-4 V/bit S_min=16.6388 dof=14 caldac[2] gain=5.6944(12)e-4 V/bit S_min=342.563 dof=14 caldac[3] gain=-1.56801(12)e-3 V/bit S_min=298.429 dof=14 caldac[4] gain=-6.2670(12)e-4 V/bit S_min=22.2871 dof=14 caldac[5] gain=-1.2067(12)e-4 V/bit S_min=4.72096 dof=14 caldac[8] gain=-9.6(12)e-7 V/bit S_min=1.49009 dof=14 caldac[9] gain=-1.04266(12)e-3 V/bit S_min=125.881 dof=14 ao 1, linearity (mid), low gain reading 3.9882860(82), target 4.00015 caldac[0] gain=-5.768(12)e-5 V/bit S_min=32.4881 dof=14 caldac[1] gain=-1.0019(12)e-4 V/bit S_min=9.26381 dof=14 caldac[2] gain=2.8245(12)e-4 V/bit S_min=78.7483 dof=14 caldac[3] gain=-7.8421(12)e-4 V/bit S_min=80.6435 dof=14 caldac[4] gain=-6.2676(12)e-4 V/bit S_min=54.1094 dof=14 caldac[5] gain=-6.025(12)e-5 V/bit S_min=4.15581 dof=14 caldac[8] gain=-9.2(11)e-7 V/bit S_min=1.56265 dof=14 caldac[9] gain=-1.04275(12)e-3 V/bit S_min=139.837 dof=14 Failed to apply calibration for subdevice 0, channel 0, range 0, aref 0 mbdyn-rt:/home/sechi/comedilib/demo # ./eeprom_dump 0000: ffffffffffffffffffffffffffffffff ................ 0010: ffffffffffffffffffffffffffffffff ................ 0020: ffffffffffffffffffffffffffffffff ................ 0030: ffffffffffffffffffffffffffffffff ................ 0040: ffffffffffffffffffffffffffffffff ................ 0050: ffffffffffffffffffffffffffffffff ................ 0060: ffffffffffffffffffffffffffffffff ................ 0070: ffffffffffffffffffffffffffffffff ................ 0080: ffffffffffffffffffffffffffffffff ................ 0090: ffffffffffffffffffffffffffffffff ................ 00a0: ffffffffffffffffffffffffffffffff ................ 00b0: ffffffffffffffffffffffffffffffff ................ 00c0: ffffffffffffffffffffffffffff0000 ................ 00d0: 000000000000000000000000e239bdbc .............9.. 00e0: 000000000000e239bdbc000000000049 .......9.......I 00f0: 00540041004e0000000000000049004e .T.A.N.......I.N 0100: 30144ea0a44d10003d2e033ca01b380c 0.N..M..=..<..8. 0110: 000c0000000000000000000000000000 ................ 0120: 00000000000000000000000000000000 ................ 0130: 00000000000000000000000000000000 ................ 0140: 00000000000000000000000000000000 ................ 0150: 00000000000000000000000000000000 ................ 0160: 000000000000747c71847c6f807e998b ......t|q.|o.~.. 0170: 8c935f00000000000000a601aa01ac01 .._............. 0180: 00000000000000000000000000000000 ................ 0190: 00000000000000000000000000000074 ...............t 01a0: 7c71847c6f807e998b8c935f00624161 |q.|o.~...._.bAa 01b0: 416161ad456541026542026742020c03 Aaa.EeA.eB.gB... 01c0: 0e0309010a0b08090601070b05090201 ................ 01d0: 01080b000403ff000000012511010608 ...........%.... 01e0: 0808040101000c010804105001001002 ...........P.... 01f0: 011001100a000a0bdf010405d407036f ...............o comedi_calibrate-5/comedi_calibrate/results/pci-6024e0000644000000000000000000002005612416542124017564 00000000000000eeprom reference lsb=244 msb=255 resulting reference voltage: 4.99999 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_pcimio Device name: pci-6024e Id: ni.c,v 1.136 2005/09/09 01:06:25 fmhess Exp Comedi version: 0.7.70 ai, bipolar zero offset, low gain reading 0.029232(87), target 0 caldac[0] gain=-1.176(12)e-4 V/bit S_min=1.56105 dof=14 caldac[4] gain=-7.746(12)e-4 V/bit S_min=9.60921 dof=14 ai, bipolar zero offset, high gain reading 2.6042(64)e-4, target 0 caldac[0] gain=-1.182947(87)e-4 V/bit S_min=519.555 dof=14 caldac[4] gain=-3.8679(87)e-6 V/bit S_min=2.66936 dof=14 caldac[8] gain=-2.0382(88)e-6 V/bit S_min=1.1106 dof=14 ai, bipolar voltage reference, low gain reading 5.026595(86), target 4.99999 caldac[0] gain=-1.133(12)e-4 V/bit S_min=6.12079 dof=14 caldac[2] gain=-5.753(12)e-4 V/bit S_min=23.6343 dof=14 caldac[4] gain=-7.701(12)e-4 V/bit S_min=7.8218 dof=14 ao 0, zero offset, low gain reading 0.022865(84), target 0.002442 caldac[0] gain=-1.168(12)e-4 V/bit S_min=1.88818 dof=14 caldac[4] gain=-7.752(12)e-4 V/bit S_min=7.0134 dof=14 caldac[6] gain=-7.809(12)e-4 V/bit S_min=4.66646 dof=14 caldac[10] gain=-1.158(12)e-4 V/bit S_min=1.64498 dof=14 ao 0, reference voltage, low gain reading 8.029337(86), target 8.00244 caldac[0] gain=-1.177(12)e-4 V/bit S_min=0.85016 dof=14 caldac[2] gain=-9.273(12)e-4 V/bit S_min=39.3068 dof=14 caldac[4] gain=-7.742(12)e-4 V/bit S_min=2.03086 dof=14 caldac[6] gain=-7.795(12)e-4 V/bit S_min=3.40193 dof=14 caldac[10] gain=-1.771(12)e-4 V/bit S_min=1.47652 dof=14 caldac[11] gain=-2.597(12)e-4 V/bit S_min=1.1089 dof=14 ao 0, linearity (mid), low gain reading 4.025956(87), target 4.00244 caldac[0] gain=-1.184(12)e-4 V/bit S_min=0.96322 dof=14 caldac[2] gain=-4.623(12)e-4 V/bit S_min=13.4655 dof=14 caldac[4] gain=-7.712(12)e-4 V/bit S_min=1.8761 dof=14 caldac[6] gain=-7.760(12)e-4 V/bit S_min=1.2733 dof=14 caldac[10] gain=-1.613(12)e-4 V/bit S_min=0.40564 dof=14 caldac[11] gain=-1.299(12)e-4 V/bit S_min=1.28949 dof=14 ao 1, zero offset, low gain reading 0.047505(87), target 0.002442 caldac[0] gain=-1.180(12)e-4 V/bit S_min=1.59769 dof=14 caldac[1] gain=-1.155(12)e-4 V/bit S_min=0.958024 dof=14 caldac[4] gain=-7.751(12)e-4 V/bit S_min=6.40186 dof=14 caldac[9] gain=-7.782(12)e-4 V/bit S_min=13.1514 dof=14 ao 1, reference voltage, low gain reading 8.055436(86), target 8.00244 caldac[0] gain=-1.175(12)e-4 V/bit S_min=0.786708 dof=14 caldac[1] gain=-1.769(12)e-4 V/bit S_min=1.16282 dof=14 caldac[2] gain=-9.299(12)e-4 V/bit S_min=40.0402 dof=14 caldac[4] gain=-7.737(12)e-4 V/bit S_min=3.53267 dof=14 caldac[5] gain=-2.596(12)e-4 V/bit S_min=0.914595 dof=14 caldac[9] gain=-7.776(12)e-4 V/bit S_min=5.69436 dof=14 ao 1, linearity (mid), low gain reading 4.051516(85), target 4.00244 caldac[0] gain=-1.183(12)e-4 V/bit S_min=1.09631 dof=14 caldac[1] gain=-1.614(12)e-4 V/bit S_min=1.67152 dof=14 caldac[2] gain=-4.640(12)e-4 V/bit S_min=9.11251 dof=14 caldac[4] gain=-7.709(12)e-4 V/bit S_min=2.18383 dof=14 caldac[5] gain=-1.307(12)e-4 V/bit S_min=0.651125 dof=14 caldac[9] gain=-7.738(12)e-4 V/bit S_min=6.27676 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 123 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 164 binary: ai, bipolar zero offset, high gain caldac[0] set to 127 binary: ai, bipolar zero offset, high gain caldac[8] set to 183 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[10] set to 138 binary: ao 0, zero offset, low gain caldac[6] set to 114 binary: ao 0, reference voltage, low gain caldac[11] set to 165 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[1] set to 127 binary: ao 1, zero offset, low gain caldac[9] set to 147 binary: ao 1, reference voltage, low gain caldac[5] set to 175 writing calibration to /usr/local/var/lib/comedi/calibrations/ni_pcimio_pci-6024e_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 1.57(89)e-4, target 0 caldac[0] gain=-1.238(12)e-4 V/bit S_min=8.92001 dof=14 caldac[4] gain=-7.759(12)e-4 V/bit S_min=12.673 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 3, aref 3 reading 7.2(67)e-7, target 0 caldac[0] gain=-1.183379(87)e-4 V/bit S_min=497.471 dof=14 caldac[4] gain=-3.8764(88)e-6 V/bit S_min=2.59514 dof=14 caldac[8] gain=-2.0601(88)e-6 V/bit S_min=2.85619 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 5.000486(83), target 4.99999 caldac[0] gain=-1.209(12)e-4 V/bit S_min=5.95325 dof=14 caldac[2] gain=-5.724(11)e-4 V/bit S_min=9.53658 dof=14 caldac[4] gain=-7.707(12)e-4 V/bit S_min=8.39882 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 3.129(93)e-3, target 0.002442 caldac[0] gain=-1.233(12)e-4 V/bit S_min=6.87263 dof=14 caldac[4] gain=-7.755(12)e-4 V/bit S_min=10.4787 dof=14 caldac[6] gain=-7.812(12)e-4 V/bit S_min=7.71422 dof=14 caldac[10] gain=-1.220(12)e-4 V/bit S_min=8.50866 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.002528(86), target 8.00244 caldac[0] gain=-1.187(12)e-4 V/bit S_min=1.59891 dof=14 caldac[2] gain=-9.236(12)e-4 V/bit S_min=38.2312 dof=14 caldac[4] gain=-7.749(12)e-4 V/bit S_min=2.6078 dof=14 caldac[6] gain=-7.795(12)e-4 V/bit S_min=1.67777 dof=14 caldac[10] gain=-1.786(12)e-4 V/bit S_min=1.84272 dof=14 caldac[11] gain=-2.603(12)e-4 V/bit S_min=2.76891 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.002719(85), target 4.00244 caldac[0] gain=-1.190(12)e-4 V/bit S_min=0.920085 dof=14 caldac[2] gain=-4.588(12)e-4 V/bit S_min=10.1437 dof=14 caldac[4] gain=-7.713(12)e-4 V/bit S_min=3.95375 dof=14 caldac[6] gain=-7.778(12)e-4 V/bit S_min=3.75289 dof=14 caldac[10] gain=-1.611(12)e-4 V/bit S_min=0.720738 dof=14 caldac[11] gain=-1.295(12)e-4 V/bit S_min=0.763158 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.448(89)e-3, target 0.002442 caldac[0] gain=-1.232(12)e-4 V/bit S_min=5.6879 dof=14 caldac[1] gain=-1.224(12)e-4 V/bit S_min=6.75919 dof=14 caldac[4] gain=-7.754(12)e-4 V/bit S_min=8.34611 dof=14 caldac[9] gain=-7.793(12)e-4 V/bit S_min=12.611 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.002399(88), target 8.00244 caldac[0] gain=-1.179(12)e-4 V/bit S_min=1.52721 dof=14 caldac[1] gain=-1.774(12)e-4 V/bit S_min=0.777603 dof=14 caldac[2] gain=-9.237(12)e-4 V/bit S_min=39.6389 dof=14 caldac[4] gain=-7.744(12)e-4 V/bit S_min=2.67727 dof=14 caldac[5] gain=-2.605(12)e-4 V/bit S_min=1.53475 dof=14 caldac[9] gain=-7.777(12)e-4 V/bit S_min=8.5348 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.002862(87), target 4.00244 caldac[0] gain=-1.177(12)e-4 V/bit S_min=0.832675 dof=14 caldac[1] gain=-1.609(12)e-4 V/bit S_min=0.821793 dof=14 caldac[2] gain=-4.590(12)e-4 V/bit S_min=13.6751 dof=14 caldac[4] gain=-7.713(12)e-4 V/bit S_min=4.8925 dof=14 caldac[5] gain=-1.306(12)e-4 V/bit S_min=1.46232 dof=14 caldac[9] gain=-7.751(12)e-4 V/bit S_min=5.65103 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-6035e0000644000000000000000000002103712416542124017566 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.24 2002/01/22 09:32:28 ds Exp Driver name: ni_pcimio Device name: pci-6035e Comedi version: 0.7.64 ai, bipolar zero offset, low gain offset 0.012944(20), target 0 caldac[0] gain=-1.1773(19)e-5 V/bit S_min=246.793 dof=254 caldac[2] gain=6.82(19)e-7 V/bit S_min=280.234 dof=254 caldac[4] gain=-6.26946(19)e-4 V/bit S_min=1333.03 dof=254 caldac[8] gain=-2.25(19)e-7 V/bit S_min=221.558 dof=254 ai, bipolar zero offset, high gain offset 2.5411(70)e-4, target 0 caldac[0] gain=-1.184479(69)e-5 V/bit S_min=601.325 dof=254 caldac[2] gain=1.662(65)e-8 V/bit S_min=304.058 dof=254 caldac[4] gain=-3.13542(65)e-6 V/bit S_min=301.441 dof=254 caldac[8] gain=-2.0310(65)e-7 V/bit S_min=311.733 dof=254 ai, bipolar voltage reference, low gain offset 5.013244(23), target 5 caldac[0] gain=-1.0718(19)e-5 V/bit S_min=236.177 dof=254 caldac[2] gain=3.55645(20)e-4 V/bit S_min=5166.14 dof=254 caldac[4] gain=-6.27555(18)e-4 V/bit S_min=984.255 dof=254 caldac[8] gain=-2.12(19)e-7 V/bit S_min=244.898 dof=254 (null) offset 1.166629(32), target 0 caldac[0] gain=-3.05197(19)e-4 V/bit S_min=1540.12 dof=254 caldac[1] gain=-2.88382(19)e-4 V/bit S_min=1918.35 dof=254 caldac[2] gain=-2.21448(20)e-4 V/bit S_min=2179.26 dof=254 caldac[3] gain=-2.80387(19)e-4 V/bit S_min=1242.74 dof=254 caldac[4] gain=-9.05379(19)e-4 V/bit S_min=2022.73 dof=254 caldac[5] gain=-2.76276(19)e-4 V/bit S_min=543.973 dof=254 caldac[6] gain=-2.74266(19)e-4 V/bit S_min=1643.75 dof=254 caldac[7] gain=-2.71670(19)e-4 V/bit S_min=806.479 dof=254 caldac[8] gain=-2.70225(19)e-4 V/bit S_min=1625.86 dof=254 caldac[9] gain=-2.75665(19)e-4 V/bit S_min=958.022 dof=254 caldac[10] gain=-2.65147(19)e-4 V/bit S_min=1035.94 dof=254 caldac[11] gain=-2.62072(19)e-4 V/bit S_min=471.963 dof=254 caldac[12] gain=-2.62643(19)e-4 V/bit S_min=460.769 dof=254 caldac[13] gain=-2.61439(19)e-4 V/bit S_min=523.447 dof=254 caldac[14] gain=-2.59518(19)e-4 V/bit S_min=926.967 dof=254 caldac[15] gain=-2.58381(19)e-4 V/bit S_min=741.307 dof=254 ao 0, zero offset, low gain offset 0.0254(43), target 0.002442 caldac[0] gain=-1.1808(21)e-5 V/bit S_min=437.561 dof=254 caldac[2] gain=9.98(21)e-7 V/bit S_min=395.402 dof=254 caldac[3] gain=-1.04(21)e-7 V/bit S_min=423.777 dof=254 caldac[4] gain=-6.27008(21)e-4 V/bit S_min=1304.09 dof=254 caldac[6] gain=-7.67443(21)e-4 V/bit S_min=1688.85 dof=254 caldac[8] gain=-1.97(21)e-7 V/bit S_min=452.037 dof=254 caldac[10] gain=-1.14847(21)e-4 V/bit S_min=552.752 dof=254 ao 0, reference voltage, low gain offset -0.019(16), target -0.001221 caldac[0] gain=-1.2935(19)e-5 V/bit S_min=284.678 dof=254 caldac[2] gain=7.40(19)e-7 V/bit S_min=306.839 dof=254 caldac[4] gain=-6.26991(19)e-4 V/bit S_min=1444.62 dof=254 caldac[6] gain=-7.67471(19)e-4 V/bit S_min=2158.97 dof=254 caldac[8] gain=-2.24(19)e-7 V/bit S_min=315.045 dof=254 caldac[10] gain=-1.38932(19)e-4 V/bit S_min=897.617 dof=254 caldac[11] gain=-1.62528(19)e-4 V/bit S_min=1635.75 dof=254 ao 1, zero offset, low gain offset 0.0409(87), target 0.002442 caldac[0] gain=-1.1885(21)e-5 V/bit S_min=432.721 dof=254 caldac[1] gain=-1.15638(21)e-4 V/bit S_min=468.52 dof=254 caldac[2] gain=1.375(21)e-6 V/bit S_min=391.178 dof=254 caldac[4] gain=-6.27116(21)e-4 V/bit S_min=1688.27 dof=254 caldac[5] gain=-1.00(21)e-7 V/bit S_min=372.132 dof=254 caldac[8] gain=-2.08(21)e-7 V/bit S_min=357.898 dof=254 caldac[9] gain=-7.74251(21)e-4 V/bit S_min=2375.82 dof=254 ao 1, reference voltage, low gain offset -0.022(21), target -0.001221 caldac[0] gain=-1.3099(19)e-5 V/bit S_min=495.56 dof=254 caldac[1] gain=-1.40322(19)e-4 V/bit S_min=509.569 dof=254 caldac[2] gain=1.189(19)e-6 V/bit S_min=358.879 dof=254 caldac[4] gain=-6.27038(19)e-4 V/bit S_min=1972.7 dof=254 caldac[5] gain=-1.62366(19)e-4 V/bit S_min=641.86 dof=254 caldac[8] gain=-2.49(18)e-7 V/bit S_min=318.45 dof=254 caldac[9] gain=-7.74293(19)e-4 V/bit S_min=3056.43 dof=254 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[4] gain=-6.26974(18)e-4 V/bit S_min=1491.78 dof=254 caldac[4] gain=-3.13259(65)e-6 V/bit S_min=375.767 dof=254 caldac[4] set to 148 (147.509) linear: ai, bipolar zero offset, high gain caldac[0] gain=-1.184463(70)e-5 V/bit S_min=623.898 dof=254 caldac[0] set to 143 (143.459) linear: ai, bipolar zero offset, high gain caldac[8] gain=-2.0233(63)e-7 V/bit S_min=278.768 dof=254 caldac[8] set to 127 (126.893) linear: ai, bipolar voltage reference, low gain caldac[2] gain=3.54822(20)e-4 V/bit S_min=7147.7 dof=254 caldac[2] set to 127 (126.676) linear: ao 0, zero offset, low gain caldac[6] gain=-7.67358(22)e-4 V/bit S_min=1762.56 dof=254 caldac[6] set to 129 (128.586) linear: ao 0, reference voltage, low gain caldac[10] gain=-1.38635(19)e-4 V/bit S_min=948.436 dof=254 caldac[10] set to 123 (122.902) linear: ao 1, zero offset, low gain caldac[9] gain=-7.74296(22)e-4 V/bit S_min=2695.12 dof=254 caldac[9] set to 137 (136.9) linear: ao 1, reference voltage, low gain caldac[5] gain=-1.61913(19)e-4 V/bit S_min=1017.68 dof=254 caldac[5] set to 129 (128.911) ai, bipolar zero offset, low gain offset -2.15(21)e-4, target 0 caldac[0] gain=-1.1406(18)e-5 V/bit S_min=479.25 dof=254 caldac[2] gain=-2.50(18)e-7 V/bit S_min=373.303 dof=254 caldac[4] gain=-6.26953(19)e-4 V/bit S_min=1496.25 dof=254 caldac[8] gain=-2.47(18)e-7 V/bit S_min=306.357 dof=254 ai, bipolar zero offset, high gain offset -6.4(74)e-7, target 0 caldac[0] gain=-1.184355(69)e-5 V/bit S_min=654.56 dof=254 caldac[3] gain=-3.38(62)e-9 V/bit S_min=301.57 dof=254 caldac[4] gain=-3.13813(65)e-6 V/bit S_min=295.552 dof=254 caldac[8] gain=-2.0119(64)e-7 V/bit S_min=294.204 dof=254 ai, bipolar voltage reference, low gain offset 4.999917(18), target 5 caldac[0] gain=-1.0844(18)e-5 V/bit S_min=451.029 dof=254 caldac[2] gain=3.54823(20)e-4 V/bit S_min=7266.78 dof=254 caldac[4] gain=-6.27499(19)e-4 V/bit S_min=1207.03 dof=254 caldac[8] gain=-1.92(16)e-7 V/bit S_min=345.501 dof=254 (null) offset 0.541593(34), target 0 caldac[0] gain=-3.03815(20)e-4 V/bit S_min=3477.6 dof=254 caldac[1] gain=-2.85114(19)e-4 V/bit S_min=2032.95 dof=254 caldac[2] gain=-2.61627(19)e-4 V/bit S_min=3822.49 dof=254 caldac[3] gain=-2.76546(19)e-4 V/bit S_min=2478.34 dof=254 caldac[4] gain=-9.00437(19)e-4 V/bit S_min=2015.46 dof=254 caldac[5] gain=-2.71999(19)e-4 V/bit S_min=583.705 dof=254 caldac[6] gain=-2.69269(19)e-4 V/bit S_min=732.442 dof=254 caldac[7] gain=-2.66634(19)e-4 V/bit S_min=1146.44 dof=254 caldac[8] gain=-2.64839(19)e-4 V/bit S_min=673.634 dof=254 caldac[9] gain=-2.71481(19)e-4 V/bit S_min=618.958 dof=254 caldac[10] gain=-2.61882(19)e-4 V/bit S_min=940.154 dof=254 caldac[11] gain=-2.58067(19)e-4 V/bit S_min=1054.56 dof=254 caldac[12] gain=-2.58500(19)e-4 V/bit S_min=599.639 dof=254 caldac[13] gain=-2.57496(19)e-4 V/bit S_min=561.894 dof=254 caldac[14] gain=-2.56407(19)e-4 V/bit S_min=910.663 dof=254 caldac[15] gain=-2.54749(19)e-4 V/bit S_min=822.292 dof=254 ao 0, zero offset, low gain offset 0.045(21), target 0.002442 caldac[0] gain=-1.1813(21)e-5 V/bit S_min=391.49 dof=254 caldac[4] gain=-6.26968(21)e-4 V/bit S_min=1421.94 dof=254 caldac[6] gain=-7.67348(21)e-4 V/bit S_min=1929.58 dof=254 caldac[8] gain=-2.48(21)e-7 V/bit S_min=407.266 dof=254 caldac[10] gain=-1.14315(21)e-4 V/bit S_min=940.183 dof=254 ao 0, reference voltage, low gain offset -0.035(17), target -0.001221 caldac[0] gain=-1.2796(18)e-5 V/bit S_min=564.449 dof=254 caldac[2] gain=-2.93(19)e-7 V/bit S_min=314.757 dof=254 caldac[4] gain=-6.26979(19)e-4 V/bit S_min=1509.36 dof=254 caldac[6] gain=-7.67381(19)e-4 V/bit S_min=2229.62 dof=254 caldac[8] gain=-1.82(19)e-7 V/bit S_min=304.739 dof=254 caldac[10] gain=-1.38661(19)e-4 V/bit S_min=828.214 dof=254 caldac[11] gain=-1.62335(18)e-4 V/bit S_min=1015.51 dof=254 ao 1, zero offset, low gain offset 0.045(21), target 0.002442 caldac[0] gain=-1.1763(21)e-5 V/bit S_min=459.485 dof=254 caldac[1] gain=-1.15012(21)e-4 V/bit S_min=940.128 dof=254 caldac[4] gain=-6.26916(21)e-4 V/bit S_min=1312.2 dof=254 caldac[5] gain=-1.15(21)e-7 V/bit S_min=415.043 dof=254 caldac[8] gain=-2.25(21)e-7 V/bit S_min=443.539 dof=254 caldac[9] gain=-7.74128(22)e-4 V/bit S_min=2684.38 dof=254 ao 1, reference voltage, low gain offset -0.037(18), target -0.001221 caldac[0] gain=-1.2791(18)e-5 V/bit S_min=534.573 dof=254 caldac[1] gain=-1.39697(19)e-4 V/bit S_min=727.324 dof=254 caldac[2] gain=-3.11(19)e-7 V/bit S_min=377.948 dof=254 caldac[4] gain=-6.26942(19)e-4 V/bit S_min=1490.46 dof=254 caldac[5] gain=-1.61913(19)e-4 V/bit S_min=983.618 dof=254 caldac[8] gain=-1.86(19)e-7 V/bit S_min=389.475 dof=254 caldac[9] gain=-7.74185(19)e-4 V/bit S_min=3267.41 dof=254 comedi_calibrate-5/comedi_calibrate/results/pci-6023e0000644000000000000000000000612512416542124017564 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.36 2002/06/12 23:19:39 ds Exp Driver name: ni_pcimio Device name: pci-6023e Id: ni.c,v 1.30 2002/06/12 23:19:39 ds Exp Comedi version: 0.7.65 ai, bipolar zero offset, low gain offset -0.012248(38), target 0 caldac[0] gain=-1.20044(52)e-4 V/bit S_min=60353.2 dof=254 caldac[1] gain= V/bit S_min=inf dof=254 caldac[2] gain= V/bit S_min=inf dof=254 caldac[3] gain= V/bit S_min=inf dof=254 caldac[4] gain=-7.68330(56)e-4 V/bit S_min=57620.1 dof=254 caldac[5] gain= V/bit S_min=inf dof=254 caldac[6] gain= V/bit S_min=inf dof=254 caldac[7] gain= V/bit S_min=inf dof=254 caldac[8] gain= V/bit S_min=inf dof=254 caldac[9] gain=-2.47(13)e-9 V/bit S_min=65407.1 dof=254 caldac[10] gain= V/bit S_min=inf dof=254 caldac[11] gain= V/bit S_min=inf dof=254 ai, bipolar zero offset, high gain offset 3.3644(13)e-3, target 0 caldac[0] gain=-1.187088(26)e-4 V/bit S_min=3096.05 dof=254 caldac[2] gain=-4.007(12)e-7 V/bit S_min=323.641 dof=254 caldac[4] gain=-3.8457(12)e-6 V/bit S_min=329.221 dof=254 caldac[8] gain=-2.0504(12)e-6 V/bit S_min=287.303 dof=254 ai, bipolar voltage reference, low gain offset 4.998779( 0), target 5 caldac[0] gain=-1.21374(54)e-4 V/bit S_min=58731.7 dof=254 caldac[2] gain=-5.98461(60)e-4 V/bit S_min=48971.1 dof=254 caldac[4] gain=-7.64458(58)e-4 V/bit S_min=54496.4 dof=254 caldac[8] gain=-2.90(17)e-7 V/bit S_min=753.706 dof=254 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[4] gain=-7.68318(55)e-4 V/bit S_min=59349.6 dof=254 caldac[4] gain=-3.8481(12)e-6 V/bit S_min=323.478 dof=254 caldac[4] set to 106 (106.442) linear: ai, bipolar zero offset, high gain caldac[0] gain=-1.186974(26)e-4 V/bit S_min=2972.99 dof=254 caldac[0] set to 157 (157.229) linear: ai, bipolar voltage reference, low gain caldac[2] gain=-5.99000(59)e-4 V/bit S_min=51115.6 dof=254 caldac[2] set to 145 (145.074) ai, bipolar zero offset, low gain offset 1.87(14)e-3, target 0 caldac[0] gain=-1.23059(58)e-4 V/bit S_min=54266.7 dof=254 caldac[2] gain=2.68(13)e-6 V/bit S_min=843.073 dof=254 caldac[4] gain=-7.66774(56)e-4 V/bit S_min=58642.8 dof=254 caldac[8] gain=-6.87(12)e-6 V/bit S_min=1365.67 dof=254 ai, bipolar zero offset, high gain offset -1.114(13)e-4, target 0 caldac[0] gain=-1.184377(26)e-4 V/bit S_min=2980.93 dof=254 caldac[2] gain=1.80(12)e-8 V/bit S_min=273.599 dof=254 caldac[4] gain=-3.8415(12)e-6 V/bit S_min=613.354 dof=254 caldac[8] gain=-2.0597(12)e-6 V/bit S_min=543.625 dof=254 ai, bipolar voltage reference, low gain offset 4.998779( 0), target 5 caldac[0] gain=-1.22230(53)e-4 V/bit S_min=57428.6 dof=254 caldac[1] gain=-3.21(13)e-9 V/bit S_min=65141.7 dof=254 caldac[2] gain=-5.99181(58)e-4 V/bit S_min=52709.2 dof=254 caldac[3] gain=1.61(25)e-9 V/bit S_min=32726.9 dof=254 caldac[4] gain=-7.63735(56)e-4 V/bit S_min=60697.6 dof=254 caldac[5] gain=-5.35(50)e-9 V/bit S_min=16141.6 dof=254 caldac[7] gain=3.15(13)e-9 V/bit S_min=65163.8 dof=254 caldac[8] gain=-3.40(13)e-9 V/bit S_min=65061.7 dof=254 caldac[9] gain=-6.10(38)e-9 V/bit S_min=21497.1 dof=254 comedi_calibrate-5/comedi_calibrate/results/measurement-computing-pci-das60140000644000000000000000000002551412416542124024440 00000000000000linux:/home/matti/Envir_measure/cardsoft # /usr/local/bin/comedi_calibrate --calibrate /dev/comedi0 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: cb_pcidas64 Device name: pci-das6014 Id: cb64.c,v 1.16 2004/08/02 01:35:41 fmhess Exp Comedi version: 0.7.70 calibration source 0, range 0, ground referenced reading -4.4803(74)e-3, target 0 caldac[4] gain=1.00119(96)e-4 V/bit S_min=1.29654 dof=14 caldac[5] gain=4.474167(96)e-3 V/bit S_min=522.198 dof=14 caldac[6] gain=5.203(96)e-6 V/bit S_min=1.53105 dof=14 calibration source 1, range 0, ground referenced reading 9.9929764(76), target 9.9769 caldac[4] gain=9.0214(79)e-5 V/bit S_min=25251.7 dof=14 caldac[5] gain=2.464807(55)e-3 V/bit S_min=4.10294e+08 dof=14 caldac[6] gain=-3.123038(47)e-3 V/bit S_min=1.2372e+09 dof=14 caldac[7] gain=-1.13452(60)e-4 V/bit S_min=333506 dof=14 calibration source 0, range 1, ground referenced reading -2.6261(34)e-3, target 0 caldac[4] gain=6.0091(48)e-5 V/bit S_min=1.33021 dof=14 caldac[5] gain=2.684554(48)e-3 V/bit S_min=848.033 dof=14 caldac[6] gain=2.752(48)e-6 V/bit S_min=2.0863 dof=14 calibration source 2, range 1, ground referenced reading 4.987903(13), target 4.96952 caldac[4] gain=6.027(17)e-5 V/bit S_min=5.72009 dof=14 caldac[5] gain=1.524538(93)e-3 V/bit S_min=5.07735e+07 dof=14 caldac[6] gain=-1.609288(87)e-3 V/bit S_min=8.83594e+07 dof=14 caldac[7] gain=-7.945(17)e-5 V/bit S_min=4.1996 dof=14 calibration source 0, range 2, ground referenced reading -9.4484(58)e-4, target 0 caldac[4] gain=2.38020(78)e-5 V/bit S_min=7.06088 dof=14 caldac[5] gain=1.0639233(78)e-3 V/bit S_min=4943.81 dof=14 caldac[6] gain=6.814(78)e-7 V/bit S_min=7.22209 dof=14 calibration source 3, range 2, ground referenced reading 0.45980628(63), target 0.46308 caldac[4] gain=2.38051(84)e-5 V/bit S_min=7.93803 dof=14 caldac[5] gain=8.005529(58)e-4 V/bit S_min=1.4103e+09 dof=14 caldac[6] gain=-3.261533(78)e-4 V/bit S_min=4.04224e+06 dof=14 caldac[7] gain=-7.3309(83)e-6 V/bit S_min=3.47933 dof=14 calibration source 0, range 3, ground referenced reading -9.283(18)e-5, target 0 caldac[4] gain=2.3799(25)e-6 V/bit S_min=3.33165 dof=14 caldac[5] gain=1.063931(25)e-4 V/bit S_min=498.68 dof=14 caldac[6] gain=6.54(25)e-8 V/bit S_min=1.67646 dof=14 calibration source 4, range 3, ground referenced reading 0.04781226(18), target 0.0483123 caldac[4] gain=2.3816(25)e-6 V/bit S_min=1.65942 dof=14 caldac[5] gain=7.01992(15)e-5 V/bit S_min=2.60349e+08 dof=14 caldac[6] gain=-2.69269(17)e-5 V/bit S_min=1.23313e+07 dof=14 caldac[7] gain=-7.612(24)e-7 V/bit S_min=1.24106 dof=14 dac0 low, range 0, ground referenced reading -4.5083(76)e-3, target 0.00015259 caldac[0] gain=1.04551(99)e-4 V/bit S_min=1.56957 dof=14 caldac[4] gain=1.00175(98)e-4 V/bit S_min=1.12202 dof=14 caldac[5] gain=4.474181(100)e-3 V/bit S_min=495.196 dof=14 caldac[6] gain=5.22(10)e-6 V/bit S_min=1.14609 dof=14 dac0 high, range 0, ground referenced reading 9.0146385(83), target 8.99992 caldac[0] gain=1.4571(11)e-4 V/bit S_min=22.5438 dof=14 caldac[1] gain=-9.739(11)e-5 V/bit S_min=17.4398 dof=14 caldac[4] gain=1.0018(11)e-4 V/bit S_min=32.1092 dof=14 caldac[5] gain=4.47627(11)e-3 V/bit S_min=578.718 dof=14 caldac[6] gain=-6.54983(11)e-3 V/bit S_min=7.84674e+06 dof=14 caldac[7] gain=-1.4357(11)e-4 V/bit S_min=12.1425 dof=14 dac1 low, range 0, ground referenced reading -4.6033(76)e-3, target 0.00015259 caldac[2] gain=1.04604(100)e-4 V/bit S_min=1.07481 dof=14 caldac[4] gain=1.00146(98)e-4 V/bit S_min=2.02347 dof=14 caldac[5] gain=4.474175(99)e-3 V/bit S_min=490.304 dof=14 caldac[6] gain=5.259(100)e-6 V/bit S_min=1.51898 dof=14 dac1 high, range 0, ground referenced reading 9.0146439(83), target 8.99992 caldac[2] gain=1.4593(11)e-4 V/bit S_min=26.1243 dof=14 caldac[3] gain=-9.752(11)e-5 V/bit S_min=20.0498 dof=14 caldac[4] gain=1.0016(11)e-4 V/bit S_min=31.8804 dof=14 caldac[5] gain=4.47621(11)e-3 V/bit S_min=591.839 dof=14 caldac[6] gain=-6.54985(11)e-3 V/bit S_min=7.81219e+06 dof=14 caldac[7] gain=-1.4356(11)e-4 V/bit S_min=12.8266 dof=14 relative binary: calibration source 1, range 0, ground referenced, calibration source 0, range 0, ground referenced caldac[6] set to 129 binary: calibration source 0, range 0, ground referenced caldac[5] set to 128 relative binary: calibration source 1, range 0, ground referenced, calibration source 0, range 0, ground referenced caldac[7] set to 169 binary: calibration source 0, range 0, ground referenced caldac[4] set to 133 relative binary: calibration source 2, range 1, ground referenced, calibration source 0, range 1, ground referenced caldac[6] set to 133 binary: calibration source 0, range 1, ground referenced caldac[5] set to 128 relative binary: calibration source 2, range 1, ground referenced, calibration source 0, range 1, ground referenced caldac[7] set to 125 binary: calibration source 0, range 1, ground referenced caldac[4] set to 132 relative binary: calibration source 3, range 2, ground referenced, calibration source 0, range 2, ground referenced caldac[6] set to 119 binary: calibration source 0, range 2, ground referenced caldac[5] set to 128 relative binary: calibration source 3, range 2, ground referenced, calibration source 0, range 2, ground referenced caldac[7] set to 169 binary: calibration source 0, range 2, ground referenced caldac[4] set to 129 relative binary: calibration source 4, range 3, ground referenced, calibration source 0, range 3, ground referenced caldac[6] set to 115 binary: calibration source 0, range 3, ground referenced caldac[5] set to 128 relative binary: calibration source 4, range 3, ground referenced, calibration source 0, range 3, ground referenced caldac[7] set to 134 binary: calibration source 0, range 3, ground referenced caldac[4] set to 127 relative binary: dac0 high, range 0, ground referenced, dac0 low, range 0, ground referenced caldac[1] set to 137 binary: dac0 low, range 0, ground referenced caldac[0] set to 129 relative binary: dac1 high, range 0, ground referenced, dac1 low, range 0, ground referenced caldac[3] set to 139 binary: dac1 low, range 0, ground referenced caldac[2] set to 129 writing calibration to /usr/local/var/lib/comedi/calibrations/cb_pcidas64_pci-das6014_comedi0 calibration source 0, range 0, ground referenced applied calibration for subdev 0, channel 0, range 0, aref 0 reading -0.3(64)e-6, target 0 caldac[4] gain=9.9925(96)e-5 V/bit S_min=3.07829 dof=14 caldac[5] gain=4.464724(96)e-3 V/bit S_min=529.258 dof=14 caldac[6] gain=2.252(97)e-6 V/bit S_min=5.88681 dof=14 calibration source 1, range 0, ground referenced applied calibration for subdev 0, channel 0, range 0, aref 0 reading 9.9772253(77), target 9.9769 caldac[4] gain=1.00300(98)e-4 V/bit S_min=57.1959 dof=14 caldac[5] gain=2.576274(55)e-3 V/bit S_min=3.96155e+08 dof=14 caldac[6] gain=-3.136499(49)e-3 V/bit S_min=1.13867e+09 dof=14 calibration source 0, range 1, ground referenced applied calibration for subdev 0, channel 0, range 1, aref 0 reading -1.83(31)e-5, target 0 caldac[4] gain=5.9853(48)e-5 V/bit S_min=1.49887 dof=14 caldac[5] gain=2.672925(47)e-3 V/bit S_min=845.337 dof=14 caldac[6] gain=1.119(48)e-6 V/bit S_min=5.13381 dof=14 calibration source 2, range 1, ground referenced applied calibration for subdev 0, channel 0, range 1, aref 0 reading 4.969619(14), target 4.96952 caldac[4] gain=6.009(17)e-5 V/bit S_min=11.6169 dof=14 caldac[5] gain=1.638934(91)e-3 V/bit S_min=4.96815e+07 dof=14 caldac[6] gain=-1.595607(87)e-3 V/bit S_min=9.00592e+07 dof=14 calibration source 0, range 2, ground referenced applied calibration for subdev 0, channel 0, range 2, aref 0 reading 1.031(52)e-5, target 0 caldac[4] gain=2.39333(78)e-5 V/bit S_min=4.67894 dof=14 caldac[5] gain=1.0691025(78)e-3 V/bit S_min=5111.18 dof=14 calibration source 3, range 2, ground referenced applied calibration for subdev 0, channel 0, range 2, aref 0 reading 0.46310376(62), target 0.46308 caldac[4] gain=2.39231(84)e-5 V/bit S_min=14.305 dof=14 caldac[5] gain=7.916264(58)e-4 V/bit S_min=1.47745e+09 dof=14 caldac[6] gain=-3.253145(73)e-4 V/bit S_min=5.20338e+06 dof=14 caldac[7] gain=-7.4734(84)e-6 V/bit S_min=3.11628 dof=14 calibration source 0, range 3, ground referenced applied calibration for subdev 0, channel 0, range 3, aref 0 reading -1.66(17)e-6, target 0 caldac[4] gain=2.3995(25)e-6 V/bit S_min=1.21466 dof=14 caldac[5] gain=1.072828(25)e-4 V/bit S_min=502.692 dof=14 calibration source 4, range 3, ground referenced applied calibration for subdev 0, channel 0, range 3, aref 0 reading 0.04831059(18), target 0.0483123 caldac[4] gain=2.4003(25)e-6 V/bit S_min=4.88799 dof=14 caldac[5] gain=6.84265(14)e-5 V/bit S_min=3.38442e+08 dof=14 caldac[6] gain=-2.65240(16)e-5 V/bit S_min=1.33023e+07 dof=14 caldac[7] gain=-7.764(25)e-7 V/bit S_min=1.75163 dof=14 dac0 low, range 0, ground referenced applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 0, range 0, aref 0 reading 1.645(58)e-4, target 0.00015259 caldac[0] gain=1.04294(99)e-4 V/bit S_min=3.41793 dof=14 caldac[4] gain=9.9964(99)e-5 V/bit S_min=1.55293 dof=14 caldac[5] gain=4.464654(99)e-3 V/bit S_min=506.679 dof=14 caldac[6] gain=2.209(99)e-6 V/bit S_min=5.04124 dof=14 dac0 high, range 0, ground referenced applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 0, range 0, aref 0 reading 9.0001302(80), target 8.99992 caldac[0] gain=1.4551(11)e-4 V/bit S_min=16.0483 dof=14 caldac[1] gain=-9.733(11)e-5 V/bit S_min=13.3661 dof=14 caldac[4] gain=1.0022(11)e-4 V/bit S_min=41.6717 dof=14 caldac[5] gain=4.46663(11)e-3 V/bit S_min=675.5 dof=14 caldac[6] gain=-6.54380(11)e-3 V/bit S_min=7.53188e+06 dof=14 caldac[7] gain=-1.4611(11)e-4 V/bit S_min=12.3093 dof=14 dac1 low, range 0, ground referenced applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 0, range 0, aref 0 reading 8.58(59)e-5, target 0.00015259 caldac[2] gain=1.04337(99)e-4 V/bit S_min=3.61001 dof=14 caldac[4] gain=9.9894(99)e-5 V/bit S_min=3.03987 dof=14 caldac[5] gain=4.464630(99)e-3 V/bit S_min=490.707 dof=14 caldac[6] gain=2.30(10)e-6 V/bit S_min=4.14847 dof=14 dac1 high, range 0, ground referenced applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 0, range 0, aref 0 reading 8.9999419(80), target 8.99992 caldac[2] gain=1.4567(11)e-4 V/bit S_min=18.0408 dof=14 caldac[3] gain=-9.741(11)e-5 V/bit S_min=12.151 dof=14 caldac[4] gain=1.0018(11)e-4 V/bit S_min=40.5374 dof=14 caldac[5] gain=4.46669(11)e-3 V/bit S_min=675.897 dof=14 caldac[6] gain=-6.54384(11)e-3 V/bit S_min=7.52359e+06 dof=14 caldac[7] gain=-1.4606(11)e-4 V/bit S_min=11.1326 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-6052e0000644000000000000000000005266112416542124017574 00000000000000 eeprom reference lsb=203 msb=253 resulting reference voltage: 4.99944 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at http://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Id: comedi_calibrate.c,v 1.87 2003/07/01 21:01:31 fmhess Exp Driver name: ni_pcimio Device name: pci-6052e Id: ni.c,v 1.90 2003/07/10 22:07:12 fmhess Exp Comedi version: 0.7.66 ai, bipolar zero offset, low gain reading -8.6103(87)e-3, target 0 caldac[0] gain=-8.13(12)e-6 V/bit S_min=1.10763 dof=14 caldac[2] gain=1.50795(12)e-3 V/bit S_min=226.973 dof=14 caldac[3] gain=3.013(12)e-5 V/bit S_min=4.1594 dof=14 caldac[4] gain=-8.9(12)e-7 V/bit S_min=0.475217 dof=14 ai, bipolar zero offset, high gain reading 3.1125(20)e-4, target 0 caldac[0] gain=-8.2227(27)e-6 V/bit S_min=19.1631 dof=14 caldac[1] gain=1.614(27)e-7 V/bit S_min=1.43933 dof=14 caldac[2] gain=7.5372(27)e-6 V/bit S_min=9.0941 dof=14 caldac[3] gain=1.476(27)e-7 V/bit S_min=2.86933 dof=14 caldac[4] gain=2.40(27)e-8 V/bit S_min=1.12883 dof=14 ai, bipolar voltage reference, low gain reading 4.9825690(84), target 4.99944 caldac[0] gain=-8.29(12)e-6 V/bit S_min=1.28818 dof=14 caldac[2] gain=1.50783(12)e-3 V/bit S_min=220.665 dof=14 caldac[3] gain=3.012(12)e-5 V/bit S_min=4.04188 dof=14 caldac[4] gain=3.8675(12)e-4 V/bit S_min=257.558 dof=14 caldac[5] gain=7.72(12)e-6 V/bit S_min=3.22003 dof=14 ai, unipolar zero offset, low gain reading 0.0220409(89), target 0.00015259 caldac[0] gain=-8.36(12)e-6 V/bit S_min=3.22306 dof=14 caldac[2] gain=8.19784(60)e-4 V/bit S_min=3.90722e+07 dof=14 caldac[3] gain=3.008(12)e-5 V/bit S_min=7.22733 dof=14 caldac[4] gain=-5.42176(75)e-4 V/bit S_min=5.06649e+06 dof=14 caldac[5] gain=-1.529(12)e-5 V/bit S_min=3.55384 dof=14 caldac[6] gain=-3.26094(91)e-4 V/bit S_min=464330 dof=14 caldac[7] gain=3.71(12)e-6 V/bit S_min=1.01406 dof=14 ai, unipolar zero offset, high gain reading 4.6510(20)e-4, target 7.62951e-07 caldac[0] gain=-6.9388(20)e-6 V/bit S_min=423542 dof=14 caldac[1] gain=1.588(27)e-7 V/bit S_min=3.08774 dof=14 caldac[2] gain=6.0450(19)e-6 V/bit S_min=541400 dof=14 caldac[3] gain=1.513(28)e-7 V/bit S_min=1.15612 dof=14 caldac[4] gain=-3.8445(27)e-6 V/bit S_min=54.6946 dof=14 caldac[5] gain=-7.68(27)e-8 V/bit S_min=1.78679 dof=14 caldac[6] gain=-1.9324(27)e-6 V/bit S_min=1.2218 dof=14 caldac[7] gain=2.03(27)e-8 V/bit S_min=1.92719 dof=14 ai, unipolar voltage reference, low gain reading 5.0130924(92), target 4.99944 caldac[0] gain=-8.05(12)e-6 V/bit S_min=1.9898 dof=14 caldac[2] gain=1.50788(12)e-3 V/bit S_min=220.21 dof=14 caldac[3] gain=2.993(12)e-5 V/bit S_min=6.34524 dof=14 caldac[4] gain=-3.8733(12)e-4 V/bit S_min=258.728 dof=14 caldac[5] gain=-7.53(12)e-6 V/bit S_min=1.04771 dof=14 caldac[6] gain=-3.8658(12)e-4 V/bit S_min=16.5887 dof=14 caldac[7] gain=3.64(12)e-6 V/bit S_min=1.5346 dof=14 ao 0, zero offset, low gain reading -8.4914(88)e-3, target 0.00015259 caldac[0] gain=-8.04(12)e-6 V/bit S_min=1.05161 dof=14 caldac[2] gain=1.50792(12)e-3 V/bit S_min=234.949 dof=14 caldac[3] gain=3.003(12)e-5 V/bit S_min=4.99259 dof=14 caldac[4] gain=-8.4(12)e-7 V/bit S_min=1.09215 dof=14 caldac[16] gain=6.064(12)e-5 V/bit S_min=2.73403 dof=14 caldac[19] gain=-4.586(12)e-5 V/bit S_min=3.65995 dof=14 ao 0, reference voltage, low gain reading 4.9838132(90), target 4.99992 caldac[0] gain=-8.13(12)e-6 V/bit S_min=2.45831 dof=14 caldac[2] gain=1.50787(12)e-3 V/bit S_min=237.066 dof=14 caldac[3] gain=3.002(12)e-5 V/bit S_min=4.96824 dof=14 caldac[4] gain=3.8680(12)e-4 V/bit S_min=255.827 dof=14 caldac[5] gain=7.74(12)e-6 V/bit S_min=1.11254 dof=14 caldac[16] gain=7.213(12)e-5 V/bit S_min=3.73664 dof=14 caldac[17] gain=-1.9497(12)e-4 V/bit S_min=12.4776 dof=14 caldac[18] gain=-7.63(12)e-6 V/bit S_min=1.97599 dof=14 caldac[19] gain=-4.686(12)e-5 V/bit S_min=3.2504 dof=14 ao 0, linearity (mid), low gain reading 2.4874703(90), target 2.49989 caldac[0] gain=-8.29(12)e-6 V/bit S_min=2.74831 dof=14 caldac[2] gain=1.50841(12)e-3 V/bit S_min=244.14 dof=14 caldac[3] gain=2.995(12)e-5 V/bit S_min=4.32043 dof=14 caldac[4] gain=1.9326(12)e-4 V/bit S_min=134.919 dof=14 caldac[5] gain=3.94(12)e-6 V/bit S_min=1.41423 dof=14 caldac[16] gain=6.721(12)e-5 V/bit S_min=8.24503 dof=14 caldac[17] gain=-9.766(12)e-5 V/bit S_min=7.21631 dof=14 caldac[18] gain=-3.89(12)e-6 V/bit S_min=1.59114 dof=14 caldac[19] gain=-4.650(12)e-5 V/bit S_min=4.39519 dof=14 ao 1, zero offset, low gain reading -8.6953(90)e-3, target 0.00015259 caldac[0] gain=-8.09(12)e-6 V/bit S_min=1.37919 dof=14 caldac[2] gain=1.50797(12)e-3 V/bit S_min=241.103 dof=14 caldac[3] gain=3.022(12)e-5 V/bit S_min=5.24172 dof=14 caldac[4] gain=-8.9(12)e-7 V/bit S_min=2.01481 dof=14 caldac[20] gain=6.055(12)e-5 V/bit S_min=4.21363 dof=14 caldac[23] gain=-4.587(12)e-5 V/bit S_min=3.79529 dof=14 ao 1, reference voltage, low gain reading 4.9836296(88), target 4.99992 caldac[0] gain=-8.20(12)e-6 V/bit S_min=2.06166 dof=14 caldac[2] gain=1.50791(12)e-3 V/bit S_min=229.923 dof=14 caldac[3] gain=3.001(12)e-5 V/bit S_min=7.30177 dof=14 caldac[4] gain=3.8678(12)e-4 V/bit S_min=258.772 dof=14 caldac[5] gain=7.71(12)e-6 V/bit S_min=1.94527 dof=14 caldac[20] gain=7.199(12)e-5 V/bit S_min=4.86168 dof=14 caldac[21] gain=-1.9502(12)e-4 V/bit S_min=7.74002 dof=14 caldac[22] gain=-7.77(12)e-6 V/bit S_min=3.59955 dof=14 caldac[23] gain=-4.693(12)e-5 V/bit S_min=3.24831 dof=14 ao 1, linearity (mid), low gain reading 2.4872128(85), target 2.49989 caldac[0] gain=-8.23(12)e-6 V/bit S_min=1.72052 dof=14 caldac[2] gain=1.50861(12)e-3 V/bit S_min=245.07 dof=14 caldac[3] gain=2.994(12)e-5 V/bit S_min=3.47886 dof=14 caldac[4] gain=1.9325(12)e-4 V/bit S_min=126.368 dof=14 caldac[5] gain=3.77(12)e-6 V/bit S_min=1.20793 dof=14 caldac[20] gain=6.715(12)e-5 V/bit S_min=5.2316 dof=14 caldac[21] gain=-9.753(12)e-5 V/bit S_min=6.69752 dof=14 caldac[22] gain=-3.83(12)e-6 V/bit S_min=0.961773 dof=14 caldac[23] gain=-4.655(12)e-5 V/bit S_min=4.43498 dof=14 ao 0, unipolar zero offset, low gain reading -8.6896(88)e-3, target 0 caldac[0] gain=-8.11(12)e-6 V/bit S_min=1.26831 dof=14 caldac[2] gain=1.50791(12)e-3 V/bit S_min=242.062 dof=14 caldac[3] gain=3.014(12)e-5 V/bit S_min=4.71077 dof=14 caldac[4] gain=-8.7(12)e-7 V/bit S_min=0.604307 dof=14 caldac[16] gain=2.070(12)e-5 V/bit S_min=4.34329 dof=14 caldac[19] gain=-2.215(12)e-5 V/bit S_min=3.60894 dof=14 ao 0, unipolar high, low gain reading 8.9778267(90), target 9.00008 caldac[0] gain=-8.09(12)e-6 V/bit S_min=1.67508 dof=14 caldac[2] gain=1.50765(12)e-3 V/bit S_min=224.212 dof=14 caldac[3] gain=3.001(12)e-5 V/bit S_min=3.71449 dof=14 caldac[4] gain=6.9664(12)e-4 V/bit S_min=941.979 dof=14 caldac[5] gain=1.375(12)e-5 V/bit S_min=4.06726 dof=14 caldac[16] gain=4.098(12)e-5 V/bit S_min=5.29771 dof=14 caldac[17] gain=-3.5098(12)e-4 V/bit S_min=25.8469 dof=14 caldac[18] gain=-1.392(12)e-5 V/bit S_min=1.73246 dof=14 caldac[19] gain=-2.388(12)e-5 V/bit S_min=1.65244 dof=14 ao 0, unipolar linearity (low), low gain reading 0.9898539(85), target 1.00008 caldac[0] gain=-8.05(12)e-6 V/bit S_min=1.37316 dof=14 caldac[2] gain=1.50767(12)e-3 V/bit S_min=242.422 dof=14 caldac[3] gain=2.990(12)e-5 V/bit S_min=6.27182 dof=14 caldac[4] gain=7.654(12)e-5 V/bit S_min=18.4718 dof=14 caldac[5] gain=1.44(12)e-6 V/bit S_min=0.441547 dof=14 caldac[16] gain=2.535(12)e-5 V/bit S_min=1.81518 dof=14 caldac[17] gain=-3.899(12)e-5 V/bit S_min=6.55846 dof=14 caldac[18] gain=-1.49(12)e-6 V/bit S_min=1.07783 dof=14 caldac[19] gain=-2.232(12)e-5 V/bit S_min=1.99979 dof=14 ao 0, unipolar linearity (mid), low gain reading 4.9837944(89), target 5.00008 caldac[0] gain=-8.14(12)e-6 V/bit S_min=1.23582 dof=14 caldac[2] gain=1.50795(12)e-3 V/bit S_min=233.814 dof=14 caldac[3] gain=2.998(12)e-5 V/bit S_min=3.78682 dof=14 caldac[4] gain=3.8683(12)e-4 V/bit S_min=245.128 dof=14 caldac[5] gain=7.66(12)e-6 V/bit S_min=1.33929 dof=14 caldac[16] gain=3.030(12)e-5 V/bit S_min=8.17521 dof=14 caldac[17] gain=-1.9499(12)e-4 V/bit S_min=14.5217 dof=14 caldac[18] gain=-7.63(12)e-6 V/bit S_min=1.66786 dof=14 caldac[19] gain=-2.282(12)e-5 V/bit S_min=2.42265 dof=14 ao 1, unipolar zero offset, low gain reading -8.7447(85)e-3, target 0 caldac[0] gain=-8.11(12)e-6 V/bit S_min=1.23183 dof=14 caldac[2] gain=1.50784(12)e-3 V/bit S_min=230.705 dof=14 caldac[3] gain=3.012(12)e-5 V/bit S_min=4.03818 dof=14 caldac[4] gain=-8.9(12)e-7 V/bit S_min=0.999528 dof=14 caldac[20] gain=2.075(12)e-5 V/bit S_min=4.36654 dof=14 caldac[23] gain=-2.215(12)e-5 V/bit S_min=4.41373 dof=14 ao 1, unipolar high, low gain reading 8.9778986(84), target 9.00008 caldac[0] gain=-8.11(12)e-6 V/bit S_min=1.65117 dof=14 caldac[2] gain=1.50764(12)e-3 V/bit S_min=227.905 dof=14 caldac[3] gain=2.995(12)e-5 V/bit S_min=3.74135 dof=14 caldac[4] gain=6.9672(12)e-4 V/bit S_min=951.859 dof=14 caldac[5] gain=1.381(12)e-5 V/bit S_min=2.06476 dof=14 caldac[20] gain=4.096(12)e-5 V/bit S_min=3.93353 dof=14 caldac[21] gain=-3.5097(12)e-4 V/bit S_min=45.246 dof=14 caldac[22] gain=-1.400(12)e-5 V/bit S_min=3.52023 dof=14 caldac[23] gain=-2.390(12)e-5 V/bit S_min=2.53243 dof=14 WARNING: you need comedi driver version 0.7.67 or later for this calibration to work properly relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[4] set to 148 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[2] set to 133 binary: ai, bipolar zero offset, high gain caldac[0] set to 170 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[5] set to 154 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[3] set to 129 binary: ai, bipolar zero offset, high gain caldac[1] set to 103 binary: ai, unipolar zero offset, high gain caldac[6] set to 165 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[16] set to 125 binary: ao 0, zero offset, low gain caldac[19] set to 127 binary: ao 0, reference voltage, low gain caldac[17] set to 131 binary: ao 0, reference voltage, low gain caldac[18] set to 116 linearity binary: ao 0, unipolar linearity (low), low gain, ao 0, unipolar linearity (mid), low gain, ao 0, unipolar high, low gain caldac[16] set to 137 binary: ao 0, unipolar zero offset, low gain caldac[19] set to 135 binary: ao 0, unipolar high, low gain caldac[17] set to 131 binary: ao 0, unipolar high, low gain caldac[18] set to 137 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[20] set to 131 binary: ao 1, zero offset, low gain caldac[23] set to 127 binary: ao 1, reference voltage, low gain caldac[21] set to 131 binary: ao 1, reference voltage, low gain caldac[22] set to 139 linearity binary: ao 1, unipolar linearity (low), low gain, ao 1, unipolar linearity (mid), low gain, ao 1, unipolar high, low gain caldac[20] set to 144 binary: ao 1, unipolar zero offset, low gain caldac[23] set to 137 binary: ao 1, unipolar high, low gain caldac[21] set to 132 binary: ao 1, unipolar high, low gain caldac[22] set to 131 writing calibration to /etc/comedi/calibrations/ni_pcimio_pci-6052e_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 1.22(79)e-5, target 0 caldac[0] gain=-8.24(11)e-6 V/bit S_min=12.8404 dof=14 caldac[2] gain=1.51035(12)e-3 V/bit S_min=226.945 dof=14 caldac[3] gain=3.008(12)e-5 V/bit S_min=5.89065 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading -1.06(20)e-6, target 0 caldac[0] gain=-8.2351(27)e-6 V/bit S_min=19.9015 dof=14 caldac[1] gain=1.625(27)e-7 V/bit S_min=2.15817 dof=14 caldac[2] gain=7.5520(27)e-6 V/bit S_min=9.26061 dof=14 caldac[3] gain=1.520(27)e-7 V/bit S_min=2.1878 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 4.9994293(85), target 4.99944 caldac[0] gain=-8.72(12)e-6 V/bit S_min=7.71306 dof=14 caldac[2] gain=1.51047(12)e-3 V/bit S_min=215.361 dof=14 caldac[3] gain=3.030(12)e-5 V/bit S_min=8.18281 dof=14 caldac[4] gain=3.8728(12)e-4 V/bit S_min=254.015 dof=14 caldac[5] gain=7.80(12)e-6 V/bit S_min=5.4533 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 8, aref 3 reading 8.9(52)e-7, target 0.00015259 caldac[0] gain=-2.802(52)e-6 V/bit S_min=946.33 dof=14 caldac[2] gain=6.35785(53)e-4 V/bit S_min=4.77224e+07 dof=14 caldac[3] gain=9.576(47)e-6 V/bit S_min=20530.2 dof=14 caldac[4] gain=-5.06446(75)e-4 V/bit S_min=5.71793e+06 dof=14 caldac[5] gain=-6.820(59)e-6 V/bit S_min=3676.37 dof=14 caldac[6] gain=-2.87876(83)e-4 V/bit S_min=953397 dof=14 caldac[7] gain=7.22(95)e-8 V/bit S_min=42.5648 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 15, aref 3 reading 1.162(80)e-6, target 7.62951e-07 caldac[0] gain=-6.4027(19)e-6 V/bit S_min=745553 dof=14 caldac[1] gain=7.60(14)e-8 V/bit S_min=482.356 dof=14 caldac[2] gain=3.1809(12)e-6 V/bit S_min=2.32324e+06 dof=14 caldac[3] gain=5.31(12)e-8 V/bit S_min=533.002 dof=14 caldac[4] gain=-2.5341(17)e-6 V/bit S_min=276594 dof=14 caldac[5] gain=-3.73(15)e-8 V/bit S_min=43.6554 dof=14 caldac[6] gain=-1.4421(18)e-6 V/bit S_min=47751.5 dof=14 caldac[7] gain=5.2(11)e-9 V/bit S_min=0.674043 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 8, aref 3 reading 4.9986949(88), target 4.99944 caldac[0] gain=-8.73(12)e-6 V/bit S_min=13.4219 dof=14 caldac[2] gain=1.51031(12)e-3 V/bit S_min=218.593 dof=14 caldac[3] gain=3.020(12)e-5 V/bit S_min=8.37635 dof=14 caldac[4] gain=-3.8770(12)e-4 V/bit S_min=273.581 dof=14 caldac[5] gain=-8.06(12)e-6 V/bit S_min=13.2996 dof=14 caldac[6] gain=-3.8724(12)e-4 V/bit S_min=11.7055 dof=14 caldac[7] gain=3.61(12)e-6 V/bit S_min=0.733005 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 6.56(80)e-5, target 0.00015259 caldac[0] gain=-8.28(12)e-6 V/bit S_min=11.8596 dof=14 caldac[2] gain=1.51033(12)e-3 V/bit S_min=208.618 dof=14 caldac[3] gain=3.012(12)e-5 V/bit S_min=6.60325 dof=14 caldac[16] gain=6.046(12)e-5 V/bit S_min=7.63731 dof=14 caldac[19] gain=-4.573(12)e-5 V/bit S_min=7.39965 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.9998498(87), target 4.99992 caldac[0] gain=-8.65(12)e-6 V/bit S_min=8.16191 dof=14 caldac[2] gain=1.51059(12)e-3 V/bit S_min=196.756 dof=14 caldac[3] gain=3.033(12)e-5 V/bit S_min=10.1251 dof=14 caldac[4] gain=3.8725(12)e-4 V/bit S_min=228.889 dof=14 caldac[5] gain=8.03(12)e-6 V/bit S_min=8.23961 dof=14 caldac[16] gain=7.216(12)e-5 V/bit S_min=7.97625 dof=14 caldac[17] gain=-1.9545(12)e-4 V/bit S_min=12.2067 dof=14 caldac[18] gain=-7.94(12)e-6 V/bit S_min=12.4849 dof=14 caldac[19] gain=-4.708(12)e-5 V/bit S_min=7.66576 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.4997732(92), target 2.49989 caldac[0] gain=-9.23(12)e-6 V/bit S_min=17.2071 dof=14 caldac[2] gain=1.51116(12)e-3 V/bit S_min=184.828 dof=14 caldac[3] gain=3.086(12)e-5 V/bit S_min=27.1628 dof=14 caldac[4] gain=1.9403(12)e-4 V/bit S_min=114.247 dof=14 caldac[5] gain=4.25(12)e-6 V/bit S_min=8.26075 dof=14 caldac[16] gain=6.791(12)e-5 V/bit S_min=15.9892 dof=14 caldac[17] gain=-9.846(12)e-5 V/bit S_min=20.8168 dof=14 caldac[18] gain=-4.05(12)e-6 V/bit S_min=2.05861 dof=14 caldac[19] gain=-4.729(12)e-5 V/bit S_min=24.0197 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 1.729(70)e-4, target 0.00015259 caldac[0] gain=-8.12(12)e-6 V/bit S_min=7.8551 dof=14 caldac[2] gain=1.51032(12)e-3 V/bit S_min=211.483 dof=14 caldac[3] gain=3.009(12)e-5 V/bit S_min=7.33812 dof=14 caldac[20] gain=6.047(12)e-5 V/bit S_min=3.39682 dof=14 caldac[23] gain=-4.576(12)e-5 V/bit S_min=9.37267 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.9998865(85), target 4.99992 caldac[0] gain=-8.74(12)e-6 V/bit S_min=6.3704 dof=14 caldac[2] gain=1.51058(12)e-3 V/bit S_min=204.776 dof=14 caldac[3] gain=3.036(12)e-5 V/bit S_min=6.58449 dof=14 caldac[4] gain=3.8722(12)e-4 V/bit S_min=249.648 dof=14 caldac[5] gain=8.01(12)e-6 V/bit S_min=12.6935 dof=14 caldac[20] gain=7.208(12)e-5 V/bit S_min=10.2734 dof=14 caldac[21] gain=-1.9541(12)e-4 V/bit S_min=14.4007 dof=14 caldac[22] gain=-7.75(12)e-6 V/bit S_min=6.23702 dof=14 caldac[23] gain=-4.719(12)e-5 V/bit S_min=8.90949 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 2.4998030(94), target 2.49989 caldac[0] gain=-9.24(12)e-6 V/bit S_min=10.436 dof=14 caldac[2] gain=1.51107(12)e-3 V/bit S_min=190.507 dof=14 caldac[3] gain=3.098(12)e-5 V/bit S_min=19.4883 dof=14 caldac[4] gain=1.9402(12)e-4 V/bit S_min=118.029 dof=14 caldac[5] gain=4.44(12)e-6 V/bit S_min=12.7197 dof=14 caldac[20] gain=6.780(12)e-5 V/bit S_min=25.1694 dof=14 caldac[21] gain=-9.847(12)e-5 V/bit S_min=21.0758 dof=14 caldac[22] gain=-3.85(12)e-6 V/bit S_min=4.06931 dof=14 caldac[23] gain=-4.732(12)e-5 V/bit S_min=25.8348 dof=14 ao 0, unipolar zero offset, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading -3.49(81)e-5, target 0 caldac[0] gain=-8.16(11)e-6 V/bit S_min=10.3392 dof=14 caldac[2] gain=1.51033(12)e-3 V/bit S_min=225.781 dof=14 caldac[3] gain=3.008(12)e-5 V/bit S_min=5.71954 dof=14 caldac[16] gain=2.066(12)e-5 V/bit S_min=10.5328 dof=14 caldac[19] gain=-2.205(12)e-5 V/bit S_min=9.06023 dof=14 ao 0, unipolar high, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 9.0000644(87), target 9.00008 caldac[0] gain=-8.05(12)e-6 V/bit S_min=1.00629 dof=14 caldac[2] gain=1.51011(12)e-3 V/bit S_min=211.349 dof=14 caldac[3] gain=2.993(12)e-5 V/bit S_min=3.5504 dof=14 caldac[4] gain=6.9706(12)e-4 V/bit S_min=897.848 dof=14 caldac[5] gain=1.382(12)e-5 V/bit S_min=2.19078 dof=14 caldac[16] gain=4.096(12)e-5 V/bit S_min=2.63364 dof=14 caldac[17] gain=-3.5177(12)e-4 V/bit S_min=36.6138 dof=14 caldac[18] gain=-1.394(12)e-5 V/bit S_min=6.23585 dof=14 caldac[19] gain=-2.392(12)e-5 V/bit S_min=3.22514 dof=14 ao 0, unipolar linearity (low), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 0.9999911(86), target 1.00008 caldac[0] gain=-8.20(12)e-6 V/bit S_min=2.39163 dof=14 caldac[2] gain=1.51008(12)e-3 V/bit S_min=225.515 dof=14 caldac[3] gain=2.993(12)e-5 V/bit S_min=2.07969 dof=14 caldac[4] gain=7.724(12)e-5 V/bit S_min=17.7127 dof=14 caldac[5] gain=1.53(12)e-6 V/bit S_min=0.977303 dof=14 caldac[16] gain=2.535(12)e-5 V/bit S_min=1.29985 dof=14 caldac[17] gain=-3.892(12)e-5 V/bit S_min=7.38861 dof=14 caldac[18] gain=-1.49(12)e-6 V/bit S_min=0.948021 dof=14 caldac[19] gain=-2.246(12)e-5 V/bit S_min=2.52109 dof=14 ao 0, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.9999613(84), target 5.00008 caldac[0] gain=-8.65(12)e-6 V/bit S_min=8.3377 dof=14 caldac[2] gain=1.51048(12)e-3 V/bit S_min=225.451 dof=14 caldac[3] gain=3.032(12)e-5 V/bit S_min=5.11435 dof=14 caldac[4] gain=3.8738(12)e-4 V/bit S_min=267.703 dof=14 caldac[5] gain=8.13(12)e-6 V/bit S_min=12.766 dof=14 caldac[16] gain=3.060(12)e-5 V/bit S_min=6.47541 dof=14 caldac[17] gain=-1.9539(12)e-4 V/bit S_min=9.27436 dof=14 caldac[18] gain=-8.27(12)e-6 V/bit S_min=4.48608 dof=14 caldac[19] gain=-2.324(12)e-5 V/bit S_min=7.43214 dof=14 ao 1, unipolar zero offset, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.6(78)e-6, target 0 caldac[0] gain=-8.23(11)e-6 V/bit S_min=10.4753 dof=14 caldac[2] gain=1.51032(12)e-3 V/bit S_min=207.999 dof=14 caldac[3] gain=3.009(12)e-5 V/bit S_min=3.75031 dof=14 caldac[20] gain=2.061(12)e-5 V/bit S_min=7.83482 dof=14 caldac[23] gain=-2.204(12)e-5 V/bit S_min=5.95498 dof=14 ao 1, unipolar high, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 9.0000200(87), target 9.00008 caldac[0] gain=-7.87(12)e-6 V/bit S_min=2.36644 dof=14 caldac[2] gain=1.51017(12)e-3 V/bit S_min=224.804 dof=14 caldac[3] gain=3.001(12)e-5 V/bit S_min=2.94806 dof=14 caldac[4] gain=6.9704(12)e-4 V/bit S_min=950.011 dof=14 caldac[5] gain=1.378(12)e-5 V/bit S_min=4.40255 dof=14 caldac[20] gain=4.088(12)e-5 V/bit S_min=5.92164 dof=14 caldac[21] gain=-3.5165(12)e-4 V/bit S_min=29.019 dof=14 caldac[22] gain=-1.387(12)e-5 V/bit S_min=2.35465 dof=14 caldac[23] gain=-2.399(12)e-5 V/bit S_min=3.46704 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/DAQCard-6062E0000644000000000000000000000755212416542124020160 00000000000000Warning: device may not be not fully calibrated due to insufficient information. Please send this output to . This output will also allow comedi_calibrate to execute more quickly in the future.Id: comedi_calibrate.c,v 1.57 2003/04/27 18:13:39 fmhess Exp Driver name: ni_mio_cs Device name: DAQCard-6062E Id: ni.c,v 1.58 2003/04/26 22:24:37 fmhess Exp Comedi version: 0.7.66 ai, bipolar zero offset, low gain failed to apply calibration for subdev 0, channel 0, range 0, aref 3 reading 7.71(24)e-3, target 0 caldac[2] gain=-7.5594(23)e-4 V/bit S_min=3064.85 dof=254 caldac[4] gain=-7.5487(23)e-4 V/bit S_min=2558.78 dof=254 caldac[8] gain=-1.347(23)e-5 V/bit S_min=269.064 dof=254 ai, bipolar zero offset, high gain failed to apply calibration for subdev 0, channel 0, range 7, aref 3 reading 2.873(23)e-4, target 0 caldac[0] gain=-9.6(17)e-9 V/bit S_min=247.556 dof=254 caldac[2] gain=-3.8222(17)e-6 V/bit S_min=2184.5 dof=254 caldac[4] gain=-3.8155(17)e-6 V/bit S_min=1260.66 dof=254 caldac[8] gain=-1.38446(17)e-5 V/bit S_min=965.565 dof=254 caldac[9] gain=-1.00(17)e-8 V/bit S_min=250.754 dof=254 caldac[11] gain=-1.56(17)e-8 V/bit S_min=240.693 dof=254 ai, bipolar voltage reference, low gain failed to apply calibration for subdev 0, channel 5, range 0, aref 3 reading 5.00530(24), target 5 caldac[2] gain=-1.15094(22)e-3 V/bit S_min=2551.54 dof=254 caldac[4] gain=-7.6235(22)e-4 V/bit S_min=1250.06 dof=254 caldac[8] gain=-1.257(20)e-5 V/bit S_min=250.262 dof=254 ai, unipolar zero offset, low gain failed to apply calibration for subdev 0, channel 0, range 8, aref 3 reading 0.02740(27), target 0 caldac[2] gain=-2.03(22)e-6 V/bit S_min=217.912 dof=254 caldac[4] gain=-7.4215(47)e-4 V/bit S_min=443.929 dof=152 caldac[7] gain=-3.6721(36)e-4 V/bit S_min=320.056 dof=180 caldac[8] gain=-1.336(22)e-5 V/bit S_min=236.14 dof=254 ao 0, zero offset, low gain failed to apply calibration for subdev 1, channel 0, range 0, aref 0 failed to apply calibration for subdev 0, channel 2, range 0, aref 3 reading 6.37(28)e-3, target 0.002442 caldac[2] gain=-7.5509(22)e-4 V/bit S_min=2962.2 dof=254 caldac[4] gain=-7.5457(22)e-4 V/bit S_min=2498.59 dof=254 caldac[6] gain=-7.6321(22)e-4 V/bit S_min=2476.93 dof=254 caldac[8] gain=-1.347(22)e-5 V/bit S_min=237.534 dof=254 caldac[10] gain=-1.0553(21)e-4 V/bit S_min=1724.72 dof=254 ao 0, reference voltage, low gain failed to apply calibration for subdev 1, channel 0, range 0, aref 0 failed to apply calibration for subdev 0, channel 6, range 0, aref 3 reading 5.0(27)e-4, target -0.001221 caldac[2] gain=-7.5523(23)e-4 V/bit S_min=3143.56 dof=254 caldac[4] gain=-7.5514(23)e-4 V/bit S_min=2587.66 dof=254 caldac[6] gain=-7.6303(23)e-4 V/bit S_min=2458.61 dof=254 caldac[8] gain=-1.154(20)e-5 V/bit S_min=260.382 dof=254 caldac[10] gain=-1.7793(22)e-4 V/bit S_min=1740.78 dof=254 caldac[11] gain=-1.0584(21)e-4 V/bit S_min=1720.36 dof=254 ao 1, zero offset, low gain failed to apply calibration for subdev 1, channel 1, range 0, aref 0 failed to apply calibration for subdev 0, channel 3, range 0, aref 3 reading 0.01404(29), target 0.002442 caldac[1] gain=-1.1475(23)e-4 V/bit S_min=244.77 dof=254 caldac[2] gain=-7.5724(22)e-4 V/bit S_min=3485.32 dof=254 caldac[4] gain=-7.5504(23)e-4 V/bit S_min=2475.87 dof=254 caldac[8] gain=-1.366(23)e-5 V/bit S_min=302.974 dof=254 caldac[9] gain=-7.5480(22)e-4 V/bit S_min=2712.43 dof=254 ao 1, reference voltage, low gain failed to apply calibration for subdev 1, channel 1, range 0, aref 0 failed to apply calibration for subdev 0, channel 7, range 0, aref 3 reading 0.01107(28), target -0.001221 caldac[1] gain=-1.8390(22)e-4 V/bit S_min=2598.99 dof=254 caldac[2] gain=-7.5662(23)e-4 V/bit S_min=3170.81 dof=254 caldac[4] gain=-7.5494(23)e-4 V/bit S_min=2534.66 dof=254 caldac[5] gain=-1.2041(22)e-4 V/bit S_min=768.036 dof=254 caldac[8] gain=-1.433(24)e-5 V/bit S_min=240.557 dof=254 caldac[9] gain=-7.5463(23)e-4 V/bit S_min=2621.58 dof=254 comedi_calibrate-5/comedi_calibrate/results/measurement-computing-pci-das60250000644000000000000000000001346512416542124024444 00000000000000eeprom ch 0x30 gives calibration source of 9.9777V eeprom ch 0x32 gives calibration source of 4.97028V eeprom ch 0x38 gives calibration source of 0.463091V eeprom ch 0x3e gives calibration source of 0.0485681V Id: comedi_calibrate.c,v 1.64 2003/05/01 14:43:50 fmhess Exp Driver name: cb_pcidas64 Device name: pci-das6025 Id: cb64.c,v 1.7 2003/04/30 20:30:04 fmhess Exp Comedi version: 0.7.66 calibration source 0, range 0, ground referenced failed to apply calibration for subdev 0, channel 0, range 0, aref 0 reading -8.28(30)e-3, target 0 caldac[4] gain=9.8517(22)e-4 V/bit S_min=2421.13 dof=254 caldac[5] gain=2.76621(22)e-3 V/bit S_min=3098.28 dof=254 caldac[6] gain=8.81(23)e-6 V/bit S_min=249.499 dof=254 caldac[7] gain=3.44(23)e-6 V/bit S_min=268.394 dof=254 calibration source 1, range 0, ground referenced failed to apply calibration for subdev 0, channel 0, range 0, aref 0 reading nan, target 9.9777 caldac[4] gain=1.00621(69)e-3 V/bit S_min=138.687 dof=119 caldac[5] gain=2.78213(66)e-3 V/bit S_min=555.324 dof=123 caldac[6] gain=-6.52450(63)e-3 V/bit S_min=50891.5 dof=125 caldac[7] gain=-2.48300(64)e-3 V/bit S_min=2471.53 dof=123 calibration source 0, range 1, ground referenced failed to apply calibration for subdev 0, channel 0, range 1, aref 0 reading -4.12(15)e-3, target 0 caldac[4] gain=5.9318(11)e-4 V/bit S_min=2742.78 dof=254 caldac[5] gain=1.65956(11)e-3 V/bit S_min=3163.35 dof=254 caldac[6] gain=5.21(12)e-6 V/bit S_min=231.738 dof=254 caldac[7] gain=1.97(12)e-6 V/bit S_min=246.474 dof=254 calibration source 2, range 1, ground referenced failed to apply calibration for subdev 0, channel 0, range 1, aref 0 reading 4.99260(19), target 4.97028 caldac[4] gain=6.0366(46)e-4 V/bit S_min=90.6616 dof=129 caldac[5] gain=1.66880(47)e-3 V/bit S_min=325.091 dof=127 caldac[6] gain=-3.26198(41)e-3 V/bit S_min=30321.5 dof=127 caldac[7] gain=-1.23988(44)e-3 V/bit S_min=1572.93 dof=128 calibration source 0, range 2, ground referenced failed to apply calibration for subdev 0, channel 0, range 2, aref 0 reading -1.707(13)e-3, target 0 caldac[4] gain=2.38478(11)e-4 V/bit S_min=2424.22 dof=254 caldac[5] gain=6.63634(11)e-4 V/bit S_min=8135.26 dof=254 caldac[6] gain=1.338(12)e-6 V/bit S_min=327.293 dof=254 caldac[7] gain=4.68(11)e-7 V/bit S_min=258.722 dof=254 calibration source 3, range 2, ground referenced failed to apply calibration for subdev 0, channel 0, range 2, aref 0 reading 0.462994(18), target 0.463091 caldac[4] gain=2.38853(13)e-4 V/bit S_min=1712.28 dof=254 caldac[5] gain=6.63761(21)e-4 V/bit S_min=4336.28 dof=181 caldac[6] gain=-3.24320(14)e-4 V/bit S_min=991382 dof=229 caldac[7] gain=-1.18641(12)e-4 V/bit S_min=30983.8 dof=254 calibration source 0, range 3, ground referenced failed to apply calibration for subdev 0, channel 0, range 3, aref 0 reading -5.17(16)e-5, target 0 caldac[1] gain=1.00(13)e-8 V/bit S_min=646.774 dof=254 caldac[2] gain=-5.6(13)e-9 V/bit S_min=491.365 dof=254 caldac[3] gain=5.4(13)e-9 V/bit S_min=537.052 dof=254 caldac[4] gain=2.38560(13)e-5 V/bit S_min=2286.72 dof=254 caldac[5] gain=6.63556(13)e-5 V/bit S_min=6145.89 dof=254 caldac[6] gain=6.15(13)e-8 V/bit S_min=612.86 dof=254 calibration source 4, range 3, ground referenced failed to apply calibration for subdev 0, channel 0, range 3, aref 0 reading 0.0485419(20), target 0.0485681 caldac[0] gain=-5.5(13)e-9 V/bit S_min=533.801 dof=254 caldac[1] gain=-1.32(13)e-8 V/bit S_min=730.851 dof=254 caldac[2] gain=-1.40(13)e-8 V/bit S_min=459.123 dof=254 caldac[3] gain=-1.80(13)e-8 V/bit S_min=432.132 dof=254 caldac[4] gain=2.39321(21)e-5 V/bit S_min=1136.91 dof=184 caldac[5] gain=6.63941(29)e-5 V/bit S_min=3831.79 dof=147 caldac[6] gain=-3.24996(24)e-5 V/bit S_min=154970 dof=166 caldac[7] gain=-1.23781(14)e-5 V/bit S_min=17985.1 dof=236 dac0 low, range 0, ground referenced failed to apply calibration for subdev 1, channel 0, range 0, aref 0 failed to apply calibration for subdev 0, channel 0, range 0, aref 0 reading -0.01996(24), target 0.002442 caldac[0] gain=2.22557(22)e-3 V/bit S_min=2531.06 dof=254 caldac[4] gain=9.8681(22)e-4 V/bit S_min=2614.4 dof=254 caldac[5] gain=2.76647(22)e-3 V/bit S_min=2818.05 dof=254 caldac[6] gain=1.665(22)e-5 V/bit S_min=289.052 dof=254 caldac[7] gain=5.68(22)e-6 V/bit S_min=236.398 dof=254 dac0 high, range 0, ground referenced failed to apply calibration for subdev 1, channel 0, range 0, aref 0 failed to apply calibration for subdev 0, channel 0, range 0, aref 0 reading 8.97734(25), target 8.99878 caldac[0] gain=2.22584(23)e-3 V/bit S_min=2618.77 dof=254 caldac[1] gain=7.7667(23)e-4 V/bit S_min=331.603 dof=254 caldac[4] gain=1.00107(23)e-3 V/bit S_min=747.153 dof=254 caldac[5] gain=2.76715(23)e-3 V/bit S_min=2526.4 dof=254 caldac[6] gain=-6.40118(23)e-3 V/bit S_min=1.79872e+06 dof=254 caldac[7] gain=-2.29151(23)e-3 V/bit S_min=40138.8 dof=254 dac1 low, range 0, ground referenced failed to apply calibration for subdev 1, channel 1, range 0, aref 0 failed to apply calibration for subdev 0, channel 0, range 0, aref 0 reading -4.08(24)e-3, target 0.002442 caldac[2] gain=2.22185(22)e-3 V/bit S_min=3310.56 dof=254 caldac[3] gain=-1.00(21)e-6 V/bit S_min=245.279 dof=254 caldac[4] gain=9.8518(22)e-4 V/bit S_min=2424.67 dof=254 caldac[5] gain=2.76653(22)e-3 V/bit S_min=3054.6 dof=254 caldac[6] gain=6.51(21)e-6 V/bit S_min=256.31 dof=254 caldac[7] gain=2.48(21)e-6 V/bit S_min=253.103 dof=254 dac1 high, range 0, ground referenced failed to apply calibration for subdev 1, channel 1, range 0, aref 0 failed to apply calibration for subdev 0, channel 0, range 0, aref 0 reading 8.99382(28), target 8.99878 caldac[2] gain=2.22274(22)e-3 V/bit S_min=2327.69 dof=254 caldac[3] gain=7.7525(23)e-4 V/bit S_min=344.764 dof=254 caldac[4] gain=9.9918(23)e-4 V/bit S_min=1062.15 dof=254 caldac[5] gain=2.76787(23)e-3 V/bit S_min=2693.25 dof=254 caldac[6] gain=-6.41290(23)e-3 V/bit S_min=1.79855e+06 dof=254 caldac[7] gain=-2.29682(23)e-3 V/bit S_min=40074 dof=254 comedi_calibrate-5/comedi_calibrate/results/pci-6032e0000644000000000000000000000624312416542124017565 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.36 2002/06/12 23:19:39 ds Exp Driver name: ni_pcimio Device name: pci-6032e Id: ni.c,v 1.30 2002/06/12 23:19:39 ds Exp Comedi version: 0.7.65 ai, bipolar zero offset, low gain offset -8.075(13)e-3, target 0 caldac[0] gain=5.9(11)e-8 V/bit S_min=251.379 dof=254 caldac[2] gain=4.02269(14)e-4 V/bit S_min=1845.55 dof=254 caldac[3] gain=4.022(12)e-6 V/bit S_min=307.957 dof=254 caldac[8] gain=4.8092(72)e-7 V/bit S_min=316.922 dof=254 ai, bipolar zero offset, high gain offset -3.5482(66)e-4, target 0 caldac[0] gain=2.78(61)e-9 V/bit S_min=277.89 dof=254 caldac[2] gain=4.02251(62)e-6 V/bit S_min=333.883 dof=254 caldac[3] gain=4.076(61)e-8 V/bit S_min=298.396 dof=254 caldac[8] gain=4.84152(39)e-7 V/bit S_min=385.006 dof=254 ai, bipolar voltage reference, low gain offset 4.992227(14), target 5 caldac[0] gain=-4.5355(12)e-5 V/bit S_min=1609.34 dof=254 caldac[1] gain=-2.618(12)e-6 V/bit S_min=280.945 dof=254 caldac[2] gain=4.02003(14)e-4 V/bit S_min=1629.05 dof=254 caldac[3] gain=4.060(12)e-6 V/bit S_min=344.287 dof=254 caldac[8] gain=4.8496(73)e-7 V/bit S_min=323.485 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[2] gain=4.02393(42)e-4 V/bit S_min=344.731 dof=104 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[2] gain=4.02298(14)e-4 V/bit S_min=1665.08 dof=254 caldac[2] gain=4.02136(62)e-6 V/bit S_min=428.218 dof=254 caldac[2] set to 147 (147.03) postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[3] gain=4.714(12)e-6 V/bit S_min=683.361 dof=254 caldac[3] gain=4.022(61)e-8 V/bit S_min=329.719 dof=254 caldac[3] set to 63 (62.5578) linear: ai, bipolar zero offset, high gain caldac[8] gain=4.84164(39)e-7 V/bit S_min=323.225 dof=254 caldac[8] set to 2619 (2619) linear: ai, bipolar voltage reference, low gain caldac[0] gain=-4.5615(12)e-5 V/bit S_min=2042.28 dof=254 caldac[0] set to 137 (136.679) linear: ai, bipolar voltage reference, low gain caldac[1] gain=-2.860(13)e-6 V/bit S_min=303.635 dof=254 caldac[1] set to 59 (58.6316) ai, bipolar zero offset, low gain offset 1.19(15)e-4, target 0 caldac[2] gain=4.02146(14)e-4 V/bit S_min=1748.84 dof=254 caldac[3] gain=4.340(12)e-6 V/bit S_min=530.678 dof=254 caldac[8] gain=5.2718(75)e-7 V/bit S_min=1011.83 dof=254 ai, bipolar zero offset, high gain offset 1.43(79)e-6, target 0 caldac[2] gain=4.02126(62)e-6 V/bit S_min=414.809 dof=254 caldac[3] gain=4.268(63)e-8 V/bit S_min=292.963 dof=254 caldac[8] gain=4.84038(39)e-7 V/bit S_min=296.355 dof=254 ai, bipolar voltage reference, low gain offset 4.999967(16), target 5 caldac[0] gain=-4.5591(12)e-5 V/bit S_min=1890.95 dof=254 caldac[1] gain=-2.875(13)e-6 V/bit S_min=297.895 dof=254 caldac[2] gain=4.01860(14)e-4 V/bit S_min=1444.87 dof=254 caldac[3] gain=4.299(12)e-6 V/bit S_min=290.844 dof=254 caldac[8] gain=5.1142(76)e-7 V/bit S_min=451.539 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[2] gain=4.02341(42)e-4 V/bit S_min=373.216 dof=104 caldac[3] gain=4.007(43)e-6 V/bit S_min=102.266 dof=74 caldac[8] gain=4.76(10)e-7 V/bit S_min=25.194 dof=29 comedi_calibrate-5/comedi_calibrate/results/pxi-6031e0000644000000000000000000004571312416542124017616 00000000000000WARNING: unknown eeprom address for reference voltage correction. This might be fixable if you send us an eeprom dump (see the demo/eeprom_dump program). Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.6 2006-11-28 14:09:15 fmhess Exp Driver name: ni_pcimio Device name: pxi-6031e Id: ni.c,v 1.5 2007-05-09 19:55:03 fmhess Exp Comedi version: 0.7.76 ai, bipolar zero offset, low gain reading 9.945(57)e-4, target 0 caldac[2] gain=4.01382(63)e-4 V/bit S_min=28.6958 dof=14 caldac[3] gain=4.055(66)e-6 V/bit S_min=1.93037 dof=14 caldac[8] gain=5.308(41)e-7 V/bit S_min=15.2687 dof=14 ai, bipolar zero offset, high gain reading 1.7672(20)e-4, target 0 caldac[2] gain=4.0090(26)e-6 V/bit S_min=4.38243 dof=14 caldac[3] gain=4.33(26)e-8 V/bit S_min=1.44187 dof=14 caldac[8] gain=5.2324(16)e-7 V/bit S_min=1.81399 dof=14 ai, bipolar voltage reference, low gain reading 5.0002760(45), target 5 caldac[0] gain=-4.5301(65)e-5 V/bit S_min=6.89026 dof=14 caldac[1] gain=-2.438(65)e-6 V/bit S_min=2.51629 dof=14 caldac[2] gain=4.00734(68)e-4 V/bit S_min=45.2982 dof=14 caldac[3] gain=4.022(66)e-6 V/bit S_min=1.77284 dof=14 caldac[8] gain=5.248(42)e-7 V/bit S_min=4.28056 dof=14 ai, unipolar zero offset, low gain reading 8.378(31)e-4, target 7.62951e-05 caldac[2] gain=1.88686(21)e-4 V/bit S_min=2.18204e+07 dof=14 caldac[3] gain=4.054(42)e-6 V/bit S_min=2.17055 dof=14 caldac[8] gain=4.906(23)e-7 V/bit S_min=387.875 dof=14 ai, unipolar zero offset, high gain reading 1.7442(18)e-4, target 7.62951e-07 caldac[2] gain=2.8400(16)e-6 V/bit S_min=309730 dof=14 caldac[3] gain=4.13(25)e-8 V/bit S_min=0.484346 dof=14 caldac[8] gain=3.01061(88)e-7 V/bit S_min=2.14449e+06 dof=14 ai, unipolar voltage reference, low gain reading 5.0000624(34), target 5 caldac[0] gain=-4.5492(44)e-5 V/bit S_min=12.0152 dof=14 caldac[1] gain=-2.753(45)e-6 V/bit S_min=2.56036 dof=14 caldac[2] gain=4.01081(43)e-4 V/bit S_min=29.8564 dof=14 caldac[3] gain=4.288(45)e-6 V/bit S_min=2.65274 dof=14 caldac[8] gain=5.374(27)e-7 V/bit S_min=9.82985 dof=14 ao 0, zero offset, low gain reading -2.9296(49)e-3, target 0.00015259 caldac[2] gain=4.01354(69)e-4 V/bit S_min=26.7424 dof=14 caldac[3] gain=4.030(69)e-6 V/bit S_min=2.62444 dof=14 caldac[6] gain=-7.8363(70)e-5 V/bit S_min=45.734 dof=14 caldac[8] gain=5.235(44)e-7 V/bit S_min=2.21192 dof=14 ao 0, reference voltage, low gain reading 7.9977335(60), target 8.00015 caldac[0] gain=-7.2554(73)e-5 V/bit S_min=17.2481 dof=14 caldac[1] gain=-4.462(76)e-6 V/bit S_min=4.92744 dof=14 caldac[2] gain=4.00992(73)e-4 V/bit S_min=30.1321 dof=14 caldac[3] gain=4.340(76)e-6 V/bit S_min=6.40986 dof=14 caldac[4] gain=5.9743(74)e-5 V/bit S_min=18.1659 dof=14 caldac[6] gain=-7.7956(75)e-5 V/bit S_min=22.6724 dof=14 caldac[8] gain=5.396(46)e-7 V/bit S_min=11.0981 dof=14 ao 0, linearity (mid), low gain reading 3.9974858(52), target 4.00015 caldac[0] gain=-3.6085(73)e-5 V/bit S_min=14.1841 dof=14 caldac[1] gain=-2.118(71)e-6 V/bit S_min=0.554368 dof=14 caldac[2] gain=4.01014(73)e-4 V/bit S_min=24.5095 dof=14 caldac[3] gain=4.079(71)e-6 V/bit S_min=1.86771 dof=14 caldac[4] gain=2.9706(69)e-5 V/bit S_min=15.5323 dof=14 caldac[6] gain=-7.8092(72)e-5 V/bit S_min=17.7853 dof=14 caldac[8] gain=5.244(44)e-7 V/bit S_min=3.15256 dof=14 ao 1, zero offset, low gain reading -3.1212(51)e-3, target 0.00015259 caldac[2] gain=4.01292(69)e-4 V/bit S_min=36.7283 dof=14 caldac[3] gain=4.149(70)e-6 V/bit S_min=1.2375 dof=14 caldac[7] gain=-7.8225(71)e-5 V/bit S_min=50.1043 dof=14 caldac[8] gain=5.173(44)e-7 V/bit S_min=2.03859 dof=14 ao 1, reference voltage, low gain reading 7.9976930(56), target 8.00015 caldac[0] gain=-7.2530(73)e-5 V/bit S_min=16.2054 dof=14 caldac[1] gain=-4.387(76)e-6 V/bit S_min=8.08248 dof=14 caldac[2] gain=4.01007(73)e-4 V/bit S_min=28.6376 dof=14 caldac[3] gain=4.291(75)e-6 V/bit S_min=5.33797 dof=14 caldac[5] gain=5.9663(74)e-5 V/bit S_min=24.9281 dof=14 caldac[7] gain=-7.7872(75)e-5 V/bit S_min=18.3918 dof=14 caldac[8] gain=5.436(46)e-7 V/bit S_min=9.40051 dof=14 ao 1, linearity (mid), low gain reading 3.9974641(55), target 4.00015 caldac[0] gain=-3.6079(72)e-5 V/bit S_min=21.2798 dof=14 caldac[1] gain=-2.115(71)e-6 V/bit S_min=0.650991 dof=14 caldac[2] gain=4.00980(72)e-4 V/bit S_min=22.3354 dof=14 caldac[3] gain=4.085(70)e-6 V/bit S_min=2.92796 dof=14 caldac[5] gain=2.9705(71)e-5 V/bit S_min=20.4335 dof=14 caldac[7] gain=-7.8017(72)e-5 V/bit S_min=17.9346 dof=14 caldac[8] gain=5.247(44)e-7 V/bit S_min=3.52127 dof=14 ao 0, unipolar zero offset, low gain reading 1.1274(47)e-3, target 0 caldac[2] gain=4.01356(66)e-4 V/bit S_min=29.8836 dof=14 caldac[3] gain=4.016(67)e-6 V/bit S_min=3.11494 dof=14 caldac[6] gain=-7.8191(64)e-5 V/bit S_min=46.9251 dof=14 caldac[8] gain=5.264(42)e-7 V/bit S_min=6.27703 dof=14 ao 0, unipolar high, low gain reading 8.9991795(53), target 9.00008 caldac[0] gain=-8.1757(71)e-5 V/bit S_min=24.3302 dof=14 caldac[1] gain=-4.496(68)e-6 V/bit S_min=22.0263 dof=14 caldac[2] gain=4.00912(69)e-4 V/bit S_min=29.1851 dof=14 caldac[3] gain=3.716(67)e-6 V/bit S_min=9.92087 dof=14 caldac[4] gain=6.7469(69)e-5 V/bit S_min=26.9402 dof=14 caldac[6] gain=-7.7902(68)e-5 V/bit S_min=21.3211 dof=14 caldac[8] gain=5.123(43)e-7 V/bit S_min=8.0226 dof=14 ao 0, unipolar linearity (low), low gain reading 1.0008768(40), target 1.00008 caldac[0] gain=-8.777(65)e-6 V/bit S_min=14.6487 dof=14 caldac[1] gain=-3.38(52)e-7 V/bit S_min=1.29181 dof=14 caldac[2] gain=4.01089(68)e-4 V/bit S_min=47.1155 dof=14 caldac[3] gain=3.714(64)e-6 V/bit S_min=14.4933 dof=14 caldac[4] gain=7.216(66)e-6 V/bit S_min=13.6438 dof=14 caldac[6] gain=-7.7947(64)e-5 V/bit S_min=27.4874 dof=14 caldac[8] gain=5.081(41)e-7 V/bit S_min=15.4799 dof=14 ao 0, unipolar linearity (mid), low gain reading 5.0001243(50), target 5.00008 caldac[0] gain=-4.5289(67)e-5 V/bit S_min=15.5837 dof=14 caldac[1] gain=-2.519(68)e-6 V/bit S_min=3.5988 dof=14 caldac[2] gain=4.00674(68)e-4 V/bit S_min=49.3057 dof=14 caldac[3] gain=4.052(68)e-6 V/bit S_min=6.05919 dof=14 caldac[4] gain=3.7396(69)e-5 V/bit S_min=3.92134 dof=14 caldac[6] gain=-7.7533(65)e-5 V/bit S_min=26.1862 dof=14 caldac[8] gain=5.267(42)e-7 V/bit S_min=6.94104 dof=14 ao 1, unipolar zero offset, low gain reading 1.1954(50)e-3, target 0 caldac[2] gain=4.01411(67)e-4 V/bit S_min=38.5676 dof=14 caldac[3] gain=4.008(66)e-6 V/bit S_min=2.70321 dof=14 caldac[7] gain=-7.7973(66)e-5 V/bit S_min=38.6439 dof=14 caldac[8] gain=5.278(42)e-7 V/bit S_min=3.83205 dof=14 ao 1, unipolar high, low gain reading 8.9995470(51), target 9.00008 caldac[0] gain=-8.1802(70)e-5 V/bit S_min=13.1843 dof=14 caldac[1] gain=-4.766(69)e-6 V/bit S_min=5.69176 dof=14 caldac[2] gain=4.00953(70)e-4 V/bit S_min=28.7618 dof=14 caldac[3] gain=4.124(69)e-6 V/bit S_min=6.12188 dof=14 caldac[5] gain=6.7279(71)e-5 V/bit S_min=27.3055 dof=14 caldac[7] gain=-7.7996(70)e-5 V/bit S_min=24.0927 dof=14 caldac[8] gain=5.050(43)e-7 V/bit S_min=18.296 dof=14 ao 1, unipolar linearity (low), low gain reading 1.0009760(50), target 1.00008 caldac[0] gain=-8.799(65)e-6 V/bit S_min=15.9709 dof=14 caldac[1] gain=-4.60(68)e-7 V/bit S_min=1.24509 dof=14 caldac[2] gain=4.00907(64)e-4 V/bit S_min=32.0612 dof=14 caldac[3] gain=3.790(64)e-6 V/bit S_min=13.6179 dof=14 caldac[5] gain=7.234(66)e-6 V/bit S_min=16.8894 dof=14 caldac[7] gain=-7.7894(65)e-5 V/bit S_min=28.7515 dof=14 caldac[8] gain=5.079(41)e-7 V/bit S_min=13.3899 dof=14 ao 1, unipolar linearity (mid), low gain reading 5.0003511(51), target 5.00008 caldac[0] gain=-4.5327(67)e-5 V/bit S_min=14.732 dof=14 caldac[1] gain=-2.509(66)e-6 V/bit S_min=3.64798 dof=14 caldac[2] gain=4.00732(69)e-4 V/bit S_min=35.3056 dof=14 caldac[3] gain=3.957(67)e-6 V/bit S_min=3.4501 dof=14 caldac[5] gain=3.7393(69)e-5 V/bit S_min=3.50061 dof=14 caldac[7] gain=-7.7576(69)e-5 V/bit S_min=20.418 dof=14 caldac[8] gain=5.239(42)e-7 V/bit S_min=5.7346 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[0] set to 110 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[2] set to 125 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[3] set to 113 binary: ai, bipolar zero offset, high gain caldac[8] set to 1727 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[1] set to 153 binary peg: ai, unipolar zero offset, low gain caldac[8] set to 4095 binary peg: ai, unipolar zero offset, low gain caldac[2] set to 255 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[0] set to 112 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[2] set to 125 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[3] set to 180 binary: ai, unipolar zero offset, high gain caldac[8] set to 1716 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[1] set to 122 binary: ao 0, zero offset, low gain caldac[6] set to 75 binary: ao 0, reference voltage, low gain caldac[4] set to 97 binary: ao 0, unipolar zero offset, low gain caldac[6] set to 127 binary: ao 0, unipolar high, low gain caldac[4] set to 137 binary: ao 1, zero offset, low gain caldac[7] set to 73 binary: ao 1, reference voltage, low gain caldac[5] set to 95 binary: ao 1, unipolar zero offset, low gain caldac[7] set to 129 binary: ao 1, unipolar high, low gain caldac[5] set to 133 ai, bipolar zero offset, low gain Applied calibration for subdev 0, channel 0, range 0, aref 3 reading -2.09(54)e-5, target 0 caldac[2] gain=4.01402(65)e-4 V/bit S_min=26.2742 dof=14 caldac[3] gain=4.596(68)e-6 V/bit S_min=5.7925 dof=14 caldac[8] gain=5.546(42)e-7 V/bit S_min=17.6787 dof=14 ai, bipolar zero offset, high gain Applied calibration for subdev 0, channel 0, range 6, aref 3 reading 5.5(20)e-7, target 0 caldac[2] gain=4.0123(26)e-6 V/bit S_min=1.86811 dof=14 caldac[3] gain=4.25(28)e-8 V/bit S_min=0.722009 dof=14 caldac[8] gain=5.2336(16)e-7 V/bit S_min=2.55373 dof=14 ai, bipolar voltage reference, low gain Applied calibration for subdev 0, channel 5, range 0, aref 3 reading 4.9999911(52), target 5 caldac[0] gain=-4.5178(66)e-5 V/bit S_min=20.1461 dof=14 caldac[1] gain=-2.694(68)e-6 V/bit S_min=2.68948 dof=14 caldac[2] gain=4.00787(64)e-4 V/bit S_min=57.1207 dof=14 caldac[3] gain=4.170(67)e-6 V/bit S_min=2.16908 dof=14 caldac[8] gain=5.249(42)e-7 V/bit S_min=3.6507 dof=14 ai, unipolar zero offset, low gain Applied calibration for subdev 0, channel 0, range 7, aref 3 reading 8.33(27)e-5, target 7.62951e-05 caldac[2] gain=1.88933(21)e-4 V/bit S_min=2.30061e+07 dof=14 caldac[3] gain=1.117(15)e-6 V/bit S_min=2885.64 dof=14 caldac[8] gain=3.240(15)e-7 V/bit S_min=6346 dof=14 ai, unipolar zero offset, high gain Applied calibration for subdev 0, channel 0, range 13, aref 3 reading 7.54(59)e-7, target 7.62951e-07 caldac[2] gain=1.8598(12)e-6 V/bit S_min=667774 dof=14 caldac[3] gain=6.00(59)e-9 V/bit S_min=18.5946 dof=14 caldac[8] gain=2.98967(87)e-7 V/bit S_min=2.17727e+06 dof=14 ai, unipolar voltage reference, low gain Applied calibration for subdev 0, channel 5, range 7, aref 3 reading 4.9999981(35), target 5 caldac[0] gain=-4.5497(44)e-5 V/bit S_min=17.4085 dof=14 caldac[1] gain=-2.769(46)e-6 V/bit S_min=1.62595 dof=14 caldac[2] gain=4.01052(43)e-4 V/bit S_min=27.1225 dof=14 caldac[3] gain=4.238(44)e-6 V/bit S_min=6.62735 dof=14 caldac[8] gain=5.360(27)e-7 V/bit S_min=5.90974 dof=14 ao 0, zero offset, low gain Applied calibration for subdev 1, channel 0, range 0, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.053(58)e-4, target 0.00015259 caldac[2] gain=4.01383(69)e-4 V/bit S_min=25.3197 dof=14 caldac[3] gain=4.497(73)e-6 V/bit S_min=6.4748 dof=14 caldac[6] gain=-7.8264(69)e-5 V/bit S_min=41.0073 dof=14 caldac[8] gain=5.194(44)e-7 V/bit S_min=2.73442 dof=14 ao 0, reference voltage, low gain Applied calibration for subdev 1, channel 0, range 0, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.000305(12), target 8.00015 caldac[0] gain=-7.2506(73)e-5 V/bit S_min=15.2347 dof=14 caldac[1] gain=-4.157(71)e-6 V/bit S_min=3.30324 dof=14 caldac[2] gain=4.00951(74)e-4 V/bit S_min=22.4134 dof=14 caldac[3] gain=4.045(72)e-6 V/bit S_min=3.84166 dof=14 caldac[4] gain=5.9804(72)e-5 V/bit S_min=31.297 dof=14 caldac[6] gain=-7.8012(73)e-5 V/bit S_min=18.7041 dof=14 caldac[8] gain=5.305(46)e-7 V/bit S_min=6.0473 dof=14 ao 0, linearity (mid), low gain Applied calibration for subdev 1, channel 0, range 0, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.0002193(85), target 4.00015 caldac[0] gain=-3.6051(70)e-5 V/bit S_min=7.33247 dof=14 caldac[1] gain=-1.922(69)e-6 V/bit S_min=1.0362 dof=14 caldac[2] gain=4.00958(70)e-4 V/bit S_min=26.4949 dof=14 caldac[3] gain=4.037(71)e-6 V/bit S_min=1.93571 dof=14 caldac[4] gain=2.9778(70)e-5 V/bit S_min=12.1743 dof=14 caldac[6] gain=-7.8025(71)e-5 V/bit S_min=19.6277 dof=14 caldac[8] gain=5.219(44)e-7 V/bit S_min=2.85522 dof=14 ao 1, zero offset, low gain Applied calibration for subdev 1, channel 1, range 0, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading -1.07(19)e-4, target 0.00015259 caldac[2] gain=4.01358(68)e-4 V/bit S_min=23.8614 dof=14 caldac[3] gain=4.517(73)e-6 V/bit S_min=6.1614 dof=14 caldac[7] gain=-7.8093(69)e-5 V/bit S_min=32.8463 dof=14 caldac[8] gain=5.201(44)e-7 V/bit S_min=1.09188 dof=14 ao 1, reference voltage, low gain Applied calibration for subdev 1, channel 1, range 0, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 7.999918(18), target 8.00015 caldac[0] gain=-7.2621(73)e-5 V/bit S_min=20.3943 dof=14 caldac[1] gain=-4.084(72)e-6 V/bit S_min=5.41681 dof=14 caldac[2] gain=4.00923(73)e-4 V/bit S_min=25.7198 dof=14 caldac[3] gain=4.064(70)e-6 V/bit S_min=3.3051 dof=14 caldac[5] gain=5.9869(73)e-5 V/bit S_min=26.8403 dof=14 caldac[7] gain=-7.7857(74)e-5 V/bit S_min=31.1603 dof=14 caldac[8] gain=5.422(46)e-7 V/bit S_min=5.47509 dof=14 ao 1, linearity (mid), low gain Applied calibration for subdev 1, channel 1, range 0, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.999970(18), target 4.00015 caldac[0] gain=-3.6132(70)e-5 V/bit S_min=12.6618 dof=14 caldac[1] gain=-1.981(69)e-6 V/bit S_min=1.78871 dof=14 caldac[2] gain=4.01010(70)e-4 V/bit S_min=28.6928 dof=14 caldac[3] gain=3.964(70)e-6 V/bit S_min=5.87114 dof=14 caldac[5] gain=2.9826(70)e-5 V/bit S_min=26.6261 dof=14 caldac[7] gain=-7.7980(72)e-5 V/bit S_min=26.1865 dof=14 caldac[8] gain=5.259(43)e-7 V/bit S_min=3.74377 dof=14 ao 0, unipolar zero offset, low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 9.95(58)e-5, target 0 caldac[2] gain=4.01401(67)e-4 V/bit S_min=28.1195 dof=14 caldac[3] gain=4.550(70)e-6 V/bit S_min=5.49491 dof=14 caldac[6] gain=-7.8262(66)e-5 V/bit S_min=49.1861 dof=14 caldac[8] gain=5.492(43)e-7 V/bit S_min=20.5801 dof=14 ao 0, unipolar high, low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 9.0001389(55), target 9.00008 caldac[0] gain=-8.1805(71)e-5 V/bit S_min=24.1461 dof=14 caldac[1] gain=-4.673(70)e-6 V/bit S_min=3.02086 dof=14 caldac[2] gain=4.00781(71)e-4 V/bit S_min=25.7988 dof=14 caldac[3] gain=4.056(69)e-6 V/bit S_min=2.8896 dof=14 caldac[4] gain=6.7413(70)e-5 V/bit S_min=36.9809 dof=14 caldac[6] gain=-7.7827(67)e-5 V/bit S_min=32.3235 dof=14 caldac[8] gain=5.276(43)e-7 V/bit S_min=1.98052 dof=14 ao 0, unipolar linearity (low), low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.0001338(53), target 1.00008 caldac[0] gain=-8.915(65)e-6 V/bit S_min=14.4521 dof=14 caldac[1] gain=-5.68(68)e-7 V/bit S_min=0.683957 dof=14 caldac[2] gain=4.01037(68)e-4 V/bit S_min=43.2081 dof=14 caldac[3] gain=4.129(67)e-6 V/bit S_min=3.07443 dof=14 caldac[4] gain=7.260(65)e-6 V/bit S_min=17.6442 dof=14 caldac[6] gain=-7.8069(66)e-5 V/bit S_min=21.7994 dof=14 caldac[8] gain=5.057(40)e-7 V/bit S_min=17.0815 dof=14 ao 0, unipolar linearity (mid), low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 5.0001892(50), target 5.00008 caldac[0] gain=-4.5236(68)e-5 V/bit S_min=14.5821 dof=14 caldac[1] gain=-2.557(68)e-6 V/bit S_min=3.56111 dof=14 caldac[2] gain=4.00853(69)e-4 V/bit S_min=47.6552 dof=14 caldac[3] gain=4.026(67)e-6 V/bit S_min=3.15633 dof=14 caldac[4] gain=3.7441(69)e-5 V/bit S_min=3.90474 dof=14 caldac[6] gain=-7.7764(68)e-5 V/bit S_min=16.0782 dof=14 caldac[8] gain=5.182(43)e-7 V/bit S_min=3.46274 dof=14 ao 1, unipolar zero offset, low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.52(56)e-5, target 0 caldac[2] gain=4.01399(66)e-4 V/bit S_min=24.8318 dof=14 caldac[3] gain=4.575(69)e-6 V/bit S_min=5.91277 dof=14 caldac[7] gain=-7.8137(65)e-5 V/bit S_min=55.9829 dof=14 caldac[8] gain=5.549(42)e-7 V/bit S_min=19.6859 dof=14 ao 1, unipolar high, low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 9.0000489(55), target 9.00008 caldac[0] gain=-8.1760(70)e-5 V/bit S_min=25.4892 dof=14 caldac[1] gain=-4.641(70)e-6 V/bit S_min=6.98324 dof=14 caldac[2] gain=4.00829(69)e-4 V/bit S_min=27.7402 dof=14 caldac[3] gain=4.010(69)e-6 V/bit S_min=3.23747 dof=14 caldac[5] gain=6.7253(69)e-5 V/bit S_min=17.9419 dof=14 caldac[7] gain=-7.7671(67)e-5 V/bit S_min=28.814 dof=14 caldac[8] gain=5.281(44)e-7 V/bit S_min=4.83217 dof=14 ao 1, unipolar linearity (low), low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 1.0000873(54), target 1.00008 caldac[0] gain=-8.882(65)e-6 V/bit S_min=11.7348 dof=14 caldac[1] gain=-6.21(68)e-7 V/bit S_min=0.760559 dof=14 caldac[2] gain=4.01025(65)e-4 V/bit S_min=40.203 dof=14 caldac[3] gain=4.104(67)e-6 V/bit S_min=1.06942 dof=14 caldac[5] gain=7.258(66)e-6 V/bit S_min=17.8213 dof=14 caldac[7] gain=-7.8021(67)e-5 V/bit S_min=18.5284 dof=14 caldac[8] gain=5.074(41)e-7 V/bit S_min=12.3836 dof=14 ao 1, unipolar linearity (mid), low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 5.0001386(53), target 5.00008 caldac[0] gain=-4.5242(68)e-5 V/bit S_min=20.2983 dof=14 caldac[1] gain=-2.608(68)e-6 V/bit S_min=3.82895 dof=14 caldac[2] gain=4.00816(68)e-4 V/bit S_min=44.5175 dof=14 caldac[3] gain=4.128(67)e-6 V/bit S_min=3.12478 dof=14 caldac[5] gain=3.7357(69)e-5 V/bit S_min=3.96707 dof=14 caldac[7] gain=-7.7615(68)e-5 V/bit S_min=12.8135 dof=14 caldac[8] gain=5.203(43)e-7 V/bit S_min=4.76815 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 3 comedi_calibrate-5/comedi_calibrate/results/at-mio-16e-100000644000000000000000000004265612416542124020262 00000000000000eeprom reference lsb=134 msb=255 resulting reference voltage: 4.99988 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_atmio Device name: at-mio-16e-10 Id: ni.c,v 1.112 2004/05/12 01:08:49 fmhess Exp Comedi version: 0.7.68 ai, bipolar zero offset, low gain reading -0.04216(10), target 0 caldac[0] gain=-6.27(15)e-5 V/bit S_min=0.839148 dof=14 caldac[4] gain=-7.697(15)e-4 V/bit S_min=1.76983 dof=14 ai, bipolar zero offset, high gain reading -5.6338(64)e-4, target 0 caldac[0] gain=-6.28521(84)e-5 V/bit S_min=286.119 dof=14 caldac[4] gain=-3.8589(85)e-6 V/bit S_min=2.15162 dof=14 caldac[8] gain=-1.3014(85)e-6 V/bit S_min=1.11977 dof=14 ai, bipolar voltage reference, low gain reading 4.95955(10), target 4.99988 caldac[0] gain=-6.26(15)e-5 V/bit S_min=0.681492 dof=14 caldac[2] gain=-3.305(15)e-4 V/bit S_min=3.45267 dof=14 caldac[4] gain=-7.712(15)e-4 V/bit S_min=1.78521 dof=14 ai, unipolar zero offset, low gain reading 0.0( 0)e-2147483648, target 0.002442 caldac[2] gain=7.899(33)e-5 V/bit S_min=77065.3 dof=14 caldac[4] gain=-1.7730(46)e-4 V/bit S_min=108363 dof=14 caldac[7] gain=-1.6735(47)e-4 V/bit S_min=97376 dof=14 ai, unipolar zero offset, high gain reading 0.0( 0)e-2147483648, target 1.221e-05 caldac[0] gain=-3.08038(43)e-5 V/bit S_min=1.33255e+07 dof=14 ai, unipolar voltage reference, low gain reading 4.95899(11), target 4.99988 caldac[0] gain=-6.20(15)e-5 V/bit S_min=1.18919 dof=14 caldac[2] gain=3.303(15)e-4 V/bit S_min=2.75213 dof=14 caldac[4] gain=-7.710(15)e-4 V/bit S_min=2.73149 dof=14 caldac[7] gain=-7.519(15)e-4 V/bit S_min=1.39442 dof=14 ao 0, zero offset, low gain reading -0.03853(11), target 0.002442 caldac[0] gain=-6.33(15)e-5 V/bit S_min=0.963782 dof=14 caldac[4] gain=-7.697(15)e-4 V/bit S_min=2.18864 dof=14 caldac[6] gain=-7.853(15)e-4 V/bit S_min=1.12649 dof=14 caldac[10] gain=-1.156(14)e-4 V/bit S_min=0.631839 dof=14 ao 0, reference voltage, low gain reading 7.96015(10), target 8.00244 caldac[0] gain=-6.34(15)e-5 V/bit S_min=0.490311 dof=14 caldac[2] gain=-5.274(15)e-4 V/bit S_min=6.0819 dof=14 caldac[4] gain=-7.701(15)e-4 V/bit S_min=1.38853 dof=14 caldac[6] gain=-7.861(15)e-4 V/bit S_min=1.83657 dof=14 caldac[10] gain=-2.083(14)e-4 V/bit S_min=1.01466 dof=14 caldac[11] gain=-1.573(15)e-4 V/bit S_min=1.40179 dof=14 ao 0, linearity (mid), low gain reading 3.96109(11), target 4.00244 caldac[0] gain=-6.25(15)e-5 V/bit S_min=1.0613 dof=14 caldac[2] gain=-2.638(15)e-4 V/bit S_min=1.71205 dof=14 caldac[4] gain=-7.706(15)e-4 V/bit S_min=1.50717 dof=14 caldac[6] gain=-7.865(15)e-4 V/bit S_min=1.2023 dof=14 caldac[10] gain=-1.956(15)e-4 V/bit S_min=0.454084 dof=14 caldac[11] gain=-7.87(15)e-5 V/bit S_min=1.7689 dof=14 ao 1, zero offset, low gain reading -0.04266(11), target 0.002442 caldac[0] gain=-6.27(15)e-5 V/bit S_min=1.53241 dof=14 caldac[1] gain=-1.144(15)e-4 V/bit S_min=1.68184 dof=14 caldac[4] gain=-7.692(15)e-4 V/bit S_min=2.25693 dof=14 caldac[9] gain=-7.835(15)e-4 V/bit S_min=1.08339 dof=14 ao 1, reference voltage, low gain reading 7.95628(11), target 8.00244 caldac[0] gain=-6.30(15)e-5 V/bit S_min=0.687474 dof=14 caldac[1] gain=-2.079(15)e-4 V/bit S_min=1.12953 dof=14 caldac[2] gain=-5.282(15)e-4 V/bit S_min=3.25719 dof=14 caldac[4] gain=-7.704(15)e-4 V/bit S_min=0.904927 dof=14 caldac[5] gain=-1.586(15)e-4 V/bit S_min=0.486354 dof=14 caldac[9] gain=-7.838(15)e-4 V/bit S_min=0.915931 dof=14 ao 1, linearity (mid), low gain reading 3.95695(10), target 4.00244 caldac[0] gain=-6.33(15)e-5 V/bit S_min=0.715137 dof=14 caldac[1] gain=-1.951(15)e-4 V/bit S_min=1.71303 dof=14 caldac[2] gain=-2.638(15)e-4 V/bit S_min=2.31793 dof=14 caldac[4] gain=-7.708(15)e-4 V/bit S_min=1.6738 dof=14 caldac[5] gain=-7.92(14)e-5 V/bit S_min=0.563063 dof=14 caldac[9] gain=-7.843(15)e-4 V/bit S_min=1.03905 dof=14 ao 0, unipolar zero offset, low gain reading -0.04088(11), target 0 caldac[0] gain=-6.32(15)e-5 V/bit S_min=0.679378 dof=14 caldac[4] gain=-7.696(15)e-4 V/bit S_min=1.88536 dof=14 caldac[6] gain=-7.797(15)e-4 V/bit S_min=1.60174 dof=14 caldac[10] gain=-3.81(15)e-5 V/bit S_min=1.09965 dof=14 ao 0, unipolar high, low gain reading 8.95685(11), target 9.00122 caldac[0] gain=-6.29(15)e-5 V/bit S_min=0.645442 dof=14 caldac[2] gain=-5.948(15)e-4 V/bit S_min=8.22568 dof=14 caldac[4] gain=-7.710(15)e-4 V/bit S_min=1.64758 dof=14 caldac[6] gain=-7.802(15)e-4 V/bit S_min=2.05647 dof=14 caldac[10] gain=-1.037(15)e-4 V/bit S_min=1.02156 dof=14 caldac[11] gain=-1.763(15)e-4 V/bit S_min=1.11353 dof=14 ao 0, unipolar linearity (low), low gain reading 0.96036(11), target 1.00122 caldac[0] gain=-6.31(15)e-5 V/bit S_min=1.09614 dof=14 caldac[2] gain=-6.61(15)e-5 V/bit S_min=0.760375 dof=14 caldac[4] gain=-7.710(15)e-4 V/bit S_min=1.31375 dof=14 caldac[6] gain=-7.817(15)e-4 V/bit S_min=0.887328 dof=14 caldac[10] gain=-7.28(15)e-5 V/bit S_min=0.64491 dof=14 caldac[11] gain=-1.96(15)e-5 V/bit S_min=0.927068 dof=14 ao 0, unipolar linearity (mid), low gain reading 4.95838(11), target 5.00122 caldac[0] gain=-6.24(15)e-5 V/bit S_min=0.714695 dof=14 caldac[2] gain=-3.299(15)e-4 V/bit S_min=2.32927 dof=14 caldac[4] gain=-7.706(14)e-4 V/bit S_min=1.4876 dof=14 caldac[6] gain=-7.809(14)e-4 V/bit S_min=0.670261 dof=14 caldac[10] gain=-5.73(15)e-5 V/bit S_min=0.813239 dof=14 caldac[11] gain=-9.81(15)e-5 V/bit S_min=0.83968 dof=14 ao 1, unipolar zero offset, low gain reading -0.04089(11), target 0 caldac[0] gain=-6.24(15)e-5 V/bit S_min=0.600844 dof=14 caldac[1] gain=-3.79(15)e-5 V/bit S_min=1.24474 dof=14 caldac[4] gain=-7.696(15)e-4 V/bit S_min=1.78661 dof=14 caldac[9] gain=-7.775(15)e-4 V/bit S_min=1.05585 dof=14 ao 1, unipolar high, low gain reading 8.96179(11), target 9.00122 caldac[0] gain=-6.21(15)e-5 V/bit S_min=0.783658 dof=14 caldac[1] gain=-1.043(15)e-4 V/bit S_min=0.663375 dof=14 caldac[2] gain=-5.942(14)e-4 V/bit S_min=7.08621 dof=14 caldac[4] gain=-7.703(15)e-4 V/bit S_min=1.71628 dof=14 caldac[5] gain=-1.786(14)e-4 V/bit S_min=0.969797 dof=14 caldac[9] gain=-7.790(14)e-4 V/bit S_min=1.28199 dof=14 ao 1, unipolar linearity (low), low gain reading 0.96047(11), target 1.00122 caldac[0] gain=-6.27(14)e-5 V/bit S_min=0.765561 dof=14 caldac[1] gain=-7.41(15)e-5 V/bit S_min=0.666894 dof=14 caldac[2] gain=-6.65(15)e-5 V/bit S_min=0.870639 dof=14 caldac[4] gain=-7.711(15)e-4 V/bit S_min=1.40739 dof=14 caldac[5] gain=-2.03(15)e-5 V/bit S_min=0.321384 dof=14 caldac[9] gain=-7.787(15)e-4 V/bit S_min=1.21402 dof=14 ao 1, unipolar linearity (mid), low gain reading 4.96097(10), target 5.00122 caldac[0] gain=-6.35(15)e-5 V/bit S_min=1.22866 dof=14 caldac[1] gain=-5.74(15)e-5 V/bit S_min=0.459804 dof=14 caldac[2] gain=-3.298(15)e-4 V/bit S_min=3.20642 dof=14 caldac[4] gain=-7.707(15)e-4 V/bit S_min=1.05247 dof=14 caldac[5] gain=-9.97(15)e-5 V/bit S_min=0.644686 dof=14 caldac[9] gain=-7.789(15)e-4 V/bit S_min=0.808804 dof=14 WARNING: you need comedi driver version 0.7.69 or later for this calibration to work properly relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 133 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 73 binary: ai, bipolar zero offset, high gain caldac[0] set to 121 binary: ai, bipolar zero offset, high gain caldac[8] set to 143 binary: ai, unipolar zero offset, high gain caldac[7] set to 129 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[10] set to 145 binary: ao 0, zero offset, low gain caldac[6] set to 125 binary: ao 0, reference voltage, low gain caldac[11] set to 91 linearity binary: ao 0, unipolar linearity (low), low gain, ao 0, unipolar linearity (mid), low gain, ao 0, unipolar high, low gain caldac[10] set to 138 binary: ao 0, unipolar zero offset, low gain caldac[6] set to 127 binary: ao 0, unipolar high, low gain caldac[11] set to 86 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[1] set to 135 binary: ao 1, zero offset, low gain caldac[9] set to 121 binary: ao 1, reference voltage, low gain caldac[5] set to 99 linearity binary: ao 1, unipolar linearity (low), low gain, ao 1, unipolar linearity (mid), low gain, ao 1, unipolar high, low gain caldac[1] set to 131 binary: ao 1, unipolar zero offset, low gain caldac[9] set to 127 binary: ao 1, unipolar high, low gain caldac[5] set to 119 writing calibration to /var/lib/libcomedi0/lib/comedi/calibrations/ni_atmio_at-mio-16e-10_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading -4.5(10)e-4, target 0 caldac[0] gain=-6.18(14)e-5 V/bit S_min=1.44566 dof=14 caldac[4] gain=-7.693(15)e-4 V/bit S_min=2.63626 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading -1.67(63)e-6, target 0 caldac[0] gain=-6.28207(85)e-5 V/bit S_min=261.095 dof=14 caldac[4] gain=-3.8409(85)e-6 V/bit S_min=1.87136 dof=14 caldac[8] gain=-1.2932(85)e-6 V/bit S_min=0.946757 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 4.99964(11), target 4.99988 caldac[0] gain=-6.10(15)e-5 V/bit S_min=0.625235 dof=14 caldac[2] gain=-3.336(15)e-4 V/bit S_min=3.00489 dof=14 caldac[4] gain=-7.697(15)e-4 V/bit S_min=1.59119 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 8, aref 3 reading 2.242(88)e-3, target 0.002442 caldac[0] gain=-4.066(100)e-5 V/bit S_min=126.41 dof=14 caldac[2] gain=2.8646(67)e-4 V/bit S_min=56747.2 dof=14 caldac[4] gain=-1.9136(48)e-4 V/bit S_min=107380 dof=14 caldac[7] gain=-4.2489(82)e-4 V/bit S_min=51685.2 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 15, aref 3 reading 1.183(48)e-5, target 1.221e-05 caldac[0] gain=-3.19586(42)e-5 V/bit S_min=1.38091e+07 dof=14 caldac[2] gain=1.4305(40)e-6 V/bit S_min=39020.9 dof=14 caldac[4] gain=-9.523(28)e-7 V/bit S_min=80296.6 dof=14 caldac[7] gain=-2.1202(48)e-6 V/bit S_min=38115.8 dof=14 caldac[8] gain=-8.725(54)e-7 V/bit S_min=2918.98 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 8, aref 3 reading 5.00153(11), target 4.99988 caldac[0] gain=-6.32(15)e-5 V/bit S_min=0.877728 dof=14 caldac[2] gain=3.282(15)e-4 V/bit S_min=3.48317 dof=14 caldac[4] gain=-7.706(15)e-4 V/bit S_min=1.27444 dof=14 caldac[7] gain=-7.518(15)e-4 V/bit S_min=1.48678 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.48(11)e-3, target 0.002442 caldac[0] gain=-6.15(15)e-5 V/bit S_min=0.932536 dof=14 caldac[4] gain=-7.694(15)e-4 V/bit S_min=1.14872 dof=14 caldac[6] gain=-7.854(14)e-4 V/bit S_min=1.18351 dof=14 caldac[10] gain=-1.142(15)e-4 V/bit S_min=0.990343 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.00243(11), target 8.00244 caldac[0] gain=-6.30(15)e-5 V/bit S_min=0.908084 dof=14 caldac[2] gain=-5.305(15)e-4 V/bit S_min=3.61864 dof=14 caldac[4] gain=-7.702(15)e-4 V/bit S_min=0.967538 dof=14 caldac[6] gain=-7.864(14)e-4 V/bit S_min=1.29989 dof=14 caldac[10] gain=-2.076(15)e-4 V/bit S_min=2.09404 dof=14 caldac[11] gain=-1.574(15)e-4 V/bit S_min=0.36921 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.00238(11), target 4.00244 caldac[0] gain=-6.26(15)e-5 V/bit S_min=1.06345 dof=14 caldac[2] gain=-2.669(15)e-4 V/bit S_min=1.28856 dof=14 caldac[4] gain=-7.703(15)e-4 V/bit S_min=2.00311 dof=14 caldac[6] gain=-7.865(15)e-4 V/bit S_min=0.87697 dof=14 caldac[10] gain=-1.954(15)e-4 V/bit S_min=0.366729 dof=14 caldac[11] gain=-7.85(15)e-5 V/bit S_min=1.78124 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 2.67(11)e-3, target 0.002442 caldac[0] gain=-6.15(15)e-5 V/bit S_min=0.84254 dof=14 caldac[1] gain=-1.148(15)e-4 V/bit S_min=1.32828 dof=14 caldac[4] gain=-7.694(15)e-4 V/bit S_min=2.4304 dof=14 caldac[9] gain=-7.826(15)e-4 V/bit S_min=0.680088 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.00257(10), target 8.00244 caldac[0] gain=-6.29(15)e-5 V/bit S_min=0.763702 dof=14 caldac[1] gain=-2.084(15)e-4 V/bit S_min=1.32319 dof=14 caldac[2] gain=-5.301(15)e-4 V/bit S_min=4.73528 dof=14 caldac[4] gain=-7.704(15)e-4 V/bit S_min=2.6164 dof=14 caldac[5] gain=-1.588(15)e-4 V/bit S_min=1.44711 dof=14 caldac[9] gain=-7.842(15)e-4 V/bit S_min=0.902262 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.00263(11), target 4.00244 caldac[0] gain=-6.23(14)e-5 V/bit S_min=0.675892 dof=14 caldac[1] gain=-1.947(15)e-4 V/bit S_min=0.720741 dof=14 caldac[2] gain=-2.671(15)e-4 V/bit S_min=1.56707 dof=14 caldac[4] gain=-7.704(15)e-4 V/bit S_min=1.55598 dof=14 caldac[5] gain=-7.97(15)e-5 V/bit S_min=0.87347 dof=14 caldac[9] gain=-7.837(14)e-4 V/bit S_min=1.28267 dof=14 ao 0, unipolar zero offset, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 5.1(10)e-4, target 0 caldac[0] gain=-6.16(15)e-5 V/bit S_min=1.24117 dof=14 caldac[4] gain=-7.702(15)e-4 V/bit S_min=1.65669 dof=14 caldac[6] gain=-7.795(15)e-4 V/bit S_min=2.19095 dof=14 caldac[10] gain=-3.67(15)e-5 V/bit S_min=0.728358 dof=14 ao 0, unipolar high, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 9.00133(10), target 9.00122 caldac[0] gain=-6.21(15)e-5 V/bit S_min=1.42087 dof=14 caldac[2] gain=-5.981(15)e-4 V/bit S_min=7.39894 dof=14 caldac[4] gain=-7.700(15)e-4 V/bit S_min=0.753255 dof=14 caldac[6] gain=-7.805(15)e-4 V/bit S_min=0.985886 dof=14 caldac[10] gain=-1.046(15)e-4 V/bit S_min=0.818095 dof=14 caldac[11] gain=-1.770(15)e-4 V/bit S_min=1.33854 dof=14 ao 0, unipolar linearity (low), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.00186(11), target 1.00122 caldac[0] gain=-6.30(15)e-5 V/bit S_min=0.774316 dof=14 caldac[2] gain=-6.81(15)e-5 V/bit S_min=1.28007 dof=14 caldac[4] gain=-7.703(15)e-4 V/bit S_min=1.4686 dof=14 caldac[6] gain=-7.805(15)e-4 V/bit S_min=1.06114 dof=14 caldac[10] gain=-7.31(15)e-5 V/bit S_min=1.0248 dof=14 caldac[11] gain=-2.02(15)e-5 V/bit S_min=1.23471 dof=14 ao 0, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 5.00174(10), target 5.00122 caldac[0] gain=-6.22(15)e-5 V/bit S_min=1.55824 dof=14 caldac[2] gain=-3.324(15)e-4 V/bit S_min=2.7321 dof=14 caldac[4] gain=-7.704(15)e-4 V/bit S_min=1.29298 dof=14 caldac[6] gain=-7.801(15)e-4 V/bit S_min=1.34454 dof=14 caldac[10] gain=-5.72(15)e-5 V/bit S_min=1.67128 dof=14 caldac[11] gain=-9.75(15)e-5 V/bit S_min=1.65589 dof=14 ao 1, unipolar zero offset, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 5.8(11)e-4, target 0 caldac[0] gain=-6.11(15)e-5 V/bit S_min=2.22237 dof=14 caldac[1] gain=-3.83(14)e-5 V/bit S_min=0.434581 dof=14 caldac[4] gain=-7.690(15)e-4 V/bit S_min=1.34586 dof=14 caldac[9] gain=-7.769(15)e-4 V/bit S_min=0.709746 dof=14 ao 1, unipolar high, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 9.00130(11), target 9.00122 caldac[0] gain=-6.27(14)e-5 V/bit S_min=1.43785 dof=14 caldac[1] gain=-1.037(15)e-4 V/bit S_min=1.27531 dof=14 caldac[2] gain=-5.972(15)e-4 V/bit S_min=7.4144 dof=14 caldac[4] gain=-7.706(14)e-4 V/bit S_min=0.721386 dof=14 caldac[5] gain=-1.777(14)e-4 V/bit S_min=0.864069 dof=14 caldac[9] gain=-7.781(15)e-4 V/bit S_min=1.23413 dof=14 ao 1, unipolar linearity (low), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 1.00184(11), target 1.00122 caldac[0] gain=-6.37(15)e-5 V/bit S_min=0.853695 dof=14 caldac[1] gain=-7.32(15)e-5 V/bit S_min=1.07479 dof=14 caldac[2] gain=-6.89(15)e-5 V/bit S_min=1.37214 dof=14 caldac[4] gain=-7.702(15)e-4 V/bit S_min=0.634082 dof=14 caldac[5] gain=-2.09(15)e-5 V/bit S_min=0.554968 dof=14 caldac[9] gain=-7.790(15)e-4 V/bit S_min=1.30251 dof=14 ao 1, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 5.00184(10), target 5.00122 caldac[0] gain=-6.22(15)e-5 V/bit S_min=0.860036 dof=14 caldac[1] gain=-5.77(15)e-5 V/bit S_min=1.02808 dof=14 caldac[2] gain=-3.332(15)e-4 V/bit S_min=5.20194 dof=14 caldac[4] gain=-7.697(15)e-4 V/bit S_min=2.36561 dof=14 caldac[5] gain=-9.84(15)e-5 V/bit S_min=0.639216 dof=14 caldac[9] gain=-7.781(14)e-4 V/bit S_min=1.25555 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-6071e0000644000000000000000000003464612416542124017600 00000000000000eeprom reference lsb=218 msb=255 resulting reference voltage: 4.99996 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at http://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Id: comedi_calibrate.c,v 1.84 2003/06/12 19:57:43 fmhess Exp Driver name: ni_pcimio Device name: pci-6071e Id: ni.c,v 1.80 2003/05/25 21:11:20 fmhess Exp Comedi version: 0.7.66 ai, bipolar zero offset, low gain reading 3.496(96)e-3, target 0 caldac[4] gain=-7.863(12)e-4 V/bit S_min=21.857 dof=14 caldac[8] gain=-1.01(12)e-5 V/bit S_min=0.699013 dof=14 ai, bipolar zero offset, high gain reading -5.5954(61)e-4, target 0 caldac[2] gain=6.41(81)e-8 V/bit S_min=1.04594 dof=14 caldac[4] gain=-3.8878(81)e-6 V/bit S_min=2.21943 dof=14 caldac[8] gain=-8.8661(81)e-6 V/bit S_min=13.8114 dof=14 ai, bipolar voltage reference, low gain reading 5.001536(87), target 4.99996 caldac[2] gain=-4.825(12)e-4 V/bit S_min=24.8851 dof=14 caldac[4] gain=-7.812(12)e-4 V/bit S_min=5.92385 dof=14 caldac[8] gain=-10.0(12)e-6 V/bit S_min=0.833473 dof=14 ai, unipolar zero offset, low gain reading 0.020499(84), target 0.002442 caldac[4] gain=-5.3645(74)e-4 V/bit S_min=55067.4 dof=14 caldac[7] gain=-6.3301(73)e-4 V/bit S_min=89089.2 dof=14 caldac[8] gain=-9.0(12)e-6 V/bit S_min=1.22819 dof=14 ai, unipolar zero offset, high gain reading 0.0( 0)e-2147483648, target 1.221e-05 caldac[4] gain=-3.440(52)e-8 V/bit S_min=20293.2 dof=14 caldac[7] gain=-2.600(11)e-7 V/bit S_min=123976 dof=14 caldac[8] gain=-2.1118(26)e-6 V/bit S_min=467809 dof=14 ai, unipolar voltage reference, low gain reading 5.018162(90), target 4.99996 caldac[2] gain=-4.805(12)e-4 V/bit S_min=10.2476 dof=14 caldac[4] gain=-7.811(12)e-4 V/bit S_min=7.58262 dof=14 caldac[7] gain=-9.601(12)e-4 V/bit S_min=8.59342 dof=14 caldac[8] gain=-9.1(12)e-6 V/bit S_min=0.774693 dof=14 ao 0, zero offset, low gain reading -0.012243(88), target 0.002442 caldac[4] gain=-7.857(12)e-4 V/bit S_min=19.0306 dof=14 caldac[6] gain=-9.039(12)e-4 V/bit S_min=22.6976 dof=14 caldac[8] gain=-9.0(12)e-6 V/bit S_min=0.687618 dof=14 caldac[10] gain=-1.362(12)e-4 V/bit S_min=12.3635 dof=14 ao 0, reference voltage, low gain reading 7.980512(86), target 8.00244 caldac[2] gain=-7.634(12)e-4 V/bit S_min=29.3582 dof=14 caldac[4] gain=-7.770(12)e-4 V/bit S_min=4.27958 dof=14 caldac[6] gain=-8.946(12)e-4 V/bit S_min=2.72123 dof=14 caldac[8] gain=-9.0(12)e-6 V/bit S_min=1.6493 dof=14 caldac[10] gain=-2.050(12)e-4 V/bit S_min=1.45642 dof=14 caldac[11] gain=-1.562(12)e-4 V/bit S_min=1.61435 dof=14 ao 0, linearity (negative), low gain reading 3.984733(88), target 4.00244 caldac[2] gain=-3.781(12)e-4 V/bit S_min=7.11583 dof=14 caldac[4] gain=-7.760(12)e-4 V/bit S_min=2.55866 dof=14 caldac[6] gain=-8.945(12)e-4 V/bit S_min=2.82617 dof=14 caldac[8] gain=-9.5(12)e-6 V/bit S_min=1.31389 dof=14 caldac[10] gain=-1.852(12)e-4 V/bit S_min=0.724459 dof=14 caldac[11] gain=-7.80(12)e-5 V/bit S_min=0.597508 dof=14 ao 1, zero offset, low gain reading -0.012859(85), target 0.002442 caldac[1] gain=-1.370(12)e-4 V/bit S_min=11.4009 dof=14 caldac[4] gain=-7.853(12)e-4 V/bit S_min=21.2819 dof=14 caldac[8] gain=-8.9(12)e-6 V/bit S_min=0.684516 dof=14 caldac[9] gain=-9.040(12)e-4 V/bit S_min=23.8881 dof=14 ao 1, reference voltage, low gain reading 7.983063(83), target 8.00244 caldac[1] gain=-2.057(12)e-4 V/bit S_min=1.90165 dof=14 caldac[2] gain=-7.637(12)e-4 V/bit S_min=23.2246 dof=14 caldac[4] gain=-7.765(12)e-4 V/bit S_min=2.28834 dof=14 caldac[5] gain=-1.563(12)e-4 V/bit S_min=2.00985 dof=14 caldac[8] gain=-8.8(12)e-6 V/bit S_min=0.949137 dof=14 caldac[9] gain=-8.953(12)e-4 V/bit S_min=1.98644 dof=14 ao 1, linearity (negative), low gain reading 3.985644(89), target 4.00244 caldac[1] gain=-1.853(12)e-4 V/bit S_min=1.78522 dof=14 caldac[2] gain=-3.788(12)e-4 V/bit S_min=10.0287 dof=14 caldac[4] gain=-7.753(12)e-4 V/bit S_min=4.62437 dof=14 caldac[5] gain=-7.79(12)e-5 V/bit S_min=1.26242 dof=14 caldac[8] gain=-9.3(12)e-6 V/bit S_min=0.382142 dof=14 caldac[9] gain=-8.949(12)e-4 V/bit S_min=3.74794 dof=14 ao 0, unipolar zero offset, low gain reading -0.011404(84), target 0 caldac[4] gain=-7.852(12)e-4 V/bit S_min=22.6656 dof=14 caldac[6] gain=-9.043(12)e-4 V/bit S_min=19.5332 dof=14 caldac[8] gain=-8.8(12)e-6 V/bit S_min=0.444858 dof=14 caldac[10] gain=-4.45(12)e-5 V/bit S_min=0.924042 dof=14 ao 0, unipolar high, low gain reading -0.011590(86), target 0 caldac[4] gain=-7.858(12)e-4 V/bit S_min=17.0993 dof=14 caldac[6] gain=-9.045(12)e-4 V/bit S_min=18.9856 dof=14 caldac[8] gain=-8.9(12)e-6 V/bit S_min=0.916444 dof=14 caldac[10] gain=-4.40(12)e-5 V/bit S_min=0.65867 dof=14 ao 0, unipolar linearity (mid), low gain reading -0.011514(89), target 0 caldac[4] gain=-7.855(12)e-4 V/bit S_min=17.8868 dof=14 caldac[6] gain=-9.047(12)e-4 V/bit S_min=20.7486 dof=14 caldac[8] gain=-8.7(12)e-6 V/bit S_min=0.56776 dof=14 caldac[10] gain=-4.37(12)e-5 V/bit S_min=0.700342 dof=14 ao 1, unipolar zero offset, low gain reading -0.013150(89), target 0 caldac[1] gain=-4.42(12)e-5 V/bit S_min=1.27423 dof=14 caldac[4] gain=-7.856(12)e-4 V/bit S_min=23.4799 dof=14 caldac[8] gain=-9.0(12)e-6 V/bit S_min=0.656603 dof=14 caldac[9] gain=-9.042(12)e-4 V/bit S_min=21.7567 dof=14 ao 1, unipolar high, low gain reading -0.013078(86), target 0 caldac[1] gain=-4.43(12)e-5 V/bit S_min=0.738629 dof=14 caldac[4] gain=-7.850(12)e-4 V/bit S_min=23.9083 dof=14 caldac[8] gain=-8.8(12)e-6 V/bit S_min=0.304527 dof=14 caldac[9] gain=-9.046(12)e-4 V/bit S_min=18.0342 dof=14 ao 1, unipolar linearity (mid), low gain reading -0.013097(84), target 0 caldac[1] gain=-4.42(12)e-5 V/bit S_min=0.831672 dof=14 caldac[4] gain=-7.854(12)e-4 V/bit S_min=22.5469 dof=14 caldac[8] gain=-8.8(12)e-6 V/bit S_min=0.62557 dof=14 caldac[9] gain=-9.045(12)e-4 V/bit S_min=23.6266 dof=14 WARNING: you need comedi driver version 0.7.67 or later for this calibration to work properly relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 123 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 131 binary: ai, bipolar zero offset, high gain caldac[0] set to 255 WARNING: caldac[0] pegged! binary: ai, bipolar zero offset, high gain caldac[8] set to 62 postgain linearity: ao 0, linearity (negative), low gain, ao 0, zero offset, low gain, ao 0, reference voltage, low gain caldac[10] set to 153 binary: ao 0, zero offset, low gain caldac[6] set to 105 binary: ao 0, reference voltage, low gain caldac[11] set to 85 postgain linearity: ao 0, unipolar zero offset, low gain, ao 0, unipolar linearity (mid), low gain, ao 0, unipolar high, low gain caldac[10] set to 1 binary: ao 0, unipolar zero offset, low gain caldac[6] set to 118 binary: ao 0, unipolar high, low gain caldac[11] set to 16 postgain linearity: ao 1, linearity (negative), low gain, ao 1, zero offset, low gain, ao 1, reference voltage, low gain caldac[1] set to 143 binary: ao 1, zero offset, low gain caldac[9] set to 105 binary: ao 1, reference voltage, low gain caldac[5] set to 115 postgain linearity: ao 1, unipolar zero offset, low gain, ao 1, unipolar linearity (mid), low gain, ao 1, unipolar high, low gain caldac[1] set to 1 binary: ao 1, unipolar zero offset, low gain caldac[9] set to 116 binary: ao 1, unipolar high, low gain caldac[5] set to 0 WARNING: caldac[5] pegged! writing calibration to /etc/comedi/calibrations/ni_pcimio_pci-6071e_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 5.68(92)e-4, target 0 caldac[4] gain=-7.867(12)e-4 V/bit S_min=21.0838 dof=14 caldac[8] gain=-1.14(12)e-5 V/bit S_min=1.35955 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading 5.2(59)e-7, target 0 caldac[4] gain=-3.9334(81)e-6 V/bit S_min=10.5606 dof=14 caldac[8] gain=-8.8700(81)e-6 V/bit S_min=16.3103 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 5.000963(87), target 4.99996 caldac[2] gain=-4.825(12)e-4 V/bit S_min=23.7361 dof=14 caldac[4] gain=-7.819(12)e-4 V/bit S_min=4.81761 dof=14 caldac[8] gain=-9.9(12)e-6 V/bit S_min=0.971836 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 8, aref 3 reading 0.018215(86), target 0.002442 caldac[4] gain=-5.3987(75)e-4 V/bit S_min=52638 dof=14 caldac[7] gain=-6.1980(73)e-4 V/bit S_min=92809.6 dof=14 caldac[8] gain=-9.0(12)e-6 V/bit S_min=1.01631 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 15, aref 3 reading 8.838(58)e-5, target 1.221e-05 caldac[4] gain=-2.6829(52)e-6 V/bit S_min=28212.7 dof=14 caldac[7] gain=-3.0849(50)e-6 V/bit S_min=49735.8 dof=14 caldac[8] gain=-2.0447(26)e-6 V/bit S_min=463142 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 8, aref 3 reading 5.017733(89), target 4.99996 caldac[2] gain=-4.806(12)e-4 V/bit S_min=13.5741 dof=14 caldac[4] gain=-7.816(12)e-4 V/bit S_min=4.25985 dof=14 caldac[7] gain=-9.610(12)e-4 V/bit S_min=7.08873 dof=14 caldac[8] gain=-8.6(12)e-6 V/bit S_min=1.11003 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.742(89)e-3, target 0.002442 caldac[4] gain=-7.862(12)e-4 V/bit S_min=21.1642 dof=14 caldac[6] gain=-9.040(12)e-4 V/bit S_min=25.7068 dof=14 caldac[8] gain=-8.8(12)e-6 V/bit S_min=0.916272 dof=14 caldac[10] gain=-1.396(12)e-4 V/bit S_min=10.2294 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.002456(86), target 8.00244 caldac[2] gain=-7.649(12)e-4 V/bit S_min=22.7145 dof=14 caldac[4] gain=-7.773(12)e-4 V/bit S_min=1.9363 dof=14 caldac[6] gain=-8.957(12)e-4 V/bit S_min=1.68465 dof=14 caldac[8] gain=-8.8(12)e-6 V/bit S_min=0.814041 dof=14 caldac[10] gain=-2.051(12)e-4 V/bit S_min=2.5541 dof=14 caldac[11] gain=-1.552(12)e-4 V/bit S_min=0.894274 dof=14 ao 0, linearity (negative), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.001874(87), target 4.00244 caldac[2] gain=-3.802(12)e-4 V/bit S_min=5.15407 dof=14 caldac[4] gain=-7.759(12)e-4 V/bit S_min=3.55141 dof=14 caldac[6] gain=-8.954(12)e-4 V/bit S_min=2.50699 dof=14 caldac[8] gain=-9.2(12)e-6 V/bit S_min=0.518118 dof=14 caldac[10] gain=-1.855(12)e-4 V/bit S_min=1.37541 dof=14 caldac[11] gain=-7.76(12)e-5 V/bit S_min=0.917532 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.320(89)e-3, target 0.002442 caldac[1] gain=-1.395(12)e-4 V/bit S_min=9.13709 dof=14 caldac[4] gain=-7.862(12)e-4 V/bit S_min=18.5454 dof=14 caldac[8] gain=-9.6(12)e-6 V/bit S_min=0.531896 dof=14 caldac[9] gain=-9.062(12)e-4 V/bit S_min=17.5875 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.002537(85), target 8.00244 caldac[1] gain=-2.055(12)e-4 V/bit S_min=2.2748 dof=14 caldac[2] gain=-7.679(12)e-4 V/bit S_min=17.2396 dof=14 caldac[4] gain=-7.768(12)e-4 V/bit S_min=2.15147 dof=14 caldac[5] gain=-1.542(12)e-4 V/bit S_min=0.655287 dof=14 caldac[8] gain=-9.1(12)e-6 V/bit S_min=1.92542 dof=14 caldac[9] gain=-8.960(12)e-4 V/bit S_min=3.66176 dof=14 ao 1, linearity (negative), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.002270(85), target 4.00244 caldac[1] gain=-1.859(12)e-4 V/bit S_min=0.845903 dof=14 caldac[2] gain=-3.827(12)e-4 V/bit S_min=11.7608 dof=14 caldac[4] gain=-7.757(12)e-4 V/bit S_min=1.98853 dof=14 caldac[5] gain=-7.76(12)e-5 V/bit S_min=1.35054 dof=14 caldac[8] gain=-8.5(12)e-6 V/bit S_min=0.943043 dof=14 caldac[9] gain=-8.942(12)e-4 V/bit S_min=1.58679 dof=14 ao 0, unipolar zero offset, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.10(90)e-4, target 0 caldac[4] gain=-7.863(12)e-4 V/bit S_min=20.3835 dof=14 caldac[6] gain=-9.051(12)e-4 V/bit S_min=19.4684 dof=14 caldac[8] gain=-1.12(12)e-5 V/bit S_min=1.95292 dof=14 caldac[10] gain=-4.57(12)e-5 V/bit S_min=2.75928 dof=14 ao 0, unipolar high, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 3.00(92)e-4, target 0 caldac[4] gain=-7.868(12)e-4 V/bit S_min=16.4288 dof=14 caldac[6] gain=-9.056(12)e-4 V/bit S_min=24.5643 dof=14 caldac[8] gain=-1.11(12)e-5 V/bit S_min=1.43656 dof=14 caldac[10] gain=-4.65(12)e-5 V/bit S_min=0.837541 dof=14 ao 0, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.96(90)e-4, target 0 caldac[4] gain=-7.868(12)e-4 V/bit S_min=14.2051 dof=14 caldac[6] gain=-9.056(12)e-4 V/bit S_min=18.6665 dof=14 caldac[8] gain=-1.12(12)e-5 V/bit S_min=1.18046 dof=14 caldac[10] gain=-4.56(12)e-5 V/bit S_min=1.98868 dof=14 ao 1, unipolar zero offset, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.62(91)e-4, target 0 caldac[1] gain=-4.59(12)e-5 V/bit S_min=2.76109 dof=14 caldac[4] gain=-7.864(12)e-4 V/bit S_min=17.9176 dof=14 caldac[8] gain=-1.18(12)e-5 V/bit S_min=1.05356 dof=14 caldac[9] gain=-9.054(12)e-4 V/bit S_min=20.5404 dof=14 ao 1, unipolar high, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.67(91)e-4, target 0 caldac[1] gain=-4.62(12)e-5 V/bit S_min=2.01282 dof=14 caldac[4] gain=-7.867(12)e-4 V/bit S_min=18.8753 dof=14 caldac[8] gain=-1.11(12)e-5 V/bit S_min=0.816831 dof=14 caldac[9] gain=-9.055(12)e-4 V/bit S_min=21.3795 dof=14 ao 1, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.91(91)e-4, target 0 caldac[1] gain=-4.55(12)e-5 V/bit S_min=2.45985 dof=14 caldac[4] gain=-7.863(12)e-4 V/bit S_min=18.2828 dof=14 caldac[8] gain=-1.15(12)e-5 V/bit S_min=0.957032 dof=14 caldac[9] gain=-9.053(12)e-4 V/bit S_min=20.0688 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-67110000644000000000000000000001531112416542124017420 00000000000000eeprom reference lsb=37 msb=0 resulting reference voltage: 5.00004 Id: comedi_calibrate.c,v 1.91 2004/02/15 22:24:57 fmhess Exp Driver name: ni_pcimio Device name: pci-6711 Id: ni.c,v 1.107 2004/03/07 22:21:10 fmhess Exp Comedi version: 0.7.68 linearity binary: dac0 ground, ground referenced, dac0 mid, ground referenced, dac0 high, ground referenced caldac[4] set to 143 relative binary: dac0 high, ground referenced, dac0 ground, ground referenced caldac[8] set to 87 binary: dac0 ground, ground referenced caldac[7] set to 125 linearity binary: dac1 ground, ground referenced, dac1 mid, ground referenced, dac1 high, ground referenced caldac[10] set to 152 relative binary: dac1 high, ground referenced, dac1 ground, ground referenced caldac[2] set to 88 binary: dac1 ground, ground referenced caldac[6] set to 127 linearity binary: dac2 ground, ground referenced, dac2 mid, ground referenced, dac2 high, ground referenced caldac[1] set to 142 relative binary: dac2 high, ground referenced, dac2 ground, ground referenced caldac[11] set to 97 binary: dac2 ground, ground referenced caldac[9] set to 127 linearity binary: dac3 ground, ground referenced, dac3 mid, ground referenced, dac3 high, ground referenced caldac[0] set to 125 relative binary: dac3 high, ground referenced, dac3 ground, ground referenced caldac[5] set to 101 binary: dac3 ground, ground referenced caldac[3] set to 129 writing calibration to blah dac0 ground, ground referenced applied calibration for subdev 1, channel 0, range 0, aref 0 failed to apply calibration for subdev 8, channel 0, range 0, aref 0 reading 0.4998627(54), target 0.499884 caldac[4] gain=5.476(14)e-6 V/bit S_min=15.4614 dof=14 caldac[7] gain=3.67149(46)e-5 V/bit S_min=125.788 dof=14 dac0 mid, ground referenced applied calibration for subdev 1, channel 0, range 0, aref 0 failed to apply calibration for subdev 8, channel 0, range 0, aref 0 reading 0.3093690(54), target 0.309394 caldac[4] gain= V/bit S_min=inf dof=14 caldac[7] gain=3.6699(18)e-5 V/bit S_min=6.50588 dof=14 caldac[8] gain=4.956(18)e-6 V/bit S_min=4.37647 dof=14 dac0 high, ground referenced applied calibration for subdev 1, channel 0, range 0, aref 0 failed to apply calibration for subdev 8, channel 0, range 0, aref 0 reading 0.118883( 0), target 0.118905 caldac[0] gain= V/bit S_min=inf dof=14 caldac[1] gain= V/bit S_min=inf dof=14 caldac[2] gain= V/bit S_min=inf dof=14 caldac[3] gain= V/bit S_min=inf dof=14 caldac[4] gain=8.393(23)e-6 V/bit S_min=3.11906 dof=14 caldac[5] gain= V/bit S_min=inf dof=14 caldac[6] gain= V/bit S_min=inf dof=14 caldac[7] gain=3.66897(46)e-5 V/bit S_min=202.212 dof=14 caldac[8] gain=9.909(23)e-6 V/bit S_min=4.62494 dof=14 caldac[9] gain= V/bit S_min=inf dof=14 caldac[10] gain= V/bit S_min=inf dof=14 caldac[11] gain= V/bit S_min=inf dof=14 caldac[12] gain= V/bit S_min=inf dof=14 caldac[13] gain= V/bit S_min=inf dof=14 caldac[15] gain= V/bit S_min=inf dof=14 dac1 ground, ground referenced applied calibration for subdev 1, channel 1, range 0, aref 0 failed to apply calibration for subdev 8, channel 1, range 0, aref 0 reading 0.499840( 0), target 0.499884 caldac[6] gain=3.6719(23)e-5 V/bit S_min=3.75153 dof=14 caldac[10] gain=5.522(18)e-6 V/bit S_min=5.71176 dof=14 dac1 mid, ground referenced applied calibration for subdev 1, channel 1, range 0, aref 0 failed to apply calibration for subdev 8, channel 1, range 0, aref 0 reading 0.309361( 0), target 0.309394 caldac[0] gain= V/bit S_min=inf dof=14 caldac[2] gain=4.951(18)e-6 V/bit S_min=4.58824 dof=14 caldac[4] gain= V/bit S_min=inf dof=14 caldac[6] gain=3.6709(18)e-5 V/bit S_min=7.78824 dof=14 caldac[7] gain= V/bit S_min=inf dof=14 caldac[8] gain= V/bit S_min=inf dof=14 caldac[10] gain=7.696(14)e-6 V/bit S_min=11.7386 dof=14 caldac[11] gain= V/bit S_min=inf dof=14 caldac[12] gain= V/bit S_min=inf dof=14 caldac[14] gain= V/bit S_min=inf dof=14 caldac[15] gain= V/bit S_min=inf dof=14 dac1 high, ground referenced applied calibration for subdev 1, channel 1, range 0, aref 0 failed to apply calibration for subdev 8, channel 1, range 0, aref 0 reading 0.1188602(54), target 0.118905 caldac[2] gain=9.920(14)e-6 V/bit S_min=15.7542 dof=14 caldac[6] gain=3.67107(46)e-5 V/bit S_min=284.094 dof=14 caldac[10] gain=8.437(27)e-6 V/bit S_min=1.72288 dof=14 caldac[11] gain= V/bit S_min=inf dof=14 dac2 ground, ground referenced applied calibration for subdev 1, channel 2, range 0, aref 0 failed to apply calibration for subdev 8, channel 2, range 0, aref 0 reading 0.499886( 0), target 0.499884 caldac[1] gain=5.531(14)e-6 V/bit S_min=18.2641 dof=14 caldac[9] gain=3.68411(46)e-5 V/bit S_min=140.847 dof=14 dac2 mid, ground referenced applied calibration for subdev 1, channel 2, range 0, aref 0 failed to apply calibration for subdev 8, channel 2, range 0, aref 0 reading 0.3093996(54), target 0.309394 caldac[1] gain=7.702(23)e-6 V/bit S_min=4.01506 dof=14 caldac[9] gain=3.6817(14)e-5 V/bit S_min=13.8719 dof=14 caldac[11] gain=4.932(14)e-6 V/bit S_min=17.8458 dof=14 dac2 high, ground referenced applied calibration for subdev 1, channel 2, range 0, aref 0 failed to apply calibration for subdev 8, channel 2, range 0, aref 0 reading 0.1189059(54), target 0.118905 caldac[1] gain=8.4282(46)e-6 V/bit S_min=144.8 dof=14 caldac[9] gain=3.68271(46)e-5 V/bit S_min=154.024 dof=14 caldac[11] gain=9.8700(46)e-6 V/bit S_min=145.176 dof=14 dac3 ground, ground referenced applied calibration for subdev 1, channel 3, range 0, aref 0 failed to apply calibration for subdev 8, channel 3, range 0, aref 0 reading 0.499886( 0), target 0.499884 caldac[0] gain=5.4543(91)e-6 V/bit S_min=35.6235 dof=14 caldac[3] gain=3.68678(46)e-5 V/bit S_min=190.353 dof=14 dac3 mid, ground referenced applied calibration for subdev 1, channel 3, range 0, aref 0 failed to apply calibration for subdev 8, channel 3, range 0, aref 0 reading 0.309407( 0), target 0.309394 caldac[0] gain=7.6239(91)e-6 V/bit S_min=13.6235 dof=14 caldac[3] gain=3.6861(18)e-5 V/bit S_min=11.5941 dof=14 caldac[4] gain= V/bit S_min=inf dof=14 caldac[5] gain=4.984(18)e-6 V/bit S_min=4.49412 dof=14 caldac[6] gain= V/bit S_min=inf dof=14 caldac[7] gain= V/bit S_min=inf dof=14 caldac[9] gain= V/bit S_min=inf dof=14 caldac[10] gain= V/bit S_min=inf dof=14 caldac[11] gain= V/bit S_min=inf dof=14 caldac[12] gain= V/bit S_min=inf dof=14 caldac[13] gain= V/bit S_min=inf dof=14 caldac[14] gain= V/bit S_min=inf dof=14 caldac[15] gain= V/bit S_min=inf dof=14 dac3 high, ground referenced applied calibration for subdev 1, channel 3, range 0, aref 0 failed to apply calibration for subdev 8, channel 3, range 0, aref 0 reading 0.118914( 0), target 0.118905 caldac[0] gain=8.343(18)e-6 V/bit S_min=7.49412 dof=14 caldac[3] gain=3.68937(91)e-5 V/bit S_min=40.4471 dof=14 caldac[5] gain=9.924(18)e-6 V/bit S_min=7.90588 dof=14 Applied calibration for subdevice 1, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/measurement-computing-pci-das1602-160000644000000000000000000004031612416542124024657 00000000000000# ./comedi_calibrate WARNING: you need comedi driver version 0.7.67 or later for this calibration to work properly eeprom ch 0x80 gives calibration source of 7.00749V eeprom ch 0x84 gives calibration source of 3.50301V eeprom ch 0x88 gives calibration source of 1.75135V eeprom ch 0x8c gives calibration source of 0.875656V eeprom ch 0x80 gives calibration source of 7.00749V eeprom ch 0x84 gives calibration source of 3.50301V eeprom ch 0x88 gives calibration source of 1.75135V eeprom ch 0x8c gives calibration source of 0.875656V Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at http://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Id: comedi_calibrate.c,v 1.84 2003/06/12 19:57:43 fmhess Exp Driver name: cb_pcidas Device name: pci-das1602/16 Id: cb.c,v 1.37 2003/05/31 16:59:29 fmhess Exp Comedi version: 0.7.66 calibration source 0, range 0, ground referenced reading 2.7663(96)e-3, target 0 caldac[9] gain=1.0499(13)e-4 V/bit S_min=10763.3 dof=14 caldac[10] gain=6.129(13)e-5 V/bit S_min=387.025 dof=14 calibration source 1, range 0, ground referenced reading 7.013937(22), target 7.00749 caldac[8] gain=-1.2075(13)e-4 V/bit S_min=31.9052 dof=14 caldac[9] gain=1.1159(13)e-4 V/bit S_min=99631.2 dof=14 caldac[10] gain=5.835(13)e-5 V/bit S_min=31.7509 dof=14 calibration source 0, range 1, ground referenced reading 1.578(18)e-3, target 0 caldac[9] gain=5.2492(69)e-5 V/bit S_min=10014.6 dof=14 caldac[10] gain=5.9674(66)e-5 V/bit S_min=351.04 dof=14 calibration source 2, range 1, ground referenced reading 3.49594(28), target 3.50301 caldac[8] gain=-6.0384(73)e-5 V/bit S_min=28.6973 dof=14 caldac[9] gain=5.5787(72)e-5 V/bit S_min=80811.8 dof=14 caldac[10] gain=5.8134(72)e-5 V/bit S_min=28.0956 dof=14 calibration source 0, range 2, ground referenced reading 7.749(86)e-4, target 0 caldac[9] gain=2.6285(37)e-5 V/bit S_min=8533.24 dof=14 caldac[10] gain=5.8980(35)e-5 V/bit S_min=279.341 dof=14 calibration source 3, range 2, ground referenced reading 1.74975(11), target 1.75135 caldac[1] gain=2.19(36)e-7 V/bit S_min=44.3197 dof=14 caldac[8] gain=-3.0211(35)e-5 V/bit S_min=30.8117 dof=14 caldac[9] gain=2.7886(35)e-5 V/bit S_min=84647.5 dof=14 caldac[10] gain=5.8444(35)e-5 V/bit S_min=107.592 dof=14 calibration source 0, range 3, ground referenced reading 3.579(43)e-4, target 0 caldac[9] gain=1.3096(21)e-5 V/bit S_min=6620.4 dof=14 caldac[10] gain=5.8613(21)e-5 V/bit S_min=216.875 dof=14 calibration source 4, range 3, ground referenced reading 0.875432(48), target 0.875656 caldac[8] gain=-1.5145(21)e-5 V/bit S_min=19.1356 dof=14 caldac[9] gain=1.3957(20)e-5 V/bit S_min=61688.7 dof=14 caldac[10] gain=5.8337(21)e-5 V/bit S_min=131.817 dof=14 calibration source 0, range 4, ground referenced reading 0.0( 0)e-2147483648, target 7.62951e-05 caldac[8] gain=2.6693(25)e-5 V/bit S_min=573096 dof=14 caldac[9] gain=2.1697(21)e-5 V/bit S_min=1.03367e+06 dof=14 caldac[10] gain=1.4275(22)e-5 V/bit S_min=276225 dof=14 calibration source 1, range 4, ground referenced reading 7.009349(19), target 7.00749 caldac[8] gain=-3.5058(68)e-5 V/bit S_min=22.6603 dof=14 caldac[9] gain=5.3978(67)e-5 V/bit S_min=41855.2 dof=14 caldac[10] gain=5.8287(68)e-5 V/bit S_min=44.4778 dof=14 calibration source 0, range 5, ground referenced reading 4.5(12)e-5, target 3.81476e-05 caldac[8] gain=1.3346(14)e-5 V/bit S_min=493324 dof=14 caldac[9] gain=1.0849(11)e-5 V/bit S_min=910509 dof=14 caldac[10] gain=2.0352(14)e-5 V/bit S_min=911806 dof=14 calibration source 2, range 5, ground referenced reading 3.49364(28), target 3.50301 caldac[8] gain=-1.7539(47)e-5 V/bit S_min=12.7877 dof=14 caldac[9] gain=2.7003(47)e-5 V/bit S_min=21764.6 dof=14 caldac[10] gain=5.8233(46)e-5 V/bit S_min=31.11 dof=14 calibration source 0, range 6, ground referenced reading 2.21(55)e-5, target 1.90738e-05 caldac[8] gain=6.5107(81)e-6 V/bit S_min=345566 dof=14 caldac[9] gain=5.2611(66)e-6 V/bit S_min=657889 dof=14 caldac[10] gain=2.34581(93)e-5 V/bit S_min=2.31823e+06 dof=14 calibration source 3, range 6, ground referenced reading 1.74860(11), target 1.75135 caldac[8] gain=-8.753(21)e-6 V/bit S_min=8.33917 dof=14 caldac[9] gain=1.3500(21)e-5 V/bit S_min=27349.9 dof=14 caldac[10] gain=5.8415(21)e-5 V/bit S_min=159.075 dof=14 calibration source 0, range 7, ground referenced reading 9.8(25)e-6, target 9.53689e-06 caldac[8] gain=3.0782(54)e-6 V/bit S_min=190038 dof=14 caldac[9] gain=2.4566(41)e-6 V/bit S_min=396840 dof=14 caldac[10] gain=2.50425(63)e-5 V/bit S_min=5.11232e+06 dof=14 calibration source 4, range 7, ground referenced reading 0.874858(48), target 0.875656 caldac[8] gain=-4.354(14)e-6 V/bit S_min=8.02422 dof=14 caldac[9] gain=6.703(14)e-6 V/bit S_min=14996.1 dof=14 caldac[10] gain=5.8424(14)e-5 V/bit S_min=229.055 dof=14 DAC ground calibration source, ch 0, range 0 reading 1.4854(97)e-3, target 7.62951e-05 caldac[2] gain=-1.2281(13)e-4 V/bit S_min=364.875 dof=14 caldac[6] gain=-1.534(15)e-5 V/bit S_min=263.776 dof=14 caldac[9] gain=1.0515(14)e-4 V/bit S_min=9949.02 dof=14 caldac[10] gain=6.177(13)e-5 V/bit S_min=411.836 dof=14 DAC high calibration source, ch 0, range 0 reading 4.489167(10), target 4.49996 caldac[0] gain=-5.786(13)e-5 V/bit S_min=38.2987 dof=14 caldac[1] gain=-4.9996(13)e-4 V/bit S_min=115.588 dof=14 caldac[2] gain=-1.1998(13)e-4 V/bit S_min=32.8576 dof=14 caldac[6] gain=-1.339(13)e-5 V/bit S_min=2.78534 dof=14 caldac[8] gain=-7.800(13)e-5 V/bit S_min=42.0434 dof=14 caldac[9] gain=1.0820(13)e-4 V/bit S_min=49635.5 dof=14 caldac[10] gain=5.843(13)e-5 V/bit S_min=42.4727 dof=14 DAC ground calibration source, ch 0, range 1 reading -5.73(16)e-4, target 0.00015259 caldac[2] gain=-1.2285(13)e-4 V/bit S_min=336.07 dof=14 caldac[6] gain=-1.803(15)e-5 V/bit S_min=215.706 dof=14 caldac[9] gain=1.0512(13)e-4 V/bit S_min=9673.89 dof=14 caldac[10] gain=6.171(14)e-5 V/bit S_min=303.678 dof=14 DAC high calibration source, ch 0, range 1 reading 8.945938(15), target 8.99992 caldac[0] gain=-1.1516(13)e-4 V/bit S_min=37.5284 dof=14 caldac[1] gain=-9.9562(13)e-4 V/bit S_min=135.565 dof=14 caldac[2] gain=-1.2020(13)e-4 V/bit S_min=45.5624 dof=14 caldac[6] gain=-1.493(14)e-5 V/bit S_min=54.1826 dof=14 caldac[8] gain=-1.5442(13)e-4 V/bit S_min=51.372 dof=14 caldac[9] gain=1.1435(13)e-4 V/bit S_min=133535 dof=14 caldac[10] gain=5.904(13)e-5 V/bit S_min=44.5935 dof=14 DAC ground calibration source, ch 0, range 2 reading 3.265(12)e-3, target 0 caldac[2] gain=-1.2259(13)e-4 V/bit S_min=386.434 dof=14 caldac[6] gain=-1.350(13)e-5 V/bit S_min=2.7774 dof=14 caldac[9] gain=1.0486(13)e-4 V/bit S_min=11310.9 dof=14 caldac[10] gain=6.105(14)e-5 V/bit S_min=377.666 dof=14 DAC high calibration source, ch 0, range 2 reading 4.481010(11), target 4.50004 caldac[0] gain=-5.714(13)e-5 V/bit S_min=11.5009 dof=14 caldac[1] gain=-4.9862(13)e-4 V/bit S_min=113.179 dof=14 caldac[2] gain=-1.1982(13)e-4 V/bit S_min=36.403 dof=14 caldac[6] gain=-1.375(13)e-5 V/bit S_min=4.81823 dof=14 caldac[8] gain=-7.692(13)e-5 V/bit S_min=27.7274 dof=14 caldac[9] gain=1.0774(13)e-4 V/bit S_min=52246.3 dof=14 caldac[10] gain=5.776(13)e-5 V/bit S_min=9.98411 dof=14 DAC ground calibration source, ch 0, range 3 reading 3.334(11)e-3, target 0 caldac[2] gain=-1.2259(13)e-4 V/bit S_min=391.228 dof=14 caldac[6] gain=-1.354(13)e-5 V/bit S_min=2.79562 dof=14 caldac[9] gain=1.0480(13)e-4 V/bit S_min=11427.2 dof=14 caldac[10] gain=6.103(13)e-5 V/bit S_min=411.259 dof=14 DAC high calibration source, ch 0, range 3 reading 8.929456(12), target 9.00008 caldac[0] gain=-1.1406(13)e-4 V/bit S_min=28.3385 dof=14 caldac[1] gain=-9.9312(13)e-4 V/bit S_min=70.3478 dof=14 caldac[2] gain=-1.1935(13)e-4 V/bit S_min=21.4438 dof=14 caldac[6] gain=-1.385(13)e-5 V/bit S_min=5.90931 dof=14 caldac[8] gain=-1.5392(13)e-4 V/bit S_min=46.7678 dof=14 caldac[9] gain=1.1433(13)e-4 V/bit S_min=137228 dof=14 caldac[10] gain=5.840(13)e-5 V/bit S_min=20.5374 dof=14 DAC ground calibration source, ch 1, range 0 reading 2.883(19)e-3, target 7.62951e-05 caldac[3] gain=-1.2282(13)e-4 V/bit S_min=367.375 dof=14 caldac[7] gain=-1.345(13)e-5 V/bit S_min=1.15301 dof=14 caldac[9] gain=1.0506(14)e-4 V/bit S_min=9893.77 dof=14 caldac[10] gain=6.141(13)e-5 V/bit S_min=446.711 dof=14 DAC high calibration source, ch 1, range 0 reading 4.493651(11), target 4.49996 caldac[3] gain=-1.2033(13)e-4 V/bit S_min=43.4756 dof=14 caldac[4] gain=-5.804(13)e-5 V/bit S_min=36.9516 dof=14 caldac[5] gain=-4.9832(13)e-4 V/bit S_min=93.5171 dof=14 caldac[7] gain=-1.387(13)e-5 V/bit S_min=19.6166 dof=14 caldac[8] gain=-7.834(13)e-5 V/bit S_min=19.0549 dof=14 caldac[9] gain=1.0883(13)e-4 V/bit S_min=51334.1 dof=14 caldac[10] gain=5.898(13)e-5 V/bit S_min=37.4823 dof=14 DAC ground calibration source, ch 1, range 1 reading 2.039(10)e-3, target 0.00015259 caldac[3] gain=-1.2293(13)e-4 V/bit S_min=320.881 dof=14 caldac[7] gain=-1.364(13)e-5 V/bit S_min=4.50314 dof=14 caldac[9] gain=1.0510(13)e-4 V/bit S_min=10960.3 dof=14 caldac[10] gain=6.157(13)e-5 V/bit S_min=304.663 dof=14 DAC high calibration source, ch 1, range 1 reading 8.961557(12), target 8.99992 caldac[3] gain=-1.2007(13)e-4 V/bit S_min=21.6244 dof=14 caldac[4] gain=-1.1389(13)e-4 V/bit S_min=20.3375 dof=14 caldac[5] gain=-9.9380(13)e-4 V/bit S_min=74.0387 dof=14 caldac[7] gain=-1.342(13)e-5 V/bit S_min=4.83011 dof=14 caldac[8] gain=-1.5430(13)e-4 V/bit S_min=43.7761 dof=14 caldac[9] gain=1.1429(13)e-4 V/bit S_min=138060 dof=14 caldac[10] gain=5.814(13)e-5 V/bit S_min=22.6337 dof=14 DAC ground calibration source, ch 1, range 2 reading 3.480(12)e-3, target 0 caldac[3] gain=-1.2282(13)e-4 V/bit S_min=377.068 dof=14 caldac[7] gain=-1.362(13)e-5 V/bit S_min=3.65634 dof=14 caldac[9] gain=1.0484(13)e-4 V/bit S_min=11386.1 dof=14 caldac[10] gain=6.108(13)e-5 V/bit S_min=472.513 dof=14 DAC high calibration source, ch 1, range 2 reading 4.484250(11), target 4.50004 caldac[3] gain=-1.2014(13)e-4 V/bit S_min=39.6119 dof=14 caldac[4] gain=-5.654(13)e-5 V/bit S_min=5.35334 dof=14 caldac[5] gain=-4.9730(13)e-4 V/bit S_min=128.899 dof=14 caldac[7] gain=-1.351(13)e-5 V/bit S_min=2.37465 dof=14 caldac[8] gain=-7.726(13)e-5 V/bit S_min=47.0742 dof=14 caldac[9] gain=1.0764(13)e-4 V/bit S_min=51611.9 dof=14 caldac[10] gain=5.777(13)e-5 V/bit S_min=8.9178 dof=14 DAC ground calibration source, ch 1, range 3 reading 3.431(10)e-3, target 0 caldac[3] gain=-1.2286(13)e-4 V/bit S_min=388.792 dof=14 caldac[7] gain=-1.362(13)e-5 V/bit S_min=2.9964 dof=14 caldac[9] gain=1.0482(13)e-4 V/bit S_min=11353.9 dof=14 caldac[10] gain=6.111(13)e-5 V/bit S_min=494.685 dof=14 DAC high calibration source, ch 1, range 3 reading 8.942965(12), target 9.00008 caldac[3] gain=-1.2047(13)e-4 V/bit S_min=29.349 dof=14 caldac[4] gain=-1.1433(13)e-4 V/bit S_min=34.8405 dof=14 caldac[5] gain=-9.9112(13)e-4 V/bit S_min=83.7798 dof=14 caldac[7] gain=-1.341(13)e-5 V/bit S_min=2.67333 dof=14 caldac[8] gain=-1.5466(13)e-4 V/bit S_min=19.3449 dof=14 caldac[9] gain=1.1440(13)e-4 V/bit S_min=133433 dof=14 caldac[10] gain=5.843(13)e-5 V/bit S_min=50.4174 dof=14 relative binary: calibration source 0, range 0, ground referenced, calibration source 0, range 3, ground referenced caldac[9] set to 93 binary peg: calibration source 0, range 4, ground referenced caldac[10] set to 255 relative binary: calibration source 0, range 4, ground referenced, calibration source 0, range 7, ground referenced caldac[9] set to 173 relative binary: calibration source 1, range 0, ground referenced, calibration source 0, range 0, ground referenced caldac[8] set to 155 binary: calibration source 0, range 0, ground referenced caldac[10] set to 129 relative binary: calibration source 2, range 1, ground referenced, calibration source 0, range 1, ground referenced caldac[8] set to 0 WARNING: caldac[8] pegged! binary: calibration source 0, range 1, ground referenced caldac[10] set to 127 relative binary: calibration source 3, range 2, ground referenced, calibration source 0, range 2, ground referenced caldac[8] set to 51 binary: calibration source 0, range 2, ground referenced caldac[10] set to 127 relative binary: calibration source 4, range 3, ground referenced, calibration source 0, range 3, ground referenced caldac[8] set to 93 binary: calibration source 0, range 3, ground referenced caldac[10] set to 127 relative binary: calibration source 1, range 4, ground referenced, calibration source 0, range 4, ground referenced caldac[8] set to 155 binary: calibration source 0, range 4, ground referenced caldac[10] set to 84 relative binary: calibration source 2, range 5, ground referenced, calibration source 0, range 5, ground referenced caldac[8] set to 1 binary: calibration source 0, range 5, ground referenced caldac[10] set to 219 relative binary: calibration source 3, range 6, ground referenced, calibration source 0, range 6, ground referenced caldac[8] set to 0 WARNING: caldac[8] pegged! binary: calibration source 0, range 6, ground referenced caldac[10] set to 173 relative binary: calibration source 4, range 7, ground referenced, calibration source 0, range 7, ground referenced caldac[8] set to 0 WARNING: caldac[8] pegged! binary: calibration source 0, range 7, ground referenced caldac[10] set to 151 relative binary: DAC high calibration source, ch 0, range 0, DAC ground calibration source, ch 0, range 0 caldac[1] set to 99 binary: DAC ground calibration source, ch 0, range 0 caldac[2] set to 115 relative binary: DAC high calibration source, ch 0, range 0, DAC ground calibration source, ch 0, range 0 caldac[0] set to 117 binary: DAC ground calibration source, ch 0, range 0 caldac[6] set to 133 relative binary: DAC high calibration source, ch 0, range 1, DAC ground calibration source, ch 0, range 1 caldac[1] set to 68 binary: DAC ground calibration source, ch 0, range 1 caldac[2] set to 103 relative binary: DAC high calibration source, ch 0, range 1, DAC ground calibration source, ch 0, range 1 caldac[0] set to 123 binary: DAC ground calibration source, ch 0, range 1 caldac[6] set to 127 relative binary: DAC high calibration source, ch 0, range 2, DAC ground calibration source, ch 0, range 2 caldac[1] set to 77 binary: DAC ground calibration source, ch 0, range 2 caldac[2] set to 129 relative binary: DAC high calibration source, ch 0, range 2, DAC ground calibration source, ch 0, range 2 caldac[0] set to 131 binary: DAC ground calibration source, ch 0, range 2 caldac[6] set to 131 relative binary: DAC high calibration source, ch 0, range 3, DAC ground calibration source, ch 0, range 3 caldac[1] set to 47 binary: DAC ground calibration source, ch 0, range 3 caldac[2] set to 131 relative binary: DAC high calibration source, ch 0, range 3, DAC ground calibration source, ch 0, range 3 caldac[0] set to 131 binary: DAC ground calibration source, ch 0, range 3 caldac[6] set to 128 relative binary: DAC high calibration source, ch 1, range 0, DAC ground calibration source, ch 1, range 0 caldac[5] set to 105 binary: DAC ground calibration source, ch 1, range 0 caldac[3] set to 126 relative binary: DAC high calibration source, ch 1, range 0, DAC ground calibration source, ch 1, range 0 caldac[4] set to 119 binary: DAC ground calibration source, ch 1, range 0 caldac[7] set to 127 relative binary: DAC high calibration source, ch 1, range 1, DAC ground calibration source, ch 1, range 1 caldac[5] set to 82 binary: DAC ground calibration source, ch 1, range 1 caldac[3] set to 121 relative binary: DAC high calibration source, ch 1, range 1, DAC ground calibration source, ch 1, range 1 caldac[4] set to 122 binary: DAC ground calibration source, ch 1, range 1 caldac[7] set to 123 relative binary: DAC high calibration source, ch 1, range 2, DAC ground calibration source, ch 1, range 2 caldac[5] set to 83 binary: DAC ground calibration source, ch 1, range 2 caldac[3] set to 131 relative binary: DAC high calibration source, ch 1, range 2, DAC ground calibration source, ch 1, range 2 caldac[4] set to 129 binary: DAC ground calibration source, ch 1, range 2 caldac[7] set to 134 relative binary: DAC high calibration source, ch 1, range 3, DAC ground calibration source, ch 1, range 3 caldac[5] set to 61 binary: DAC ground calibration source, ch 1, range 3 caldac[3] set to 132 relative binary: DAC high calibration source, ch 1, range 3, DAC ground calibration source, ch 1, range 3 caldac[4] set to 125 binary: DAC ground calibration source, ch 1, range 3 caldac[7] set to 130 failed to open file /etc/comedi/calibrations/cb_pcidas_pci-das1602-16_comedi0 for writing calibration function returned error comedi_calibrate-5/comedi_calibrate/results/at-mio-16de-100000644000000000000000000004451012416542124020415 00000000000000chinasuse92p4sca:/home/walt/comedi/comedi-0.7.70 # /usr/local/bin/comedi_calibrate -f /dev/comedi0 eeprom reference lsb=216 msb=255 resulting reference voltage: 4.99996 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_atmio Device name: at-mio-16de-10 Id: ni.c,v 1.130 2004/09/09 21:43:16 fmhess Exp Comedi version: 0.7.70 ai, bipolar zero offset, low gain reading 4.870(89)e-3, target 0 caldac[0] gain=-6.52(12)e-5 V/bit S_min=0.990489 dof=14 caldac[4] gain=-7.684(12)e-4 V/bit S_min=2.30115 dof=14 ai, bipolar zero offset, high gain reading 7.2452(54)e-4, target 0 caldac[0] gain=-6.34993(73)e-5 V/bit S_min=68.2233 dof=14 caldac[2] gain=-6.01(72)e-8 V/bit S_min=0.819595 dof=14 caldac[4] gain=-3.8534(72)e-6 V/bit S_min=1.82791 dof=14 caldac[8] gain=-1.3240(73)e-6 V/bit S_min=1.79639 dof=14 ai, bipolar voltage reference, low gain reading 5.005356(86), target 4.99996 caldac[0] gain=-6.24(12)e-5 V/bit S_min=2.21779 dof=14 caldac[2] gain=-3.356(12)e-4 V/bit S_min=8.00714 dof=14 caldac[4] gain=-7.672(12)e-4 V/bit S_min=4.01159 dof=14 ai, unipolar zero offset, low gain reading 5.700(90)e-3, target 0.002442 caldac[0] gain=-5.86(11)e-5 V/bit S_min=20.1922 dof=14 caldac[2] gain=3.3585(58)e-4 V/bit S_min=78987.6 dof=14 caldac[4] gain=-4.4847(67)e-4 V/bit S_min=79203.3 dof=14 caldac[7] gain=-4.3797(67)e-4 V/bit S_min=74027.9 dof=14 ai, unipolar zero offset, high gain reading 7.2735(50)e-4, target 1.221e-05 caldac[0] gain=-3.85689(41)e-5 V/bit S_min=1.391e+07 dof=14 caldac[2] gain=3.2897(73)e-6 V/bit S_min=8.14139 dof=14 caldac[4] gain=-3.8518(72)e-6 V/bit S_min=1.53105 dof=14 caldac[7] gain=-3.7498(73)e-6 V/bit S_min=1.12204 dof=14 caldac[8] gain=-1.3171(73)e-6 V/bit S_min=1.69305 dof=14 ai, unipolar voltage reference, low gain reading 5.006138(84), target 4.99996 caldac[0] gain=-6.26(12)e-5 V/bit S_min=1.18217 dof=14 caldac[2] gain=3.308(12)e-4 V/bit S_min=3.96637 dof=14 caldac[4] gain=-7.676(12)e-4 V/bit S_min=2.86645 dof=14 caldac[7] gain=-7.484(12)e-4 V/bit S_min=4.21217 dof=14 ao 0, zero offset, low gain reading 8.151(90)e-3, target 0.002442 caldac[0] gain=-6.52(12)e-5 V/bit S_min=1.50399 dof=14 caldac[4] gain=-7.691(12)e-4 V/bit S_min=2.71547 dof=14 caldac[6] gain=-7.823(12)e-4 V/bit S_min=4.00833 dof=14 caldac[10] gain=-1.157(12)e-4 V/bit S_min=2.81203 dof=14 ao 0, reference voltage, low gain reading 8.009267(88), target 8.00244 caldac[0] gain=-6.32(12)e-5 V/bit S_min=0.950711 dof=14 caldac[2] gain=-5.401(12)e-4 V/bit S_min=8.61082 dof=14 caldac[4] gain=-7.699(12)e-4 V/bit S_min=3.08877 dof=14 caldac[6] gain=-7.832(12)e-4 V/bit S_min=1.81387 dof=14 caldac[10] gain=-2.072(12)e-4 V/bit S_min=0.741417 dof=14 caldac[11] gain=-1.557(12)e-4 V/bit S_min=1.28308 dof=14 ao 0, linearity (mid), low gain reading 4.010130(89), target 4.00244 caldac[0] gain=-6.39(12)e-5 V/bit S_min=1.2223 dof=14 caldac[2] gain=-2.716(12)e-4 V/bit S_min=2.26024 dof=14 caldac[4] gain=-7.698(12)e-4 V/bit S_min=1.2458 dof=14 caldac[6] gain=-7.830(12)e-4 V/bit S_min=3.90656 dof=14 caldac[10] gain=-1.945(12)e-4 V/bit S_min=1.65973 dof=14 caldac[11] gain=-7.76(12)e-5 V/bit S_min=1.27209 dof=14 ao 1, zero offset, low gain reading 7.73(89)e-4, target 0.002442 caldac[0] gain=-6.43(12)e-5 V/bit S_min=1.62275 dof=14 caldac[1] gain=-1.161(12)e-4 V/bit S_min=2.07195 dof=14 caldac[4] gain=-7.688(12)e-4 V/bit S_min=2.81123 dof=14 caldac[9] gain=-7.865(12)e-4 V/bit S_min=1.94089 dof=14 ao 1, reference voltage, low gain reading 8.000496(87), target 8.00244 caldac[0] gain=-6.36(12)e-5 V/bit S_min=0.770728 dof=14 caldac[1] gain=-2.085(12)e-4 V/bit S_min=1.38959 dof=14 caldac[2] gain=-5.391(12)e-4 V/bit S_min=8.42257 dof=14 caldac[4] gain=-7.694(12)e-4 V/bit S_min=1.63821 dof=14 caldac[5] gain=-1.567(12)e-4 V/bit S_min=1.16804 dof=14 caldac[9] gain=-7.876(12)e-4 V/bit S_min=1.85009 dof=14 ao 1, linearity (mid), low gain reading 4.001316(88), target 4.00244 caldac[0] gain=-6.27(12)e-5 V/bit S_min=2.13699 dof=14 caldac[1] gain=-1.961(12)e-4 V/bit S_min=1.40938 dof=14 caldac[2] gain=-2.714(12)e-4 V/bit S_min=3.05877 dof=14 caldac[4] gain=-7.701(12)e-4 V/bit S_min=2.07027 dof=14 caldac[5] gain=-7.72(12)e-5 V/bit S_min=0.595616 dof=14 caldac[9] gain=-7.866(12)e-4 V/bit S_min=0.958617 dof=14 ao 0, unipolar zero offset, low gain reading 7.035(88)e-3, target 0 caldac[0] gain=-6.51(12)e-5 V/bit S_min=0.976658 dof=14 caldac[4] gain=-7.694(12)e-4 V/bit S_min=3.70496 dof=14 caldac[6] gain=-7.766(12)e-4 V/bit S_min=2.28035 dof=14 caldac[10] gain=-4.04(12)e-5 V/bit S_min=0.367153 dof=14 ao 0, unipolar high, low gain reading 9.008962(85), target 9.00122 caldac[0] gain=-6.34(12)e-5 V/bit S_min=1.67589 dof=14 caldac[2] gain=-6.066(12)e-4 V/bit S_min=11.6858 dof=14 caldac[4] gain=-7.695(12)e-4 V/bit S_min=3.893 dof=14 caldac[6] gain=-7.769(12)e-4 V/bit S_min=3.65722 dof=14 caldac[10] gain=-1.035(12)e-4 V/bit S_min=1.07923 dof=14 caldac[11] gain=-1.745(12)e-4 V/bit S_min=1.57224 dof=14 ao 0, unipolar linearity (low), low gain reading 1.009515(88), target 1.00122 caldac[0] gain=-6.34(12)e-5 V/bit S_min=0.924085 dof=14 caldac[2] gain=-7.00(12)e-5 V/bit S_min=0.635915 dof=14 caldac[4] gain=-7.700(12)e-4 V/bit S_min=2.40145 dof=14 caldac[6] gain=-7.781(12)e-4 V/bit S_min=1.56716 dof=14 caldac[10] gain=-7.36(12)e-5 V/bit S_min=1.0521 dof=14 caldac[11] gain=-1.92(12)e-5 V/bit S_min=0.783716 dof=14 ao 0, unipolar linearity (mid), low gain reading 5.008123(85), target 5.00122 caldac[0] gain=-6.33(12)e-5 V/bit S_min=1.48113 dof=14 caldac[2] gain=-3.363(12)e-4 V/bit S_min=5.23039 dof=14 caldac[4] gain=-7.676(12)e-4 V/bit S_min=3.77244 dof=14 caldac[6] gain=-7.748(12)e-4 V/bit S_min=5.87411 dof=14 caldac[10] gain=-5.76(12)e-5 V/bit S_min=0.856877 dof=14 caldac[11] gain=-9.66(12)e-5 V/bit S_min=2.76267 dof=14 ao 1, unipolar zero offset, low gain reading 4.316(93)e-3, target 0 caldac[0] gain=-6.50(12)e-5 V/bit S_min=1.49379 dof=14 caldac[1] gain=-3.96(12)e-5 V/bit S_min=1.1046 dof=14 caldac[4] gain=-7.685(12)e-4 V/bit S_min=1.84138 dof=14 caldac[9] gain=-7.816(12)e-4 V/bit S_min=2.7913 dof=14 ao 1, unipolar high, low gain reading 9.006138(85), target 9.00122 caldac[0] gain=-6.21(12)e-5 V/bit S_min=0.806143 dof=14 caldac[1] gain=-1.037(12)e-4 V/bit S_min=0.959552 dof=14 caldac[2] gain=-6.065(12)e-4 V/bit S_min=10.8821 dof=14 caldac[4] gain=-7.699(12)e-4 V/bit S_min=1.67311 dof=14 caldac[5] gain=-1.759(12)e-4 V/bit S_min=0.919171 dof=14 caldac[9] gain=-7.816(12)e-4 V/bit S_min=2.57529 dof=14 ao 1, unipolar linearity (low), low gain reading 1.006281(90), target 1.00122 caldac[0] gain=-6.33(12)e-5 V/bit S_min=0.534655 dof=14 caldac[1] gain=-7.39(12)e-5 V/bit S_min=0.941122 dof=14 caldac[2] gain=-7.05(12)e-5 V/bit S_min=1.67489 dof=14 caldac[4] gain=-7.702(12)e-4 V/bit S_min=3.07777 dof=14 caldac[5] gain=-1.91(12)e-5 V/bit S_min=0.586399 dof=14 caldac[9] gain=-7.816(12)e-4 V/bit S_min=1.46711 dof=14 ao 1, unipolar linearity (mid), low gain reading 5.005480(85), target 5.00122 caldac[0] gain=-6.28(12)e-5 V/bit S_min=1.20858 dof=14 caldac[1] gain=-5.74(12)e-5 V/bit S_min=1.30563 dof=14 caldac[2] gain=-3.366(12)e-4 V/bit S_min=4.12479 dof=14 caldac[4] gain=-7.671(12)e-4 V/bit S_min=4.25203 dof=14 caldac[5] gain=-9.70(12)e-5 V/bit S_min=3.3763 dof=14 caldac[9] gain=-7.791(12)e-4 V/bit S_min=2.95444 dof=14 WARNING: you need comedi driver version 0.7.71 or later for this calibration to work properly relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 127 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 132 binary: ai, bipolar zero offset, high gain caldac[0] set to 138 binary: ai, bipolar zero offset, high gain caldac[8] set to 128 binary peg: ai, unipolar zero offset, low gain caldac[0] set to 0 binary peg: ai, unipolar zero offset, low gain caldac[4] set to 0 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[2] set to 136 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[4] set to 137 binary: ai, unipolar zero offset, high gain caldac[0] set to 138 binary: ai, unipolar zero offset, high gain caldac[8] set to 131 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[10] set to 175 binary: ao 0, zero offset, low gain caldac[6] set to 121 binary: ao 0, reference voltage, low gain caldac[11] set to 109 linearity binary: ao 0, unipolar linearity (low), low gain, ao 0, unipolar linearity (mid), low gain, ao 0, unipolar high, low gain caldac[10] set to 162 binary: ao 0, unipolar zero offset, low gain caldac[6] set to 129 binary: ao 0, unipolar high, low gain caldac[11] set to 118 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[1] set to 150 binary: ao 1, zero offset, low gain caldac[9] set to 115 binary: ao 1, reference voltage, low gain caldac[5] set to 116 linearity binary: ao 1, unipolar linearity (low), low gain, ao 1, unipolar linearity (mid), low gain, ao 1, unipolar high, low gain caldac[1] set to 137 binary: ao 1, unipolar zero offset, low gain caldac[9] set to 126 binary: ao 1, unipolar high, low gain caldac[5] set to 128 writing calibration to /usr/local/var/lib/comedi/calibrations/ni_atmio_at-mio-16de-10_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 2.81(89)e-4, target 0 caldac[0] gain=-6.36(12)e-5 V/bit S_min=1.11236 dof=14 caldac[4] gain=-7.686(12)e-4 V/bit S_min=3.79405 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading -6.7(54)e-7, target 0 caldac[0] gain=-6.34990(72)e-5 V/bit S_min=69.1737 dof=14 caldac[4] gain=-3.8454(72)e-6 V/bit S_min=1.76324 dof=14 caldac[8] gain=-1.3132(72)e-6 V/bit S_min=2.98053 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 5.001164(86), target 4.99996 caldac[0] gain=-6.13(12)e-5 V/bit S_min=1.65905 dof=14 caldac[2] gain=-3.356(12)e-4 V/bit S_min=4.50065 dof=14 caldac[4] gain=-7.676(12)e-4 V/bit S_min=3.33635 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 8, aref 3 reading 3.334(87)e-3, target 0.002442 caldac[0] gain=-5.365(98)e-5 V/bit S_min=72.6207 dof=14 caldac[2] gain=2.8677(54)e-4 V/bit S_min=91331.8 dof=14 caldac[4] gain=-4.7878(69)e-4 V/bit S_min=71669 dof=14 caldac[7] gain=-4.2401(66)e-4 V/bit S_min=79733.1 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 15, aref 3 reading 1.362(46)e-5, target 1.221e-05 caldac[0] gain=-3.84618(40)e-5 V/bit S_min=1.43505e+07 dof=14 caldac[2] gain=1.4036(33)e-6 V/bit S_min=59831.6 dof=14 caldac[4] gain=-2.3605(42)e-6 V/bit S_min=49103 dof=14 caldac[7] gain=-2.0945(40)e-6 V/bit S_min=54227.6 dof=14 caldac[8] gain=-8.060(43)e-7 V/bit S_min=5257.87 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 8, aref 3 reading 5.000701(86), target 4.99996 caldac[0] gain=-6.23(12)e-5 V/bit S_min=1.03448 dof=14 caldac[2] gain=3.314(12)e-4 V/bit S_min=4.94084 dof=14 caldac[4] gain=-7.673(12)e-4 V/bit S_min=2.83449 dof=14 caldac[7] gain=-7.471(12)e-4 V/bit S_min=3.74962 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.480(91)e-3, target 0.002442 caldac[0] gain=-6.42(12)e-5 V/bit S_min=1.18484 dof=14 caldac[4] gain=-7.685(12)e-4 V/bit S_min=1.78753 dof=14 caldac[6] gain=-7.813(12)e-4 V/bit S_min=1.4534 dof=14 caldac[10] gain=-1.156(12)e-4 V/bit S_min=1.68224 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.002223(82), target 8.00244 caldac[0] gain=-6.36(12)e-5 V/bit S_min=0.590457 dof=14 caldac[2] gain=-5.394(12)e-4 V/bit S_min=7.49309 dof=14 caldac[4] gain=-7.699(12)e-4 V/bit S_min=2.74453 dof=14 caldac[6] gain=-7.820(12)e-4 V/bit S_min=2.05777 dof=14 caldac[10] gain=-2.079(12)e-4 V/bit S_min=0.876073 dof=14 caldac[11] gain=-1.557(12)e-4 V/bit S_min=1.83484 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.002299(84), target 4.00244 caldac[0] gain=-6.27(12)e-5 V/bit S_min=0.721777 dof=14 caldac[2] gain=-2.717(12)e-4 V/bit S_min=1.68157 dof=14 caldac[4] gain=-7.690(12)e-4 V/bit S_min=1.99066 dof=14 caldac[6] gain=-7.821(12)e-4 V/bit S_min=3.4423 dof=14 caldac[10] gain=-1.951(12)e-4 V/bit S_min=2.16902 dof=14 caldac[11] gain=-7.93(12)e-5 V/bit S_min=0.478897 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.029(90)e-3, target 0.002442 caldac[0] gain=-6.51(12)e-5 V/bit S_min=0.739889 dof=14 caldac[1] gain=-1.162(12)e-4 V/bit S_min=3.82293 dof=14 caldac[4] gain=-7.689(12)e-4 V/bit S_min=3.02564 dof=14 caldac[9] gain=-7.855(12)e-4 V/bit S_min=1.78823 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.002318(89), target 8.00244 caldac[0] gain=-6.31(12)e-5 V/bit S_min=0.555318 dof=14 caldac[1] gain=-2.087(12)e-4 V/bit S_min=1.04023 dof=14 caldac[2] gain=-5.397(12)e-4 V/bit S_min=8.27805 dof=14 caldac[4] gain=-7.698(12)e-4 V/bit S_min=1.61215 dof=14 caldac[5] gain=-1.557(12)e-4 V/bit S_min=1.72913 dof=14 caldac[9] gain=-7.869(12)e-4 V/bit S_min=3.29 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.002590(86), target 4.00244 caldac[0] gain=-6.29(12)e-5 V/bit S_min=1.33538 dof=14 caldac[1] gain=-1.960(12)e-4 V/bit S_min=1.90841 dof=14 caldac[2] gain=-2.715(12)e-4 V/bit S_min=1.53222 dof=14 caldac[4] gain=-7.694(12)e-4 V/bit S_min=2.23332 dof=14 caldac[5] gain=-7.83(12)e-5 V/bit S_min=2.00853 dof=14 caldac[9] gain=-7.867(12)e-4 V/bit S_min=2.38965 dof=14 ao 0, unipolar zero offset, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading -3.48(85)e-4, target 0 caldac[0] gain=-6.33(12)e-5 V/bit S_min=1.48391 dof=14 caldac[4] gain=-7.677(12)e-4 V/bit S_min=2.70062 dof=14 caldac[6] gain=-7.760(12)e-4 V/bit S_min=1.21915 dof=14 caldac[10] gain=-3.71(12)e-5 V/bit S_min=0.643507 dof=14 ao 0, unipolar high, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 9.001135(90), target 9.00122 caldac[0] gain=-6.24(12)e-5 V/bit S_min=1.15766 dof=14 caldac[2] gain=-6.058(12)e-4 V/bit S_min=12.5811 dof=14 caldac[4] gain=-7.697(12)e-4 V/bit S_min=4.02369 dof=14 caldac[6] gain=-7.769(12)e-4 V/bit S_min=4.19127 dof=14 caldac[10] gain=-1.039(12)e-4 V/bit S_min=2.38671 dof=14 caldac[11] gain=-1.756(12)e-4 V/bit S_min=0.612148 dof=14 ao 0, unipolar linearity (low), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.001493(89), target 1.00122 caldac[0] gain=-6.30(12)e-5 V/bit S_min=1.05389 dof=14 caldac[2] gain=-6.99(12)e-5 V/bit S_min=0.860981 dof=14 caldac[4] gain=-7.694(12)e-4 V/bit S_min=1.91761 dof=14 caldac[6] gain=-7.771(12)e-4 V/bit S_min=2.76656 dof=14 caldac[10] gain=-7.24(12)e-5 V/bit S_min=0.611318 dof=14 caldac[11] gain=-1.90(12)e-5 V/bit S_min=0.617253 dof=14 ao 0, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 5.001054(85), target 5.00122 caldac[0] gain=-6.22(12)e-5 V/bit S_min=0.907235 dof=14 caldac[2] gain=-3.354(12)e-4 V/bit S_min=5.21617 dof=14 caldac[4] gain=-7.673(12)e-4 V/bit S_min=2.67471 dof=14 caldac[6] gain=-7.750(12)e-4 V/bit S_min=3.77384 dof=14 caldac[10] gain=-5.59(12)e-5 V/bit S_min=0.809439 dof=14 caldac[11] gain=-9.66(12)e-5 V/bit S_min=2.84538 dof=14 ao 1, unipolar zero offset, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 2.67(87)e-4, target 0 caldac[0] gain=-6.37(12)e-5 V/bit S_min=2.25024 dof=14 caldac[1] gain=-3.79(12)e-5 V/bit S_min=2.57162 dof=14 caldac[4] gain=-7.686(12)e-4 V/bit S_min=4.03167 dof=14 caldac[9] gain=-7.799(12)e-4 V/bit S_min=0.693932 dof=14 ao 1, unipolar high, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 9.001102(86), target 9.00122 caldac[0] gain=-6.21(12)e-5 V/bit S_min=1.2378 dof=14 caldac[1] gain=-1.045(12)e-4 V/bit S_min=1.14609 dof=14 caldac[2] gain=-6.066(12)e-4 V/bit S_min=11.9929 dof=14 caldac[4] gain=-7.690(12)e-4 V/bit S_min=3.19217 dof=14 caldac[5] gain=-1.765(12)e-4 V/bit S_min=2.27774 dof=14 caldac[9] gain=-7.816(12)e-4 V/bit S_min=2.11992 dof=14 ao 1, unipolar linearity (low), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 1.001894(88), target 1.00122 caldac[0] gain=-6.35(12)e-5 V/bit S_min=0.570402 dof=14 caldac[1] gain=-7.32(12)e-5 V/bit S_min=0.578794 dof=14 caldac[2] gain=-6.92(12)e-5 V/bit S_min=1.75952 dof=14 caldac[4] gain=-7.701(12)e-4 V/bit S_min=4.04937 dof=14 caldac[5] gain=-1.89(11)e-5 V/bit S_min=0.658158 dof=14 caldac[9] gain=-7.812(12)e-4 V/bit S_min=2.77616 dof=14 ao 1, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 5.001555(84), target 5.00122 caldac[0] gain=-6.16(12)e-5 V/bit S_min=1.22379 dof=14 caldac[1] gain=-5.62(12)e-5 V/bit S_min=2.61203 dof=14 caldac[2] gain=-3.355(12)e-4 V/bit S_min=4.1919 dof=14 caldac[4] gain=-7.673(12)e-4 V/bit S_min=4.00668 dof=14 caldac[5] gain=-9.66(12)e-5 V/bit S_min=1.54245 dof=14 caldac[9] gain=-7.787(12)e-4 V/bit S_min=4.25176 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 chinasuse92p4sca:/home/walt/comedi/comedi-0.7.70 # comedi_calibrate-5/comedi_calibrate/results/pxi-67130000644000000000000000000013176412416542124017462 00000000000000eeprom reference lsb=165 msb=255 resulting reference voltage: 4.99991 Id: comedi_calibrate.c,v 1.5 2006-10-16 15:11:17 fmhess Exp Driver name: ni_pcimio Device name: pxi-6713 Id: ni.c,v 1.3 2006-10-16 15:11:17 fmhess Exp Comedi version: 0.7.73 linearity binary: dac0 ground, ground referenced, dac0 mid, ground referenced, dac0 high, ground referenced caldac[4] set to 150 relative binary: dac0 high, ground referenced, dac0 ground, ground referenced caldac[8] set to 73 binary: dac0 ground, ground referenced caldac[7] set to 131 linearity binary: dac1 ground, ground referenced, dac1 mid, ground referenced, dac1 high, ground referenced caldac[10] set to 141 relative binary: dac1 high, ground referenced, dac1 ground, ground referenced caldac[2] set to 70 binary: dac1 ground, ground referenced caldac[6] set to 129 linearity binary: dac2 ground, ground referenced, dac2 mid, ground referenced, dac2 high, ground referenced caldac[1] set to 165 relative binary: dac2 high, ground referenced, dac2 ground, ground referenced caldac[11] set to 61 binary: dac2 ground, ground referenced caldac[9] set to 124 linearity binary: dac3 ground, ground referenced, dac3 mid, ground referenced, dac3 high, ground referenced caldac[0] set to 147 relative binary: dac3 high, ground referenced, dac3 ground, ground referenced caldac[5] set to 81 binary: dac3 ground, ground referenced caldac[3] set to 133 linearity binary: dac4 ground, ground referenced, dac4 mid, ground referenced, dac4 high, ground referenced caldac[20] set to 142 relative binary: dac4 high, ground referenced, dac4 ground, ground referenced caldac[24] set to 75 binary: dac4 ground, ground referenced caldac[23] set to 135 linearity binary: dac5 ground, ground referenced, dac5 mid, ground referenced, dac5 high, ground referenced caldac[26] set to 155 relative binary: dac5 high, ground referenced, dac5 ground, ground referenced caldac[18] set to 68 binary: dac5 ground, ground referenced caldac[22] set to 130 linearity binary: dac6 ground, ground referenced, dac6 mid, ground referenced, dac6 high, ground referenced caldac[17] set to 122 relative binary: dac6 high, ground referenced, dac6 ground, ground referenced caldac[27] set to 89 binary: dac6 ground, ground referenced caldac[25] set to 135 linearity binary: dac7 ground, ground referenced, dac7 mid, ground referenced, dac7 high, ground referenced caldac[16] set to 160 relative binary: dac7 high, ground referenced, dac7 ground, ground referenced caldac[21] set to 61 binary: dac7 ground, ground referenced caldac[19] set to 137 dac0 ground, ground referenced Applied calibration for subdev 1, channel 0, range 0, aref 0 Failed to apply calibration for subdev 8, channel 0, range 0, aref 0 reading 0.49987, target 0.499895 caldac[0] gain=-2.66472e-08 V/bit S_min=nan dof=14 caldac[1] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[2] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[3] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[4] gain=4.94095e-06 V/bit S_min=nan dof=14 caldac[5] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[6] gain=5.46969e-08 V/bit S_min=nan dof=14 caldac[7] gain=3.33244e-05 V/bit S_min=nan dof=14 caldac[8] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[9] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[10] gain=-3.50621e-08 V/bit S_min=nan dof=14 caldac[11] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[12] gain=8.4149e-09 V/bit S_min=nan dof=14 caldac[13] gain=5.60993e-09 V/bit S_min=nan dof=14 caldac[14] gain=-4.76844e-08 V/bit S_min=nan dof=14 caldac[15] gain=3.64646e-08 V/bit S_min=nan dof=14 caldac[16] gain=4.3477e-08 V/bit S_min=nan dof=14 caldac[17] gain=-3.92695e-08 V/bit S_min=nan dof=14 caldac[18] gain=-2.80497e-08 V/bit S_min=nan dof=14 caldac[19] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[20] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[21] gain=2.80497e-09 V/bit S_min=nan dof=14 caldac[22] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[23] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[24] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[25] gain=5.60993e-09 V/bit S_min=nan dof=14 caldac[26] gain=-2.38422e-08 V/bit S_min=nan dof=14 caldac[27] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[28] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[29] gain=-7.01242e-08 V/bit S_min=nan dof=14 caldac[30] gain=2.66472e-08 V/bit S_min=nan dof=14 caldac[31] gain=1.40248e-08 V/bit S_min=nan dof=14 dac0 mid, ground referenced Applied calibration for subdev 1, channel 0, range 0, aref 0 Failed to apply calibration for subdev 8, channel 0, range 0, aref 0 reading 0.327565, target 0.327589 caldac[0] gain=4.0672e-08 V/bit S_min=nan dof=14 caldac[1] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[2] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[3] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[4] gain=6.93528e-06 V/bit S_min=nan dof=14 caldac[5] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[6] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[7] gain=3.3344e-05 V/bit S_min=nan dof=14 caldac[8] gain=4.50478e-06 V/bit S_min=nan dof=14 caldac[9] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[10] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[11] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[12] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[13] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[14] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[15] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[16] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[17] gain=2.38422e-08 V/bit S_min=nan dof=14 caldac[18] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[19] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[20] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[21] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[22] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[23] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[24] gain=-3.92695e-08 V/bit S_min=nan dof=14 caldac[25] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[26] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[27] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[28] gain=-2.38422e-08 V/bit S_min=nan dof=14 caldac[29] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[30] gain=1.96348e-08 V/bit S_min=nan dof=14 caldac[31] gain=-8.4149e-09 V/bit S_min=nan dof=14 dac0 high, ground referenced Applied calibration for subdev 1, channel 0, range 0, aref 0 Failed to apply calibration for subdev 8, channel 0, range 0, aref 0 reading 0.155261, target 0.155284 caldac[0] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[1] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[2] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[3] gain=2.80497e-09 V/bit S_min=nan dof=14 caldac[4] gain=7.57762e-06 V/bit S_min=nan dof=14 caldac[5] gain=2.66472e-08 V/bit S_min=nan dof=14 caldac[6] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[7] gain=3.33286e-05 V/bit S_min=nan dof=14 caldac[8] gain=8.9759e-06 V/bit S_min=nan dof=14 caldac[9] gain=-3.08546e-08 V/bit S_min=nan dof=14 caldac[10] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[11] gain=-2.52447e-08 V/bit S_min=nan dof=14 caldac[12] gain=-7.01242e-09 V/bit S_min=nan dof=14 caldac[13] gain=2.38422e-08 V/bit S_min=nan dof=14 caldac[14] gain=8.4149e-09 V/bit S_min=nan dof=14 caldac[15] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[16] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[17] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[18] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[19] gain=-2.94522e-08 V/bit S_min=nan dof=14 caldac[20] gain=3.22571e-08 V/bit S_min=nan dof=14 caldac[21] gain=-2.52447e-08 V/bit S_min=nan dof=14 caldac[22] gain=-8.4149e-09 V/bit S_min=nan dof=14 caldac[23] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[24] gain=-7.01242e-09 V/bit S_min=nan dof=14 caldac[25] gain=2.38422e-08 V/bit S_min=nan dof=14 caldac[26] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[27] gain=-6.03068e-08 V/bit S_min=nan dof=14 caldac[28] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[29] gain=-2.24397e-08 V/bit S_min=nan dof=14 caldac[30] gain=2.80497e-08 V/bit S_min=nan dof=14 caldac[31] gain=-5.04894e-08 V/bit S_min=nan dof=14 dac1 ground, ground referenced Applied calibration for subdev 1, channel 1, range 0, aref 0 Failed to apply calibration for subdev 8, channel 1, range 0, aref 0 reading 0.49987, target 0.499895 caldac[0] gain=3.08546e-08 V/bit S_min=nan dof=14 caldac[1] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[2] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[3] gain=2.80497e-09 V/bit S_min=nan dof=14 caldac[4] gain=-8.4149e-09 V/bit S_min=nan dof=14 caldac[5] gain=2.66472e-08 V/bit S_min=nan dof=14 caldac[6] gain=3.32711e-05 V/bit S_min=nan dof=14 caldac[7] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[8] gain=4.3477e-08 V/bit S_min=nan dof=14 caldac[9] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[10] gain=4.96058e-06 V/bit S_min=nan dof=14 caldac[11] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[12] gain=-2.38422e-08 V/bit S_min=nan dof=14 caldac[13] gain=-3.78671e-08 V/bit S_min=nan dof=14 caldac[14] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[15] gain=-6.53072e-19 V/bit S_min=nan dof=14 caldac[16] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[17] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[18] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[19] gain=3.50621e-08 V/bit S_min=nan dof=14 caldac[20] gain=5.04894e-08 V/bit S_min=nan dof=14 caldac[21] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[22] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[23] gain=0 V/bit S_min=nan dof=14 caldac[24] gain=0 V/bit S_min=nan dof=14 caldac[25] gain=-1.96348e-08 V/bit S_min=nan dof=14 caldac[26] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[27] gain=5.60993e-09 V/bit S_min=nan dof=14 caldac[28] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[29] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[30] gain=-2.94522e-08 V/bit S_min=nan dof=14 caldac[31] gain=-2.38422e-08 V/bit S_min=nan dof=14 dac1 mid, ground referenced Applied calibration for subdev 1, channel 1, range 0, aref 0 Failed to apply calibration for subdev 8, channel 1, range 0, aref 0 reading 0.327565, target 0.327589 caldac[0] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[1] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[2] gain=4.47533e-06 V/bit S_min=nan dof=14 caldac[3] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[4] gain=2.80497e-08 V/bit S_min=nan dof=14 caldac[5] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[6] gain=3.32276e-05 V/bit S_min=nan dof=14 caldac[7] gain=-2.80497e-08 V/bit S_min=nan dof=14 caldac[8] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[9] gain=4.48795e-08 V/bit S_min=nan dof=14 caldac[10] gain=6.92126e-06 V/bit S_min=nan dof=14 caldac[11] gain=-3.50621e-08 V/bit S_min=nan dof=14 caldac[12] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[13] gain=3.08546e-08 V/bit S_min=nan dof=14 caldac[14] gain=2.38422e-08 V/bit S_min=nan dof=14 caldac[15] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[16] gain=5.60993e-09 V/bit S_min=nan dof=14 caldac[17] gain=-2.44902e-19 V/bit S_min=nan dof=14 caldac[18] gain=-2.38422e-08 V/bit S_min=nan dof=14 caldac[19] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[20] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[21] gain=2.94522e-08 V/bit S_min=nan dof=14 caldac[22] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[23] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[24] gain=-3.22571e-08 V/bit S_min=nan dof=14 caldac[25] gain=-2.94522e-08 V/bit S_min=nan dof=14 caldac[26] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[27] gain=-5.18919e-08 V/bit S_min=nan dof=14 caldac[28] gain=-8.4149e-09 V/bit S_min=nan dof=14 caldac[29] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[30] gain=-1.96348e-08 V/bit S_min=nan dof=14 caldac[31] gain=1.68298e-08 V/bit S_min=nan dof=14 dac1 high, ground referenced Applied calibration for subdev 1, channel 1, range 0, aref 0 Failed to apply calibration for subdev 8, channel 1, range 0, aref 0 reading 0.155245, target 0.155284 caldac[0] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[1] gain=-2.38422e-08 V/bit S_min=nan dof=14 caldac[2] gain=8.98431e-06 V/bit S_min=nan dof=14 caldac[3] gain=3.36596e-08 V/bit S_min=nan dof=14 caldac[4] gain=-2.66472e-08 V/bit S_min=nan dof=14 caldac[5] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[6] gain=3.32375e-05 V/bit S_min=nan dof=14 caldac[7] gain=3.64646e-08 V/bit S_min=nan dof=14 caldac[8] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[9] gain=5.60993e-09 V/bit S_min=nan dof=14 caldac[10] gain=7.57762e-06 V/bit S_min=nan dof=14 caldac[11] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[12] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[13] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[14] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[15] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[16] gain=2.80497e-09 V/bit S_min=nan dof=14 caldac[17] gain=-2.52447e-08 V/bit S_min=nan dof=14 caldac[18] gain=3.92695e-08 V/bit S_min=nan dof=14 caldac[19] gain=-4.0672e-08 V/bit S_min=nan dof=14 caldac[20] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[21] gain=-3.64646e-08 V/bit S_min=nan dof=14 caldac[22] gain=-4.3477e-08 V/bit S_min=nan dof=14 caldac[23] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[24] gain=-4.90869e-08 V/bit S_min=nan dof=14 caldac[25] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[26] gain=2.80497e-08 V/bit S_min=nan dof=14 caldac[27] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[28] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[29] gain=8.4149e-09 V/bit S_min=nan dof=14 caldac[30] gain=-2.66472e-08 V/bit S_min=nan dof=14 caldac[31] gain=2.24397e-08 V/bit S_min=nan dof=14 dac2 ground, ground referenced Applied calibration for subdev 1, channel 2, range 0, aref 0 Failed to apply calibration for subdev 8, channel 2, range 0, aref 0 reading 0.499901, target 0.499895 caldac[0] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[1] gain=4.94656e-06 V/bit S_min=nan dof=14 caldac[2] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[3] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[4] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[5] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[6] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[7] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[8] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[9] gain=3.31365e-05 V/bit S_min=nan dof=14 caldac[10] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[11] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[12] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[13] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[14] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[15] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[16] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[17] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[18] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[19] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[20] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[21] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[22] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[23] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[24] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[25] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[26] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[27] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[28] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[29] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[30] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[31] gain=1.30614e-18 V/bit S_min=nan dof=14 dac2 mid, ground referenced Applied calibration for subdev 1, channel 2, range 0, aref 0 Failed to apply calibration for subdev 8, channel 2, range 0, aref 0 reading 0.327581, target 0.327589 caldac[0] gain=-3.92695e-08 V/bit S_min=nan dof=14 caldac[1] gain=6.95912e-06 V/bit S_min=nan dof=14 caldac[2] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[3] gain=2.80497e-08 V/bit S_min=nan dof=14 caldac[4] gain=2.94522e-08 V/bit S_min=nan dof=14 caldac[5] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[6] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[7] gain=-3.36596e-08 V/bit S_min=nan dof=14 caldac[8] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[9] gain=3.31659e-05 V/bit S_min=nan dof=14 caldac[10] gain=-3.36596e-08 V/bit S_min=nan dof=14 caldac[11] gain=4.4627e-06 V/bit S_min=nan dof=14 caldac[12] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[13] gain=2.94522e-08 V/bit S_min=nan dof=14 caldac[14] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[15] gain=1.96348e-08 V/bit S_min=nan dof=14 caldac[16] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[17] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[18] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[19] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[20] gain=-2.44902e-19 V/bit S_min=nan dof=14 caldac[21] gain=1.96348e-08 V/bit S_min=nan dof=14 caldac[22] gain=-8.4149e-09 V/bit S_min=nan dof=14 caldac[23] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[24] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[25] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[26] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[27] gain=3.50621e-08 V/bit S_min=nan dof=14 caldac[28] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[29] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[30] gain=-4.48795e-08 V/bit S_min=nan dof=14 caldac[31] gain=1.40248e-09 V/bit S_min=nan dof=14 dac2 high, ground referenced Applied calibration for subdev 1, channel 2, range 0, aref 0 Failed to apply calibration for subdev 8, channel 2, range 0, aref 0 reading 0.155276, target 0.155284 caldac[0] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[1] gain=7.61128e-06 V/bit S_min=nan dof=14 caldac[2] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[3] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[4] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[5] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[6] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[7] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[8] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[9] gain=3.31267e-05 V/bit S_min=nan dof=14 caldac[10] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[11] gain=8.87912e-06 V/bit S_min=nan dof=14 caldac[12] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[13] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[14] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[15] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[16] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[17] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[18] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[19] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[20] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[21] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[22] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[23] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[24] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[25] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[26] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[27] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[28] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[29] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[30] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[31] gain=7.34706e-19 V/bit S_min=nan dof=14 dac3 ground, ground referenced Applied calibration for subdev 1, channel 3, range 0, aref 0 Failed to apply calibration for subdev 8, channel 3, range 0, aref 0 reading 0.499886, target 0.499895 caldac[0] gain=5.00126e-06 V/bit S_min=nan dof=14 caldac[1] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[2] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[3] gain=3.33104e-05 V/bit S_min=nan dof=14 caldac[4] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[5] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[6] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[7] gain=-2.80497e-08 V/bit S_min=nan dof=14 caldac[8] gain=-7.01242e-09 V/bit S_min=nan dof=14 caldac[9] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[10] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[11] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[12] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[13] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[14] gain=2.94522e-08 V/bit S_min=nan dof=14 caldac[15] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[16] gain=3.08546e-08 V/bit S_min=nan dof=14 caldac[17] gain=6.53072e-19 V/bit S_min=nan dof=14 caldac[18] gain=8.4149e-09 V/bit S_min=nan dof=14 caldac[19] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[20] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[21] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[22] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[23] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[24] gain=-2.38422e-08 V/bit S_min=nan dof=14 caldac[25] gain=2.24397e-08 V/bit S_min=nan dof=14 caldac[26] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[27] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[28] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[29] gain=-2.52447e-08 V/bit S_min=nan dof=14 caldac[30] gain=3.08546e-08 V/bit S_min=nan dof=14 caldac[31] gain=-2.10373e-08 V/bit S_min=nan dof=14 dac3 mid, ground referenced Applied calibration for subdev 1, channel 3, range 0, aref 0 Failed to apply calibration for subdev 8, channel 3, range 0, aref 0 reading 0.327596, target 0.327589 caldac[0] gain=6.95912e-06 V/bit S_min=nan dof=14 caldac[1] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[2] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[3] gain=3.33006e-05 V/bit S_min=nan dof=14 caldac[4] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[5] gain=4.44026e-06 V/bit S_min=nan dof=14 caldac[6] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[7] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[8] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[9] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[10] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[11] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[12] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[13] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[14] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[15] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[16] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[17] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[18] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[19] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[20] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[21] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[22] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[23] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[24] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[25] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[26] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[27] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[28] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[29] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[30] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[31] gain=4.0817e-19 V/bit S_min=nan dof=14 dac3 high, ground referenced Applied calibration for subdev 1, channel 3, range 0, aref 0 Failed to apply calibration for subdev 8, channel 3, range 0, aref 0 reading 0.155276, target 0.155284 caldac[0] gain=7.62951e-06 V/bit S_min=nan dof=14 caldac[1] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[2] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[3] gain=3.33328e-05 V/bit S_min=nan dof=14 caldac[4] gain=2.24397e-08 V/bit S_min=nan dof=14 caldac[5] gain=8.95065e-06 V/bit S_min=nan dof=14 caldac[6] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[7] gain=2.80497e-08 V/bit S_min=nan dof=14 caldac[8] gain=-2.24397e-08 V/bit S_min=nan dof=14 caldac[9] gain=-2.24397e-08 V/bit S_min=nan dof=14 caldac[10] gain=3.22571e-08 V/bit S_min=nan dof=14 caldac[11] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[12] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[13] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[14] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[15] gain=5.60993e-09 V/bit S_min=nan dof=14 caldac[16] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[17] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[18] gain=-3.64646e-08 V/bit S_min=nan dof=14 caldac[19] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[20] gain=3.50621e-08 V/bit S_min=nan dof=14 caldac[21] gain=1.96348e-08 V/bit S_min=nan dof=14 caldac[22] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[23] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[24] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[25] gain=-8.4149e-09 V/bit S_min=nan dof=14 caldac[26] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[27] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[28] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[29] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[30] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[31] gain=1.40248e-09 V/bit S_min=nan dof=14 dac4 ground, ground referenced Applied calibration for subdev 1, channel 4, range 0, aref 0 Failed to apply calibration for subdev 8, channel 4, range 0, aref 0 reading 0.499901, target 0.499895 caldac[0] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[1] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[2] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[3] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[4] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[5] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[6] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[7] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[8] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[9] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[10] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[11] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[12] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[13] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[14] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[15] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[16] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[17] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[18] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[19] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[20] gain=4.96339e-06 V/bit S_min=nan dof=14 caldac[21] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[22] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[23] gain=3.31617e-05 V/bit S_min=nan dof=14 caldac[24] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[25] gain=2.24397e-08 V/bit S_min=nan dof=14 caldac[26] gain=5.60993e-09 V/bit S_min=nan dof=14 caldac[27] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[28] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[29] gain=1.30614e-18 V/bit S_min=nan dof=14 caldac[30] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[31] gain=1.30614e-18 V/bit S_min=nan dof=14 dac4 mid, ground referenced Applied calibration for subdev 1, channel 4, range 0, aref 0 Failed to apply calibration for subdev 8, channel 4, range 0, aref 0 reading 0.327596, target 0.327589 caldac[0] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[1] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[2] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[3] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[4] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[5] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[6] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[7] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[8] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[9] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[10] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[11] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[12] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[13] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[14] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[15] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[16] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[17] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[18] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[19] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[20] gain=6.96754e-06 V/bit S_min=nan dof=14 caldac[21] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[22] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[23] gain=3.31786e-05 V/bit S_min=nan dof=14 caldac[24] gain=4.47392e-06 V/bit S_min=nan dof=14 caldac[25] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[26] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[27] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[28] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[29] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[30] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[31] gain=4.0817e-19 V/bit S_min=nan dof=14 dac4 high, ground referenced Applied calibration for subdev 1, channel 4, range 0, aref 0 Failed to apply calibration for subdev 8, channel 4, range 0, aref 0 reading 0.155291, target 0.155284 caldac[0] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[1] gain=2.80497e-09 V/bit S_min=nan dof=14 caldac[2] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[3] gain=-3.64646e-08 V/bit S_min=nan dof=14 caldac[4] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[5] gain=2.38422e-08 V/bit S_min=nan dof=14 caldac[6] gain=-2.24397e-08 V/bit S_min=nan dof=14 caldac[7] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[8] gain=-1.96348e-08 V/bit S_min=nan dof=14 caldac[9] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[10] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[11] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[12] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[13] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[14] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[15] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[16] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[17] gain=-2.24397e-08 V/bit S_min=nan dof=14 caldac[18] gain=-3.36596e-08 V/bit S_min=nan dof=14 caldac[19] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[20] gain=7.65756e-06 V/bit S_min=nan dof=14 caldac[21] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[22] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[23] gain=3.32206e-05 V/bit S_min=nan dof=14 caldac[24] gain=8.96327e-06 V/bit S_min=nan dof=14 caldac[25] gain=3.22571e-08 V/bit S_min=nan dof=14 caldac[26] gain=8.4149e-09 V/bit S_min=nan dof=14 caldac[27] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[28] gain=-3.08546e-08 V/bit S_min=nan dof=14 caldac[29] gain=-2.66472e-08 V/bit S_min=nan dof=14 caldac[30] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[31] gain=1.40248e-09 V/bit S_min=nan dof=14 dac5 ground, ground referenced Applied calibration for subdev 1, channel 5, range 0, aref 0 Failed to apply calibration for subdev 8, channel 5, range 0, aref 0 reading 0.499886, target 0.499895 caldac[0] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[1] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[2] gain=0 V/bit S_min=nan dof=14 caldac[3] gain=0 V/bit S_min=nan dof=14 caldac[4] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[5] gain=0 V/bit S_min=nan dof=14 caldac[6] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[7] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[8] gain=0 V/bit S_min=nan dof=14 caldac[9] gain=-3.64646e-08 V/bit S_min=nan dof=14 caldac[10] gain=0 V/bit S_min=nan dof=14 caldac[11] gain=0 V/bit S_min=nan dof=14 caldac[12] gain=0 V/bit S_min=nan dof=14 caldac[13] gain=0 V/bit S_min=nan dof=14 caldac[14] gain=0 V/bit S_min=nan dof=14 caldac[15] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[16] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[17] gain=0 V/bit S_min=nan dof=14 caldac[18] gain=0 V/bit S_min=nan dof=14 caldac[19] gain=0 V/bit S_min=nan dof=14 caldac[20] gain=0 V/bit S_min=nan dof=14 caldac[21] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[22] gain=3.33118e-05 V/bit S_min=nan dof=14 caldac[23] gain=0 V/bit S_min=nan dof=14 caldac[24] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[25] gain=2.80497e-08 V/bit S_min=nan dof=14 caldac[26] gain=4.96479e-06 V/bit S_min=nan dof=14 caldac[27] gain=0 V/bit S_min=nan dof=14 caldac[28] gain=0 V/bit S_min=nan dof=14 caldac[29] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[30] gain=4.20745e-09 V/bit S_min=nan dof=14 caldac[31] gain=0 V/bit S_min=nan dof=14 dac5 mid, ground referenced Applied calibration for subdev 1, channel 5, range 0, aref 0 Failed to apply calibration for subdev 8, channel 5, range 0, aref 0 reading 0.327581, target 0.327589 caldac[0] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[1] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[2] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[3] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[4] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[5] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[6] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[7] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[8] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[9] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[10] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[11] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[12] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[13] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[14] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[15] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[16] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[17] gain=-2.44902e-19 V/bit S_min=nan dof=14 caldac[18] gain=4.50618e-06 V/bit S_min=nan dof=14 caldac[19] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[20] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[21] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[22] gain=3.33384e-05 V/bit S_min=nan dof=14 caldac[23] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[24] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[25] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[26] gain=6.93528e-06 V/bit S_min=nan dof=14 caldac[27] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[28] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[29] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[30] gain=-8.97975e-19 V/bit S_min=nan dof=14 caldac[31] gain=-8.97975e-19 V/bit S_min=nan dof=14 dac5 high, ground referenced Applied calibration for subdev 1, channel 5, range 0, aref 0 Failed to apply calibration for subdev 8, channel 5, range 0, aref 0 reading 0.155276, target 0.155284 caldac[0] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[1] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[2] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[3] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[4] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[5] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[6] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[7] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[8] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[9] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[10] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[11] gain=-3.50621e-08 V/bit S_min=nan dof=14 caldac[12] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[13] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[14] gain=8.4149e-09 V/bit S_min=nan dof=14 caldac[15] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[16] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[17] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[18] gain=9.01657e-06 V/bit S_min=nan dof=14 caldac[19] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[20] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[21] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[22] gain=3.33244e-05 V/bit S_min=nan dof=14 caldac[23] gain=2.80497e-09 V/bit S_min=nan dof=14 caldac[24] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[25] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[26] gain=7.58884e-06 V/bit S_min=nan dof=14 caldac[27] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[28] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[29] gain=8.4149e-09 V/bit S_min=nan dof=14 caldac[30] gain=3.50621e-08 V/bit S_min=nan dof=14 caldac[31] gain=-1.12199e-08 V/bit S_min=nan dof=14 dac6 ground, ground referenced Applied calibration for subdev 1, channel 6, range 0, aref 0 Failed to apply calibration for subdev 8, channel 6, range 0, aref 0 reading 0.49987, target 0.499895 caldac[0] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[1] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[2] gain=2.10373e-08 V/bit S_min=nan dof=14 caldac[3] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[4] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[5] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[6] gain=0 V/bit S_min=nan dof=14 caldac[7] gain=0 V/bit S_min=nan dof=14 caldac[8] gain=1.54273e-08 V/bit S_min=nan dof=14 caldac[9] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[10] gain=0 V/bit S_min=nan dof=14 caldac[11] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[12] gain=0 V/bit S_min=nan dof=14 caldac[13] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[14] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[15] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[16] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[17] gain=4.95217e-06 V/bit S_min=nan dof=14 caldac[18] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[19] gain=3.50621e-08 V/bit S_min=nan dof=14 caldac[20] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[21] gain=0 V/bit S_min=nan dof=14 caldac[22] gain=1.40248e-09 V/bit S_min=nan dof=14 caldac[23] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[24] gain=-1.96348e-08 V/bit S_min=nan dof=14 caldac[25] gain=3.33356e-05 V/bit S_min=nan dof=14 caldac[26] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[27] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[28] gain=2.52447e-08 V/bit S_min=nan dof=14 caldac[29] gain=0 V/bit S_min=nan dof=14 caldac[30] gain=0 V/bit S_min=nan dof=14 caldac[31] gain=9.81739e-09 V/bit S_min=nan dof=14 dac6 mid, ground referenced Applied calibration for subdev 1, channel 6, range 0, aref 0 Failed to apply calibration for subdev 8, channel 6, range 0, aref 0 reading 0.327565, target 0.327589 caldac[0] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[1] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[2] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[3] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[4] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[5] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[6] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[7] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[8] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[9] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[10] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[11] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[12] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[13] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[14] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[15] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[16] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[17] gain=6.92546e-06 V/bit S_min=nan dof=14 caldac[18] gain=-7.01242e-09 V/bit S_min=nan dof=14 caldac[19] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[20] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[21] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[22] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[23] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[24] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[25] gain=3.33455e-05 V/bit S_min=nan dof=14 caldac[26] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[27] gain=4.46411e-06 V/bit S_min=nan dof=14 caldac[28] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[29] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[30] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[31] gain=4.0817e-19 V/bit S_min=nan dof=14 dac6 high, ground referenced Applied calibration for subdev 1, channel 6, range 0, aref 0 Failed to apply calibration for subdev 8, channel 6, range 0, aref 0 reading 0.155276, target 0.155284 caldac[0] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[1] gain=2.94522e-08 V/bit S_min=nan dof=14 caldac[2] gain=-1.40248e-09 V/bit S_min=nan dof=14 caldac[3] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[4] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[5] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[6] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[7] gain=-2.66472e-08 V/bit S_min=nan dof=14 caldac[8] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[9] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[10] gain=-7.01242e-09 V/bit S_min=nan dof=14 caldac[11] gain=2.24397e-08 V/bit S_min=nan dof=14 caldac[12] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[13] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[14] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[15] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[16] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[17] gain=7.59024e-06 V/bit S_min=nan dof=14 caldac[18] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[19] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[20] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[21] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[22] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[23] gain=1.26224e-08 V/bit S_min=nan dof=14 caldac[24] gain=-3.50621e-08 V/bit S_min=nan dof=14 caldac[25] gain=3.333e-05 V/bit S_min=nan dof=14 caldac[26] gain=-4.48795e-08 V/bit S_min=nan dof=14 caldac[27] gain=8.96187e-06 V/bit S_min=nan dof=14 caldac[28] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[29] gain=4.48795e-08 V/bit S_min=nan dof=14 caldac[30] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[31] gain=8.4149e-09 V/bit S_min=nan dof=14 dac7 ground, ground referenced Applied calibration for subdev 1, channel 7, range 0, aref 0 Failed to apply calibration for subdev 8, channel 7, range 0, aref 0 reading 0.499901, target 0.499895 caldac[0] gain=4.76844e-08 V/bit S_min=nan dof=14 caldac[1] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[2] gain=4.20745e-08 V/bit S_min=nan dof=14 caldac[3] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[4] gain=-9.81739e-09 V/bit S_min=nan dof=14 caldac[5] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[6] gain=-2.52447e-08 V/bit S_min=nan dof=14 caldac[7] gain=-1.68298e-08 V/bit S_min=nan dof=14 caldac[8] gain=1.82323e-08 V/bit S_min=nan dof=14 caldac[9] gain=-3.08546e-08 V/bit S_min=nan dof=14 caldac[10] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[11] gain=-2.52447e-08 V/bit S_min=nan dof=14 caldac[12] gain=3.78671e-08 V/bit S_min=nan dof=14 caldac[13] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[14] gain=2.80497e-08 V/bit S_min=nan dof=14 caldac[15] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[16] gain=4.95497e-06 V/bit S_min=nan dof=14 caldac[17] gain=2.66472e-08 V/bit S_min=nan dof=14 caldac[18] gain=3.08546e-08 V/bit S_min=nan dof=14 caldac[19] gain=3.33791e-05 V/bit S_min=nan dof=14 caldac[20] gain=3.22571e-08 V/bit S_min=nan dof=14 caldac[21] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[22] gain=2.66472e-08 V/bit S_min=nan dof=14 caldac[23] gain=1.12199e-08 V/bit S_min=nan dof=14 caldac[24] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[25] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[26] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[27] gain=-2.66472e-08 V/bit S_min=nan dof=14 caldac[28] gain=-2.80497e-08 V/bit S_min=nan dof=14 caldac[29] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[30] gain=-3.64646e-08 V/bit S_min=nan dof=14 caldac[31] gain=2.24397e-08 V/bit S_min=nan dof=14 dac7 mid, ground referenced Applied calibration for subdev 1, channel 7, range 0, aref 0 Failed to apply calibration for subdev 8, channel 7, range 0, aref 0 reading 0.327596, target 0.327589 caldac[0] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[1] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[2] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[3] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[4] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[5] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[6] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[7] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[8] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[9] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[10] gain=-1.26224e-08 V/bit S_min=nan dof=14 caldac[11] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[12] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[13] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[14] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[15] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[16] gain=6.95632e-06 V/bit S_min=nan dof=14 caldac[17] gain=9.81739e-09 V/bit S_min=nan dof=14 caldac[18] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[19] gain=3.33258e-05 V/bit S_min=nan dof=14 caldac[20] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[21] gain=4.49496e-06 V/bit S_min=nan dof=14 caldac[22] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[23] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[24] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[25] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[26] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[27] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[28] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[29] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[30] gain=4.0817e-19 V/bit S_min=nan dof=14 caldac[31] gain=4.0817e-19 V/bit S_min=nan dof=14 dac7 high, ground referenced Applied calibration for subdev 1, channel 7, range 0, aref 0 Failed to apply calibration for subdev 8, channel 7, range 0, aref 0 reading 0.155291, target 0.155284 caldac[0] gain=2.66472e-08 V/bit S_min=nan dof=14 caldac[1] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[2] gain=-3.08546e-08 V/bit S_min=nan dof=14 caldac[3] gain=-1.82323e-08 V/bit S_min=nan dof=14 caldac[4] gain=-3.78671e-08 V/bit S_min=nan dof=14 caldac[5] gain=-1.40248e-08 V/bit S_min=nan dof=14 caldac[6] gain=-8.4149e-09 V/bit S_min=nan dof=14 caldac[7] gain=-1.54273e-08 V/bit S_min=nan dof=14 caldac[8] gain=1.40248e-08 V/bit S_min=nan dof=14 caldac[9] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[10] gain=3.08546e-08 V/bit S_min=nan dof=14 caldac[11] gain=1.96348e-08 V/bit S_min=nan dof=14 caldac[12] gain=4.48795e-08 V/bit S_min=nan dof=14 caldac[13] gain=7.34706e-19 V/bit S_min=nan dof=14 caldac[14] gain=-5.60993e-09 V/bit S_min=nan dof=14 caldac[15] gain=-1.96348e-08 V/bit S_min=nan dof=14 caldac[16] gain=7.58183e-06 V/bit S_min=nan dof=14 caldac[17] gain=6.17093e-08 V/bit S_min=nan dof=14 caldac[18] gain=7.01242e-09 V/bit S_min=nan dof=14 caldac[19] gain=3.33455e-05 V/bit S_min=nan dof=14 caldac[20] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[21] gain=8.96468e-06 V/bit S_min=nan dof=14 caldac[22] gain=-2.80497e-09 V/bit S_min=nan dof=14 caldac[23] gain=2.80497e-09 V/bit S_min=nan dof=14 caldac[24] gain=1.68298e-08 V/bit S_min=nan dof=14 caldac[25] gain=-2.10373e-08 V/bit S_min=nan dof=14 caldac[26] gain=-4.0672e-08 V/bit S_min=nan dof=14 caldac[27] gain=-6.87217e-08 V/bit S_min=nan dof=14 caldac[28] gain=-3.36596e-08 V/bit S_min=nan dof=14 caldac[29] gain=-4.20745e-09 V/bit S_min=nan dof=14 caldac[30] gain=-1.12199e-08 V/bit S_min=nan dof=14 caldac[31] gain=2.94522e-08 V/bit S_min=nan dof=14 Applied calibration for subdevice 1, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/DAQCard-6036E0000644000000000000000000002202112416542124020145 00000000000000root@nblaser:~/COMEDI/programmi# comedi_calibrate eeprom reference lsb=193 msb=253 resulting reference voltage: 4.99942 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_mio_cs Device name: DAQCard-6036E Id: ni.c,v 1.116 2004/05/25 00:15:34 fmhess Exp Comedi version: 0.7.68 ai, bipolar zero offset, low gain reading 0.01458(15), target 0 caldac[0] gain=-1.291(27)e-5 V/bit S_min=3.02742 dof=14 caldac[2] gain=7.79(27)e-6 V/bit S_min=0.47875 dof=14 caldac[4] gain=-7.8742(27)e-4 V/bit S_min=44.3247 dof=14 ai, bipolar zero offset, high gain reading 2.142(85)e-4, target 0 caldac[0] gain=-1.211(12)e-5 V/bit S_min=0.0896184 dof=14 caldac[4] gain=-3.94(12)e-6 V/bit S_min=0.0120322 dof=14 ai, bipolar voltage reference, low gain reading 5.038787(21), target 4.99942 caldac[0] gain=-1.427(27)e-5 V/bit S_min=1.90854 dof=14 caldac[2] gain=-3.8525(27)e-4 V/bit S_min=60.0839 dof=14 caldac[4] gain=-7.8864(27)e-4 V/bit S_min=21.8159 dof=14 ao 0, zero offset, low gain reading 0.020671(31), target 0.00015259 caldac[0] gain=-1.242(35)e-5 V/bit S_min=0.877272 dof=14 caldac[2] gain=7.98(35)e-6 V/bit S_min=0.470507 dof=14 caldac[4] gain=-7.8747(35)e-4 V/bit S_min=23.9215 dof=14 caldac[6] gain=2.3520(35)e-4 V/bit S_min=15.9443 dof=14 caldac[10] gain=-1.7676(34)e-4 V/bit S_min=2.39467 dof=14 ao 0, reference voltage, low gain reading 8.052253(25), target 8.00015 caldac[0] gain=-1.459(35)e-5 V/bit S_min=0.791589 dof=14 caldac[2] gain=-6.2068(35)e-4 V/bit S_min=168.854 dof=14 caldac[4] gain=-7.8890(35)e-4 V/bit S_min=37.5002 dof=14 caldac[6] gain=2.3465(35)e-4 V/bit S_min=2.53569 dof=14 caldac[7] gain=-3.0580(35)e-4 V/bit S_min=2.02196 dof=14 caldac[10] gain=-2.4015(35)e-4 V/bit S_min=1.53014 dof=14 caldac[11] gain=-3.183(35)e-5 V/bit S_min=0.458829 dof=14 ao 0, linearity (mid), low gain reading 4.036855(26), target 4.00015 caldac[0] gain=-1.324(35)e-5 V/bit S_min=1.06738 dof=14 caldac[2] gain=-3.0547(34)e-4 V/bit S_min=13.3536 dof=14 caldac[4] gain=-7.8684(35)e-4 V/bit S_min=20.1083 dof=14 caldac[6] gain=2.3539(34)e-4 V/bit S_min=2.51378 dof=14 caldac[7] gain=-1.5316(35)e-4 V/bit S_min=1.00704 dof=14 caldac[10] gain=-2.1780(35)e-4 V/bit S_min=2.93219 dof=14 caldac[11] gain=-1.592(35)e-5 V/bit S_min=1.43679 dof=14 ao 1, zero offset, low gain reading 0.024278(26), target 0.00015259 caldac[0] gain=-1.207(35)e-5 V/bit S_min=0.615599 dof=14 caldac[1] gain=-1.7658(36)e-4 V/bit S_min=2.31268 dof=14 caldac[2] gain=7.64(35)e-6 V/bit S_min=0.352221 dof=14 caldac[4] gain=-7.8727(35)e-4 V/bit S_min=26.5067 dof=14 caldac[9] gain=2.3499(36)e-4 V/bit S_min=11.4821 dof=14 ao 1, reference voltage, low gain reading 8.057690(26), target 8.00015 caldac[0] gain=-1.463(36)e-5 V/bit S_min=1.38098 dof=14 caldac[1] gain=-2.3991(36)e-4 V/bit S_min=4.21848 dof=14 caldac[2] gain=-6.2159(36)e-4 V/bit S_min=191.147 dof=14 caldac[3] gain=-3.0727(36)e-4 V/bit S_min=7.32707 dof=14 caldac[4] gain=-7.8877(36)e-4 V/bit S_min=41.0139 dof=14 caldac[5] gain=-3.165(36)e-5 V/bit S_min=0.641647 dof=14 caldac[9] gain=2.3422(35)e-4 V/bit S_min=0.997272 dof=14 ao 1, linearity (mid), low gain reading 4.041604(26), target 4.00015 caldac[0] gain=-1.360(36)e-5 V/bit S_min=0.925139 dof=14 caldac[1] gain=-2.1714(35)e-4 V/bit S_min=3.92419 dof=14 caldac[2] gain=-3.0578(35)e-4 V/bit S_min=15.1476 dof=14 caldac[3] gain=-1.5354(35)e-4 V/bit S_min=1.84312 dof=14 caldac[4] gain=-7.8681(35)e-4 V/bit S_min=20.7147 dof=14 caldac[5] gain=-1.589(36)e-5 V/bit S_min=0.579324 dof=14 caldac[9] gain=2.3428(36)e-4 V/bit S_min=3.70475 dof=14 WARNING: you need comedi driver version 0.7.69 or later for this calibration to work properly relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 175 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 153 binary: ai, bipolar zero offset, high gain caldac[0] set to 136 binary: ai, bipolar zero offset, high gain caldac[8] set to 129 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[10] set to 156 binary: ao 0, zero offset, low gain caldac[6] set to 147 binary: ao 0, reference voltage, low gain caldac[7] set to 125 binary: ao 0, reference voltage, low gain caldac[11] set to 134 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[1] set to 181 binary: ao 1, zero offset, low gain caldac[9] set to 150 binary: ao 1, reference voltage, low gain caldac[3] set to 127 binary: ao 1, reference voltage, low gain caldac[5] set to 125 writing calibration to /usr/local/var/lib/comedi/calibrations/ni_mio_cs_DAQCard-6036E_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 2.76(18)e-4, target 0 caldac[0] gain=-1.126(25)e-5 V/bit S_min=3.31708 dof=14 caldac[2] gain=8.69(25)e-6 V/bit S_min=0.665987 dof=14 caldac[4] gain=-7.8444(27)e-4 V/bit S_min=45.8072 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 3, aref 3 reading -0.5(85)e-6, target 0 caldac[0] gain=-1.205(12)e-5 V/bit S_min=0.0570424 dof=14 caldac[4] gain=-3.92(12)e-6 V/bit S_min=0.023133 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 4.999728(21), target 4.99942 caldac[0] gain=-1.397(27)e-5 V/bit S_min=1.81441 dof=14 caldac[2] gain=-3.8389(27)e-4 V/bit S_min=96.2315 dof=14 caldac[4] gain=-7.8580(27)e-4 V/bit S_min=25.2026 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 7.9(24)e-5, target 0.00015259 caldac[0] gain=-1.122(33)e-5 V/bit S_min=1.58412 dof=14 caldac[2] gain=8.72(33)e-6 V/bit S_min=0.24128 dof=14 caldac[4] gain=-7.8439(35)e-4 V/bit S_min=25.8936 dof=14 caldac[6] gain=2.3307(35)e-4 V/bit S_min=8.15903 dof=14 caldac[10] gain=-1.7446(35)e-4 V/bit S_min=16.9895 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 7.999923(26), target 8.00015 caldac[0] gain=-1.450(35)e-5 V/bit S_min=0.244981 dof=14 caldac[2] gain=-6.1848(35)e-4 V/bit S_min=144.98 dof=14 caldac[4] gain=-7.8415(35)e-4 V/bit S_min=25.8586 dof=14 caldac[6] gain=2.3435(35)e-4 V/bit S_min=4.56044 dof=14 caldac[7] gain=-3.0524(35)e-4 V/bit S_min=4.27428 dof=14 caldac[10] gain=-2.4008(35)e-4 V/bit S_min=2.2617 dof=14 caldac[11] gain=-3.166(36)e-5 V/bit S_min=1.04297 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.000050(26), target 4.00015 caldac[0] gain=-1.333(35)e-5 V/bit S_min=1.19177 dof=14 caldac[2] gain=-3.0458(35)e-4 V/bit S_min=43.2202 dof=14 caldac[4] gain=-7.8399(35)e-4 V/bit S_min=11.9081 dof=14 caldac[6] gain=2.3405(35)e-4 V/bit S_min=1.67364 dof=14 caldac[7] gain=-1.5240(35)e-4 V/bit S_min=1.41059 dof=14 caldac[10] gain=-2.1713(35)e-4 V/bit S_min=3.92734 dof=14 caldac[11] gain=-1.586(35)e-5 V/bit S_min=0.914429 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading -1.11(24)e-4, target 0.00015259 caldac[0] gain=-1.128(33)e-5 V/bit S_min=0.901 dof=14 caldac[1] gain=-1.7443(36)e-4 V/bit S_min=12.9169 dof=14 caldac[2] gain=8.96(34)e-6 V/bit S_min=1.00705 dof=14 caldac[4] gain=-7.8416(35)e-4 V/bit S_min=28.7331 dof=14 caldac[9] gain=2.3227(36)e-4 V/bit S_min=7.93342 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 7.999863(26), target 8.00015 caldac[0] gain=-1.458(36)e-5 V/bit S_min=0.798365 dof=14 caldac[1] gain=-2.3965(36)e-4 V/bit S_min=3.28996 dof=14 caldac[2] gain=-6.1842(36)e-4 V/bit S_min=140.121 dof=14 caldac[3] gain=-3.0648(36)e-4 V/bit S_min=5.08195 dof=14 caldac[4] gain=-7.8433(36)e-4 V/bit S_min=23.3067 dof=14 caldac[5] gain=-3.159(36)e-5 V/bit S_min=0.430608 dof=14 caldac[9] gain=2.3376(36)e-4 V/bit S_min=5.29201 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.999868(26), target 4.00015 caldac[0] gain=-1.348(35)e-5 V/bit S_min=2.15928 dof=14 caldac[1] gain=-2.1679(36)e-4 V/bit S_min=3.58947 dof=14 caldac[2] gain=-3.0444(36)e-4 V/bit S_min=38.2054 dof=14 caldac[3] gain=-1.5284(36)e-4 V/bit S_min=3.32024 dof=14 caldac[4] gain=-7.8394(36)e-4 V/bit S_min=11.8147 dof=14 caldac[5] gain=-1.588(36)e-5 V/bit S_min=2.05549 dof=14 caldac[9] gain=2.3322(36)e-4 V/bit S_min=1.69652 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-67130000644000000000000000000000113512416542124017421 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to $Id$ Driver name: ni_pcimio Device name: pci-6713 Comedi version: 0.7.61 ai, bipolar zero offset, low gain insn barfed: subdev=0, chan=0, range=255, aref=3, n=128, ret=-1, Invalid argument barf offset 0.0( 0)e-2147483648, target 0 insn barfed: subdev=0, chan=0, range=255, aref=3, n=128, ret=-1, Invalid argument barf insn barfed: subdev=0, chan=0, range=255, aref=3, n=128, ret=-1, Invalid argument barf insn barfed: subdev=0, chan=0, range=255, aref=3, n=128, ret=-1, Invalid argument barf comedi_calibrate-5/comedi_calibrate/results/pci-6033e0000644000000000000000000001237512416542124017571 00000000000000eeprom reference lsb=255 msb=255 resulting reference voltage: 5 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.91 2004/02/15 22:24:57 fmhess Exp Driver name: ni_pcimio Device name: pci-6033e Id: ni.c,v 1.104 2004/02/21 14:34:08 fmhess Exp Comedi version: 0.7.67 ai, bipolar zero offset, low gain reading -9.899(50)e-3, target 0 caldac[2] gain=4.05815(66)e-4 V/bit S_min=160.14 dof=14 caldac[3] gain=3.980(65)e-6 V/bit S_min=1.32374 dof=14 caldac[8] gain=5.215(41)e-7 V/bit S_min=9.43182 dof=14 ai, bipolar zero offset, high gain reading 9.819(23)e-5, target 0 caldac[2] gain=4.0585(29)e-6 V/bit S_min=3.7347 dof=14 caldac[3] gain=4.00(30)e-8 V/bit S_min=0.937716 dof=14 caldac[8] gain=5.1188(18)e-7 V/bit S_min=6.92651 dof=14 ai, bipolar voltage reference, low gain reading 4.9894975(49), target 5 caldac[0] gain=-4.5577(67)e-5 V/bit S_min=22.9715 dof=14 caldac[1] gain=-2.492(68)e-6 V/bit S_min=0.991261 dof=14 caldac[2] gain=4.05245(67)e-4 V/bit S_min=92.0068 dof=14 caldac[3] gain=3.986(68)e-6 V/bit S_min=2.25732 dof=14 caldac[8] gain=5.240(42)e-7 V/bit S_min=8.35406 dof=14 ai, unipolar zero offset, low gain reading nan, target 7.62951e-05 caldac[2] gain=4.0619(11)e-4 V/bit S_min=32.5208 dof=4 ai, unipolar zero offset, high gain reading 9.631(21)e-5, target 7.62951e-07 caldac[2] gain=4.0549(50)e-6 V/bit S_min=7.65813 dof=7 caldac[3] gain=4.04(29)e-8 V/bit S_min=1.10986 dof=14 caldac[8] gain=5.1133(36)e-7 V/bit S_min=1.48799 dof=6 ai, unipolar voltage reference, low gain reading 4.9892792(34), target 5 caldac[0] gain=-4.5533(44)e-5 V/bit S_min=18.6982 dof=14 caldac[1] gain=-2.498(44)e-6 V/bit S_min=1.28035 dof=14 caldac[2] gain=4.05390(44)e-4 V/bit S_min=183.052 dof=14 caldac[3] gain=3.918(44)e-6 V/bit S_min=1.27415 dof=14 caldac[8] gain=5.148(28)e-7 V/bit S_min=3.90862 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[0] set to 131 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[2] set to 153 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[3] set to 201 binary: ai, bipolar zero offset, high gain caldac[8] set to 1647 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[1] set to 88 binary peg: ai, unipolar zero offset, low gain caldac[8] set to 0 binary peg: ai, unipolar zero offset, low gain caldac[2] set to 255 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[0] set to 130 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[2] set to 156 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[3] set to 175 binary: ai, unipolar zero offset, high gain caldac[8] set to 1617 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[1] set to 127 writing calibration to ./ni_pcimio_pci-6033e_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 4.29(81)e-5, target 0 caldac[2] gain=4.05675(65)e-4 V/bit S_min=152.289 dof=14 caldac[3] gain=3.861(65)e-6 V/bit S_min=1.57508 dof=14 caldac[8] gain=5.128(41)e-7 V/bit S_min=1.59219 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 6, aref 3 reading 1.02(25)e-6, target 0 caldac[2] gain=4.0554(30)e-6 V/bit S_min=7.41243 dof=14 caldac[3] gain=3.98(30)e-8 V/bit S_min=1.81005 dof=14 caldac[8] gain=5.1188(18)e-7 V/bit S_min=4.95673 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 4.9999660(72), target 5 caldac[0] gain=-4.5825(67)e-5 V/bit S_min=36.1478 dof=14 caldac[1] gain=-2.774(72)e-6 V/bit S_min=0.879831 dof=14 caldac[2] gain=4.05129(67)e-4 V/bit S_min=102.117 dof=14 caldac[3] gain=3.933(67)e-6 V/bit S_min=2.60807 dof=14 caldac[8] gain=5.125(42)e-7 V/bit S_min=4.66901 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading 9.042(33)e-4, target 7.62951e-05 caldac[2] gain=1.24217(16)e-4 V/bit S_min=3.21485e+07 dof=14 caldac[3] gain=3.941(41)e-6 V/bit S_min=2.37018 dof=14 caldac[8] gain=5.087(26)e-7 V/bit S_min=3.06702 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 13, aref 3 reading 9.54(78)e-7, target 7.62951e-07 caldac[2] gain=1.1642(10)e-6 V/bit S_min=730218 dof=14 caldac[3] gain=5.31(68)e-9 V/bit S_min=4.78958 dof=14 caldac[8] gain=3.10170(98)e-7 V/bit S_min=1.58412e+06 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 7, aref 3 reading 5.0007925(32), target 5 caldac[0] gain=-4.5870(44)e-5 V/bit S_min=34.7342 dof=14 caldac[1] gain=-2.533(44)e-6 V/bit S_min=1.01379 dof=14 caldac[2] gain=4.05338(44)e-4 V/bit S_min=178.116 dof=14 caldac[3] gain=3.945(44)e-6 V/bit S_min=1.46842 dof=14 caldac[8] gain=5.131(28)e-7 V/bit S_min=5.89766 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/DAQCard-ai-16e-40000644000000000000000000000560212416542124020573 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.36 2002/06/12 23:19:39 ds Exp Driver name: ni_mio_cs Device name: DAQCard-ai-16e-4 Id: ni.c,v 1.34 2002/08/29 23:35:37 ds Exp Comedi version: 0.7.65 ai, bipolar zero offset, low gain offset 7.250(54)e-3, target 0 caldac[0] gain=-8.709(60)e-6 V/bit S_min=12475.4 dof=254 caldac[1] gain=-1.674098(75)e-3 V/bit S_min=25268.2 dof=254 ai, bipolar zero offset, high gain offset 7.845(15)e-4, target 0 caldac[0] gain=-1.40738(12)e-5 V/bit S_min=621.321 dof=254 caldac[1] gain=-8.3786(12)e-6 V/bit S_min=719.216 dof=254 caldac[2] gain=1.12(13)e-8 V/bit S_min=290.257 dof=254 caldac[3] gain=-1.406(13)e-7 V/bit S_min=244.667 dof=254 caldac[4] gain=5.5(13)e-9 V/bit S_min=309.627 dof=254 caldac[5] gain=-8.1(13)e-9 V/bit S_min=270.158 dof=254 caldac[9] gain=-6.3(13)e-9 V/bit S_min=317.243 dof=254 ai, bipolar voltage reference, low gain offset 5.028083( 0), target 5 caldac[0] gain=-7.048(60)e-6 V/bit S_min=8283.93 dof=254 caldac[1] gain=-1.678477(75)e-3 V/bit S_min=26143.6 dof=254 caldac[3] gain=-7.77018(74)e-4 V/bit S_min=33119.8 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[1] gain=-1.67076(27)e-3 V/bit S_min=9496.76 dof=107 caldac[2] gain=-3.7444(93)e-4 V/bit S_min=3437.91 dof=47 caldac[3] gain=1.51141(28)e-3 V/bit S_min=8625.96 dof=107 postgain binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, hig h gain caldac[1] set to 129 binary: ai, bipolar zero offset, high gain caldac[0] set to 181 linear fine: ai, bipolar zero offset, high gain caldac[0] gain=-1.4104(51)e-5 V/bit S_min=32.4402 dof=19 caldac[0] set to 181 (181.394) binary: ai, bipolar voltage reference, low gain caldac[3] set to 157 linear fine: ai, bipolar voltage reference, low gain caldac[3] gain=-8.384(34)e-4 V/bit S_min=1541.06 dof=19 caldac[3] set to 157 (156.837) linear: ai, unipolar zero offset, low gain caldac[2] gain=-3.8196(16)e-4 V/bit S_min=12518.3 dof=154 caldac[2] set to 166 (166.253) ai, bipolar zero offset, low gain offset 2.328(65)e-3, target 0 caldac[0] gain=-7.714(70)e-6 V/bit S_min=5135.79 dof=254 caldac[1] gain=-1.665580(76)e-3 V/bit S_min=24336.8 dof=254 caldac[3] gain=3.77(72)e-7 V/bit S_min=265.342 dof=254 ai, bipolar zero offset, high gain offset 1.3(15)e-6, target 0 caldac[0] gain=-1.39860(12)e-5 V/bit S_min=472.034 dof=254 caldac[1] gain=-8.3336(12)e-6 V/bit S_min=473.021 dof=254 ai, bipolar voltage reference, low gain offset 4.99931(13), target 5 caldac[0] gain=-2.4484(99)e-5 V/bit S_min=3555.75 dof=254 caldac[1] gain=-1.669701(75)e-3 V/bit S_min=26274.3 dof=254 caldac[3] gain=-7.76443(75)e-4 V/bit S_min=32820.1 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[1] gain=-1.66313(22)e-3 V/bit S_min=10524 dof=125 caldac[2] gain=-3.8204(16)e-4 V/bit S_min=11839.1 dof=154 caldac[3] gain=1.50908(34)e-3 V/bit S_min=7642.08 dof=94 comedi_calibrate-5/comedi_calibrate/results/pci-6031e0000644000000000000000000004562112416542124017567 00000000000000eeprom reference lsb=42 msb=255 resulting reference voltage: 4.99979 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at http://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.88 2003/07/19 19:16:41 fmhess Exp Driver name: ni_pcimio Device name: pci-6031e Id: ni.c,v 1.95 2003/07/20 05:10:13 fmhess Exp Comedi version: 0.7.66 ai, bipolar zero offset, low gain reading 5.99(24)e-3, target 0 caldac[2] gain=4.04879(67)e-4 V/bit S_min=70.834 dof=14 caldac[3] gain=4.054(67)e-6 V/bit S_min=2.98949 dof=14 caldac[8] gain=6.328(42)e-7 V/bit S_min=2.35067 dof=14 ai, bipolar zero offset, high gain reading 3.3853(20)e-4, target 0 caldac[2] gain=4.0501(28)e-6 V/bit S_min=5.18433 dof=14 caldac[3] gain=3.84(27)e-8 V/bit S_min=1.50076 dof=14 caldac[8] gain=6.2321(18)e-7 V/bit S_min=4.20467 dof=14 ai, bipolar voltage reference, low gain reading 5.0086923(57), target 4.99979 caldac[0] gain=-4.5898(67)e-5 V/bit S_min=17.5935 dof=14 caldac[1] gain=-2.584(68)e-6 V/bit S_min=2.4014 dof=14 caldac[2] gain=4.04669(68)e-4 V/bit S_min=68.5688 dof=14 caldac[3] gain=3.967(69)e-6 V/bit S_min=4.65183 dof=14 caldac[8] gain=6.293(43)e-7 V/bit S_min=4.3692 dof=14 ai, unipolar zero offset, low gain reading 9.9438(33)e-3, target 7.62951e-05 caldac[2] gain=2.43328(25)e-4 V/bit S_min=1.59247e+07 dof=14 caldac[3] gain=3.990(44)e-6 V/bit S_min=2.35112 dof=14 caldac[8] gain=6.275(27)e-7 V/bit S_min=2.02595 dof=14 ai, unipolar zero offset, high gain reading 3.3748(19)e-4, target 7.62951e-07 caldac[2] gain=3.6192(22)e-6 V/bit S_min=55827 dof=14 caldac[3] gain=4.13(27)e-8 V/bit S_min=1.35945 dof=14 caldac[8] gain=4.0525(10)e-7 V/bit S_min=1.94037e+06 dof=14 ai, unipolar voltage reference, low gain reading 5.0085863(35), target 4.99979 caldac[0] gain=-4.5658(46)e-5 V/bit S_min=8.02503 dof=14 caldac[1] gain=-2.529(46)e-6 V/bit S_min=1.5732 dof=14 caldac[2] gain=4.04641(45)e-4 V/bit S_min=106.262 dof=14 caldac[3] gain=3.970(46)e-6 V/bit S_min=1.87278 dof=14 caldac[8] gain=6.257(29)e-7 V/bit S_min=1.89956 dof=14 ao 0, zero offset, low gain reading 3.9328(55)e-3, target 0.00015259 caldac[2] gain=4.04918(69)e-4 V/bit S_min=49.094 dof=14 caldac[3] gain=4.041(69)e-6 V/bit S_min=4.11065 dof=14 caldac[6] gain=-7.8674(68)e-5 V/bit S_min=48.022 dof=14 caldac[8] gain=6.125(42)e-7 V/bit S_min=21.6755 dof=14 ao 0, reference voltage, low gain reading 7.9991637(54), target 8.00015 caldac[0] gain=-7.3089(72)e-5 V/bit S_min=19.5044 dof=14 caldac[1] gain=-4.085(73)e-6 V/bit S_min=7.07179 dof=14 caldac[2] gain=4.04562(72)e-4 V/bit S_min=61.2554 dof=14 caldac[3] gain=3.981(73)e-6 V/bit S_min=2.41722 dof=14 caldac[4] gain=6.1756(73)e-5 V/bit S_min=18.3723 dof=14 caldac[6] gain=-7.8378(72)e-5 V/bit S_min=10.1452 dof=14 caldac[8] gain=6.344(47)e-7 V/bit S_min=5.01001 dof=14 ao 0, linearity (mid), low gain reading 4.0015515(54), target 4.00015 caldac[0] gain=-3.6483(70)e-5 V/bit S_min=23.6256 dof=14 caldac[1] gain=-2.027(69)e-6 V/bit S_min=4.67672 dof=14 caldac[2] gain=4.04568(68)e-4 V/bit S_min=92.8256 dof=14 caldac[3] gain=3.945(69)e-6 V/bit S_min=7.55072 dof=14 caldac[4] gain=3.0787(69)e-5 V/bit S_min=15.2125 dof=14 caldac[6] gain=-7.8085(68)e-5 V/bit S_min=10.0366 dof=14 caldac[8] gain=6.259(44)e-7 V/bit S_min=7.13501 dof=14 ao 1, zero offset, low gain reading 2.8396(49)e-3, target 0.00015259 caldac[2] gain=4.04838(69)e-4 V/bit S_min=48.0651 dof=14 caldac[3] gain=4.077(70)e-6 V/bit S_min=2.11465 dof=14 caldac[7] gain=-7.8712(69)e-5 V/bit S_min=33.9078 dof=14 caldac[8] gain=6.235(43)e-7 V/bit S_min=4.26418 dof=14 ao 1, reference voltage, low gain reading 7.9964669(55), target 8.00015 caldac[0] gain=-7.2892(72)e-5 V/bit S_min=13.8399 dof=14 caldac[1] gain=-4.013(72)e-6 V/bit S_min=1.41529 dof=14 caldac[2] gain=4.04474(73)e-4 V/bit S_min=64.7184 dof=14 caldac[3] gain=4.071(71)e-6 V/bit S_min=2.27148 dof=14 caldac[5] gain=6.2592(72)e-5 V/bit S_min=16.0406 dof=14 caldac[7] gain=-7.8395(73)e-5 V/bit S_min=16.1578 dof=14 caldac[8] gain=6.229(45)e-7 V/bit S_min=3.65689 dof=14 ao 1, linearity (mid), low gain reading 3.9996817(55), target 4.00015 caldac[0] gain=-3.6401(68)e-5 V/bit S_min=16.0381 dof=14 caldac[1] gain=-2.062(71)e-6 V/bit S_min=1.52891 dof=14 caldac[2] gain=4.04565(69)e-4 V/bit S_min=76.428 dof=14 caldac[3] gain=4.047(70)e-6 V/bit S_min=1.09659 dof=14 caldac[5] gain=3.1091(70)e-5 V/bit S_min=15.3441 dof=14 caldac[7] gain=-7.8368(72)e-5 V/bit S_min=12.8318 dof=14 caldac[8] gain=6.114(43)e-7 V/bit S_min=12.7556 dof=14 ao 0, unipolar zero offset, low gain reading 9.8114(54)e-3, target 0 caldac[2] gain=4.04834(69)e-4 V/bit S_min=53.4796 dof=14 caldac[3] gain=4.030(68)e-6 V/bit S_min=4.29038 dof=14 caldac[6] gain=-7.8148(66)e-5 V/bit S_min=16.1927 dof=14 caldac[8] gain=6.350(42)e-7 V/bit S_min=4.4994 dof=14 ao 0, unipolar high, low gain reading 9.0032208(53), target 9.00008 caldac[0] gain=-8.2151(70)e-5 V/bit S_min=17.1504 dof=14 caldac[1] gain=-4.716(71)e-6 V/bit S_min=1.90457 dof=14 caldac[2] gain=4.04603(71)e-4 V/bit S_min=72.3059 dof=14 caldac[3] gain=4.116(71)e-6 V/bit S_min=1.89019 dof=14 caldac[4] gain=6.9394(70)e-5 V/bit S_min=8.55042 dof=14 caldac[6] gain=-7.8113(72)e-5 V/bit S_min=5.80267 dof=14 caldac[8] gain=6.258(44)e-7 V/bit S_min=4.89137 dof=14 ao 0, unipolar linearity (low), low gain reading 1.0092266(51), target 1.00008 caldac[0] gain=-9.250(68)e-6 V/bit S_min=1.75561 dof=14 caldac[1] gain=-5.17(69)e-7 V/bit S_min=0.921118 dof=14 caldac[2] gain=4.04578(67)e-4 V/bit S_min=90.2805 dof=14 caldac[3] gain=3.887(66)e-6 V/bit S_min=2.39683 dof=14 caldac[4] gain=7.770(67)e-6 V/bit S_min=3.34322 dof=14 caldac[6] gain=-7.8358(68)e-5 V/bit S_min=19.1612 dof=14 caldac[8] gain=6.233(42)e-7 V/bit S_min=3.54452 dof=14 ao 0, unipolar linearity (mid), low gain reading 5.0061781(52), target 5.00008 caldac[0] gain=-4.5663(67)e-5 V/bit S_min=21.7487 dof=14 caldac[1] gain=-2.553(68)e-6 V/bit S_min=7.47434 dof=14 caldac[2] gain=4.04661(68)e-4 V/bit S_min=71.6708 dof=14 caldac[3] gain=3.940(68)e-6 V/bit S_min=1.96052 dof=14 caldac[4] gain=3.8609(71)e-5 V/bit S_min=19.9348 dof=14 caldac[6] gain=-7.8283(68)e-5 V/bit S_min=22.4617 dof=14 caldac[8] gain=6.287(43)e-7 V/bit S_min=4.89577 dof=14 ao 1, unipolar zero offset, low gain reading 0.0101258(50), target 0 caldac[2] gain=4.04916(68)e-4 V/bit S_min=72.4479 dof=14 caldac[3] gain=4.105(68)e-6 V/bit S_min=3.77629 dof=14 caldac[7] gain=-7.8408(69)e-5 V/bit S_min=17.2061 dof=14 caldac[8] gain=6.322(43)e-7 V/bit S_min=4.14499 dof=14 ao 1, unipolar high, low gain reading 9.0011230(55), target 9.00008 caldac[0] gain=-8.2038(70)e-5 V/bit S_min=18.7872 dof=14 caldac[1] gain=-4.486(70)e-6 V/bit S_min=8.58652 dof=14 caldac[2] gain=4.04525(71)e-4 V/bit S_min=73.6403 dof=14 caldac[3] gain=3.912(69)e-6 V/bit S_min=4.3648 dof=14 caldac[5] gain=7.0326(70)e-5 V/bit S_min=12.1156 dof=14 caldac[7] gain=-7.8322(72)e-5 V/bit S_min=13.8258 dof=14 caldac[8] gain=6.221(45)e-7 V/bit S_min=2.65473 dof=14 ao 1, unipolar linearity (low), low gain reading 1.0092204(52), target 1.00008 caldac[0] gain=-9.282(68)e-6 V/bit S_min=2.75675 dof=14 caldac[1] gain=-5.30(69)e-7 V/bit S_min=1.22983 dof=14 caldac[2] gain=4.04591(67)e-4 V/bit S_min=75.6609 dof=14 caldac[3] gain=3.892(67)e-6 V/bit S_min=2.55383 dof=14 caldac[5] gain=7.848(67)e-6 V/bit S_min=3.98235 dof=14 caldac[7] gain=-7.8453(68)e-5 V/bit S_min=13.3494 dof=14 caldac[8] gain=6.235(43)e-7 V/bit S_min=3.78911 dof=14 ao 1, unipolar linearity (mid), low gain reading 5.0051523(55), target 5.00008 caldac[0] gain=-4.5648(69)e-5 V/bit S_min=25.8429 dof=14 caldac[1] gain=-2.606(69)e-6 V/bit S_min=2.39754 dof=14 caldac[2] gain=4.04755(69)e-4 V/bit S_min=64.4486 dof=14 caldac[3] gain=3.880(66)e-6 V/bit S_min=18.2457 dof=14 caldac[5] gain=3.8980(71)e-5 V/bit S_min=17.7696 dof=14 caldac[7] gain=-7.8606(70)e-5 V/bit S_min=20.829 dof=14 caldac[8] gain=6.058(42)e-7 V/bit S_min=13.7094 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[0] set to 102 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[2] set to 103 binary: ai, bipolar zero offset, high gain caldac[8] set to 1659 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[1] set to 126 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[3] set to 105 binary peg: ai, unipolar zero offset, low gain caldac[8] set to 4095 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[0] set to 104 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[2] set to 103 binary: ai, unipolar zero offset, high gain caldac[8] set to 1651 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[1] set to 101 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[3] set to 151 binary: ao 0, zero offset, low gain caldac[6] set to 47 binary: ao 0, reference voltage, low gain caldac[4] set to 175 binary: ao 0, unipolar zero offset, low gain caldac[6] set to 124 binary: ao 0, unipolar high, low gain caldac[4] set to 193 binary: ao 1, zero offset, low gain caldac[7] set to 33 binary: ao 1, reference voltage, low gain caldac[5] set to 199 binary: ao 1, unipolar zero offset, low gain caldac[7] set to 127 binary: ao 1, unipolar high, low gain caldac[5] set to 225 writing calibration to /etc/comedi/calibrations/ni_pcimio_pci-6031e_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 3.9(56)e-6, target 0 caldac[2] gain=4.04780(68)e-4 V/bit S_min=51.7431 dof=14 caldac[3] gain=4.259(69)e-6 V/bit S_min=15.6127 dof=14 caldac[8] gain=6.454(42)e-7 V/bit S_min=19.2309 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 6, aref 3 reading -2.2(22)e-7, target 0 caldac[2] gain=4.0468(28)e-6 V/bit S_min=4.50405 dof=14 caldac[3] gain=4.14(29)e-8 V/bit S_min=1.5564 dof=14 caldac[8] gain=6.2340(18)e-7 V/bit S_min=2.22969 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 4.9998024(52), target 4.99979 caldac[0] gain=-4.5834(68)e-5 V/bit S_min=22.1202 dof=14 caldac[1] gain=-2.560(69)e-6 V/bit S_min=2.19664 dof=14 caldac[2] gain=4.04600(68)e-4 V/bit S_min=77.8305 dof=14 caldac[3] gain=3.997(71)e-6 V/bit S_min=1.64743 dof=14 caldac[8] gain=6.392(44)e-7 V/bit S_min=4.63247 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading 6.63(26)e-5, target 7.62951e-05 caldac[2] gain=2.42361(25)e-4 V/bit S_min=1.57664e+07 dof=14 caldac[3] gain=1.559(20)e-6 V/bit S_min=2091.83 dof=14 caldac[8] gain=3.902(16)e-7 V/bit S_min=8272.41 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 13, aref 3 reading 1.207(81)e-6, target 7.62951e-07 caldac[2] gain=2.3973(15)e-6 V/bit S_min=420715 dof=14 caldac[3] gain=8.69(88)e-9 V/bit S_min=7.36233 dof=14 caldac[8] gain=3.71294(93)e-7 V/bit S_min=2.6091e+06 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 7, aref 3 reading 4.9998222(38), target 4.99979 caldac[0] gain=-4.5641(46)e-5 V/bit S_min=8.65597 dof=14 caldac[1] gain=-2.688(48)e-6 V/bit S_min=1.40658 dof=14 caldac[2] gain=4.04520(46)e-4 V/bit S_min=137.355 dof=14 caldac[3] gain=4.091(47)e-6 V/bit S_min=5.22047 dof=14 caldac[8] gain=6.309(29)e-7 V/bit S_min=4.77719 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading -4.25(32)e-4, target 0.00015259 caldac[2] gain=4.04805(70)e-4 V/bit S_min=53.4836 dof=14 caldac[3] gain=4.113(71)e-6 V/bit S_min=10.21 dof=14 caldac[6] gain=-7.8557(68)e-5 V/bit S_min=58.2426 dof=14 caldac[8] gain=6.097(42)e-7 V/bit S_min=11.0274 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.000000(25), target 8.00015 caldac[0] gain=-7.3191(73)e-5 V/bit S_min=12.3634 dof=14 caldac[1] gain=-4.054(74)e-6 V/bit S_min=1.26773 dof=14 caldac[2] gain=4.04527(73)e-4 V/bit S_min=43.1088 dof=14 caldac[3] gain=3.941(73)e-6 V/bit S_min=5.63113 dof=14 caldac[4] gain=6.1762(73)e-5 V/bit S_min=33.2368 dof=14 caldac[6] gain=-7.8285(75)e-5 V/bit S_min=17.3662 dof=14 caldac[8] gain=6.293(46)e-7 V/bit S_min=2.52635 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 3.999824(28), target 4.00015 caldac[0] gain=-3.6226(71)e-5 V/bit S_min=16.7177 dof=14 caldac[1] gain=-1.940(68)e-6 V/bit S_min=2.77332 dof=14 caldac[2] gain=4.04478(69)e-4 V/bit S_min=86.1423 dof=14 caldac[3] gain=3.988(70)e-6 V/bit S_min=2.27108 dof=14 caldac[4] gain=3.0650(69)e-5 V/bit S_min=10.9673 dof=14 caldac[6] gain=-7.8281(71)e-5 V/bit S_min=12.4089 dof=14 caldac[8] gain=6.275(44)e-7 V/bit S_min=2.59036 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading -5.71(40)e-4, target 0.00015259 caldac[2] gain=4.04772(69)e-4 V/bit S_min=53.4008 dof=14 caldac[3] gain=4.130(72)e-6 V/bit S_min=14.5019 dof=14 caldac[7] gain=-7.8632(68)e-5 V/bit S_min=38.2077 dof=14 caldac[8] gain=6.230(43)e-7 V/bit S_min=2.98913 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 7.999523(31), target 8.00015 caldac[0] gain=-7.3102(71)e-5 V/bit S_min=22.2042 dof=14 caldac[1] gain=-4.102(73)e-6 V/bit S_min=2.70393 dof=14 caldac[2] gain=4.04506(72)e-4 V/bit S_min=50.5004 dof=14 caldac[3] gain=3.972(70)e-6 V/bit S_min=4.26868 dof=14 caldac[5] gain=6.2574(71)e-5 V/bit S_min=30.1299 dof=14 caldac[7] gain=-7.8202(69)e-5 V/bit S_min=14.0954 dof=14 caldac[8] gain=6.285(45)e-7 V/bit S_min=5.91259 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.999523(35), target 4.00015 caldac[0] gain=-3.6299(70)e-5 V/bit S_min=12.504 dof=14 caldac[1] gain=-1.927(69)e-6 V/bit S_min=2.27594 dof=14 caldac[2] gain=4.04498(70)e-4 V/bit S_min=92.4139 dof=14 caldac[3] gain=3.934(71)e-6 V/bit S_min=2.32116 dof=14 caldac[5] gain=3.1088(69)e-5 V/bit S_min=14.4494 dof=14 caldac[7] gain=-7.8420(71)e-5 V/bit S_min=12.5189 dof=14 caldac[8] gain=6.380(44)e-7 V/bit S_min=2.26274 dof=14 ao 0, unipolar zero offset, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.62(54)e-5, target 0 caldac[2] gain=4.04783(69)e-4 V/bit S_min=51.9655 dof=14 caldac[3] gain=4.257(69)e-6 V/bit S_min=12.3014 dof=14 caldac[6] gain=-7.8314(68)e-5 V/bit S_min=16.7364 dof=14 caldac[8] gain=6.437(43)e-7 V/bit S_min=17.8705 dof=14 ao 0, unipolar high, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.9999952(55), target 9.00008 caldac[0] gain=-8.2238(70)e-5 V/bit S_min=24.4124 dof=14 caldac[1] gain=-4.497(71)e-6 V/bit S_min=11.9844 dof=14 caldac[2] gain=4.04392(71)e-4 V/bit S_min=63.3871 dof=14 caldac[3] gain=3.867(70)e-6 V/bit S_min=5.20063 dof=14 caldac[4] gain=6.9462(70)e-5 V/bit S_min=12.7513 dof=14 caldac[6] gain=-7.8282(72)e-5 V/bit S_min=18.1888 dof=14 caldac[8] gain=6.315(44)e-7 V/bit S_min=3.99416 dof=14 ao 0, unipolar linearity (low), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.0001356(52), target 1.00008 caldac[0] gain=-8.990(66)e-6 V/bit S_min=9.45288 dof=14 caldac[1] gain=-5.10(71)e-7 V/bit S_min=0.688715 dof=14 caldac[2] gain=4.04478(68)e-4 V/bit S_min=81.3919 dof=14 caldac[3] gain=4.097(68)e-6 V/bit S_min=1.49483 dof=14 caldac[4] gain=7.808(68)e-6 V/bit S_min=2.98466 dof=14 caldac[6] gain=-7.8501(68)e-5 V/bit S_min=24.6859 dof=14 caldac[8] gain=6.089(42)e-7 V/bit S_min=17.2506 dof=14 ao 0, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 5.0000447(55), target 5.00008 caldac[0] gain=-4.5822(68)e-5 V/bit S_min=21.8646 dof=14 caldac[1] gain=-2.564(70)e-6 V/bit S_min=5.55694 dof=14 caldac[2] gain=4.04639(69)e-4 V/bit S_min=65.6447 dof=14 caldac[3] gain=4.084(70)e-6 V/bit S_min=3.1727 dof=14 caldac[4] gain=3.8707(71)e-5 V/bit S_min=15.2584 dof=14 caldac[6] gain=-7.8156(66)e-5 V/bit S_min=10.0991 dof=14 caldac[8] gain=6.377(43)e-7 V/bit S_min=5.30329 dof=14 ao 1, unipolar zero offset, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 7.87(52)e-5, target 0 caldac[2] gain=4.04751(68)e-4 V/bit S_min=46.9367 dof=14 caldac[3] gain=4.208(70)e-6 V/bit S_min=13.0049 dof=14 caldac[7] gain=-7.8658(67)e-5 V/bit S_min=33.5968 dof=14 caldac[8] gain=6.465(42)e-7 V/bit S_min=19.9112 dof=14 ao 1, unipolar high, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 9.0000018(53), target 9.00008 caldac[0] gain=-8.2095(70)e-5 V/bit S_min=22.1353 dof=14 caldac[1] gain=-4.478(70)e-6 V/bit S_min=5.02459 dof=14 caldac[2] gain=4.04530(71)e-4 V/bit S_min=82.8752 dof=14 caldac[3] gain=3.877(71)e-6 V/bit S_min=1.84591 dof=14 caldac[5] gain=7.0365(70)e-5 V/bit S_min=8.5377 dof=14 caldac[7] gain=-7.8234(68)e-5 V/bit S_min=21.2209 dof=14 caldac[8] gain=6.308(44)e-7 V/bit S_min=4.37258 dof=14 ao 1, unipolar linearity (low), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 1.0001714(51), target 1.00008 caldac[0] gain=-9.011(66)e-6 V/bit S_min=14.8386 dof=14 caldac[1] gain=-5.49(70)e-7 V/bit S_min=0.827879 dof=14 caldac[2] gain=4.04510(68)e-4 V/bit S_min=81.987 dof=14 caldac[3] gain=4.128(69)e-6 V/bit S_min=1.55977 dof=14 caldac[5] gain=7.853(68)e-6 V/bit S_min=4.58536 dof=14 caldac[7] gain=-7.8486(68)e-5 V/bit S_min=12.5535 dof=14 caldac[8] gain=6.082(42)e-7 V/bit S_min=14.6087 dof=14 ao 1, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 5.0000662(56), target 5.00008 caldac[0] gain=-4.5866(67)e-5 V/bit S_min=18.4216 dof=14 caldac[1] gain=-2.525(71)e-6 V/bit S_min=2.50928 dof=14 caldac[2] gain=4.04577(69)e-4 V/bit S_min=51.028 dof=14 caldac[3] gain=4.128(70)e-6 V/bit S_min=4.81129 dof=14 caldac[5] gain=3.9025(70)e-5 V/bit S_min=16.075 dof=14 caldac[7] gain=-7.8490(70)e-5 V/bit S_min=22.6817 dof=14 caldac[8] gain=6.392(44)e-7 V/bit S_min=5.31049 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/measurement-computing-pci-das60340000644000000000000000000001576412416542124024450 00000000000000Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: cb_pcidas64 Device name: pci-das6034 Id: cb64.c,v 1.18 2005/02/22 13:00:07 fmhess Exp Comedi version: 0.7.69 calibration source 0, range 0, ground referenced reading -2.6629(72)e-3, target 0 caldac[4] gain=1.00642(95)e-4 V/bit S_min=82.1553 dof=14 caldac[5] gain=4.366282(96)e-3 V/bit S_min=3302.4 dof=14 caldac[6] gain=3.578(97)e-6 V/bit S_min=2.19792 dof=14 calibration source 1, range 0, ground referenced reading 9.9777790(72), target 9.97425 caldac[4] gain=9.9508(97)e-5 V/bit S_min=38.436 dof=14 caldac[5] gain=4.36817(18)e-3 V/bit S_min=4732.76 dof=7 caldac[6] gain=-6.47312(19)e-3 V/bit S_min=558389 dof=6 caldac[7] gain=-1.58597(97)e-4 V/bit S_min=15.2113 dof=14 calibration source 0, range 1, ground referenced reading -1.7137(34)e-3, target 0 caldac[4] gain=6.0189(47)e-5 V/bit S_min=106.175 dof=14 caldac[5] gain=2.619492(48)e-3 V/bit S_min=3939.51 dof=14 caldac[6] gain=1.924(49)e-6 V/bit S_min=1.26219 dof=14 calibration source 2, range 1, ground referenced reading 4.9780777(36), target 4.96851 caldac[4] gain=5.9669(48)e-5 V/bit S_min=45.7913 dof=14 caldac[5] gain=2.621085(85)e-3 V/bit S_min=6807.77 dof=7 caldac[6] gain=-3.229515(94)e-3 V/bit S_min=567252 dof=6 caldac[7] gain=-7.9244(48)e-5 V/bit S_min=16.5792 dof=14 calibration source 0, range 2, ground referenced reading -8.7301(57)e-4, target 0 caldac[4] gain=2.36935(79)e-5 V/bit S_min=47.3394 dof=14 caldac[5] gain=1.0379010(79)e-3 V/bit S_min=26776.1 dof=14 caldac[6] gain=5.942(79)e-7 V/bit S_min=9.19615 dof=14 calibration source 3, range 2, ground referenced reading 0.46077600(58), target 0.46496 caldac[4] gain=2.36555(79)e-5 V/bit S_min=14.0434 dof=14 caldac[5] gain=1.037596(12)e-3 V/bit S_min=35710.1 dof=9 caldac[6] gain=-3.232700(85)e-4 V/bit S_min=2.6715e+06 dof=13 caldac[7] gain=-7.3574(78)e-6 V/bit S_min=23.3645 dof=14 calibration source 0, range 3, ground referenced reading -1.0640(19)e-4, target 0 caldac[4] gain=2.3668(26)e-6 V/bit S_min=9.19981 dof=14 caldac[5] gain=1.037799(26)e-4 V/bit S_min=2434.15 dof=14 caldac[6] gain=6.94(26)e-8 V/bit S_min=8.30868 dof=14 calibration source 4, range 3, ground referenced reading 0.04799069(19), target 0.0485985 caldac[4] gain=2.3611(26)e-6 V/bit S_min=8.72784 dof=14 caldac[5] gain=1.037657(41)e-4 V/bit S_min=3347.58 dof=8 caldac[6] gain=-3.21374(37)e-5 V/bit S_min=65354 dof=9 caldac[7] gain=-7.719(26)e-7 V/bit S_min=12.5684 dof=14 relative binary: calibration source 1, range 0, ground referenced, calibration source 0, range 0, ground referenced caldac[6] set to 128 binary: calibration source 0, range 0, ground referenced caldac[5] set to 127 relative binary: calibration source 1, range 0, ground referenced, calibration source 0, range 0, ground referenced caldac[7] set to 137 binary: calibration source 0, range 0, ground referenced caldac[4] set to 153 relative binary: calibration source 2, range 1, ground referenced, calibration source 0, range 1, ground referenced caldac[6] set to 131 binary: calibration source 0, range 1, ground referenced caldac[5] set to 128 relative binary: calibration source 2, range 1, ground referenced, calibration source 0, range 1, ground referenced caldac[7] set to 105 binary: calibration source 0, range 1, ground referenced caldac[4] set to 129 relative binary: calibration source 3, range 2, ground referenced, calibration source 0, range 2, ground referenced caldac[6] set to 117 binary: calibration source 0, range 2, ground referenced caldac[5] set to 128 relative binary: calibration source 3, range 2, ground referenced, calibration source 0, range 2, ground referenced caldac[7] set to 113 binary: calibration source 0, range 2, ground referenced caldac[4] set to 137 relative binary: calibration source 4, range 3, ground referenced, calibration source 0, range 3, ground referenced caldac[6] set to 112 binary: calibration source 0, range 3, ground referenced caldac[5] set to 128 relative binary: calibration source 4, range 3, ground referenced, calibration source 0, range 3, ground referenced caldac[7] set to 139 binary: calibration source 0, range 3, ground referenced caldac[4] set to 145 writing calibration to /usr/local/var/lib/comedi/calibrations/cb_pcidas64_pci-das6034_comedi0 calibration source 0, range 0, ground referenced applied calibration for subdev 0, channel 0, range 0, aref 0 reading -1.615(74)e-4, target 0 caldac[4] gain=1.00543(96)e-4 V/bit S_min=82.7998 dof=14 caldac[5] gain=4.362993(94)e-3 V/bit S_min=3138.62 dof=14 calibration source 1, range 0, ground referenced applied calibration for subdev 0, channel 0, range 0, aref 0 reading 9.9742647(73), target 9.97425 caldac[4] gain=9.9402(98)e-5 V/bit S_min=50.4821 dof=14 caldac[5] gain=2.520398(55)e-3 V/bit S_min=3.8095e+08 dof=14 caldac[6] gain=-3.120775(47)e-3 V/bit S_min=1.188e+09 dof=14 calibration source 0, range 1, ground referenced applied calibration for subdev 0, channel 0, range 1, aref 0 reading 4.80(40)e-5, target 0 caldac[4] gain=6.0196(48)e-5 V/bit S_min=66.9283 dof=14 caldac[5] gain=2.612802(47)e-3 V/bit S_min=3349.73 dof=14 calibration source 2, range 1, ground referenced applied calibration for subdev 0, channel 0, range 1, aref 0 reading 4.9686469(36), target 4.96851 caldac[4] gain=5.9746(48)e-5 V/bit S_min=191.699 dof=14 caldac[5] gain=1.602438(27)e-3 V/bit S_min=5.42537e+08 dof=14 caldac[6] gain=-1.605090(23)e-3 V/bit S_min=1.18824e+09 dof=14 calibration source 0, range 2, ground referenced applied calibration for subdev 0, channel 0, range 2, aref 0 reading 1.85(64)e-6, target 0 caldac[4] gain=2.38721(79)e-5 V/bit S_min=23.3049 dof=14 caldac[5] gain=1.0450271(79)e-3 V/bit S_min=25711.9 dof=14 caldac[6] gain=-1.648(79)e-7 V/bit S_min=4.85014 dof=14 calibration source 3, range 2, ground referenced applied calibration for subdev 0, channel 0, range 2, aref 0 reading 0.46500106(57), target 0.46496 caldac[4] gain=2.38565(79)e-5 V/bit S_min=37.8663 dof=14 caldac[5] gain=7.666480(55)e-4 V/bit S_min=1.64902e+09 dof=14 caldac[6] gain=-3.172386(69)e-4 V/bit S_min=5.73333e+06 dof=14 caldac[7] gain=-7.4892(80)e-6 V/bit S_min=9.71171 dof=14 calibration source 0, range 3, ground referenced applied calibration for subdev 0, channel 0, range 3, aref 0 reading 4.4(19)e-7, target 0 caldac[4] gain=2.3904(26)e-6 V/bit S_min=8.99778 dof=14 caldac[5] gain=1.048344(26)e-4 V/bit S_min=2416.64 dof=14 calibration source 4, range 3, ground referenced applied calibration for subdev 0, channel 0, range 3, aref 0 reading 0.04859764(19), target 0.0485985 caldac[4] gain=2.3845(26)e-6 V/bit S_min=4.39775 dof=14 caldac[5] gain=6.53838(15)e-5 V/bit S_min=2.94241e+08 dof=14 caldac[6] gain=-2.52854(17)e-5 V/bit S_min=1.26594e+07 dof=14 caldac[7] gain=-7.863(26)e-7 V/bit S_min=7.03811 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/at-mio-16e-20000644000000000000000000001327712416542124020200 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to $Id$ Driver name: ni_atmio Device name: at-mio-16e-2 Comedi version: 0.7.59 ai, bipolar zero offset, low gain offset 0.02530(24), target 0 caldac[0] gain=-8.94(21)e-6 V/bit S_min=227.333 dof=254 caldac[1] gain=-8.1614(22)e-4 V/bit S_min=1475.19 dof=254 caldac[3] gain=-2.58(21)e-6 V/bit S_min=229.168 dof=254 ai, bipolar zero offset, high gain offset 1.60(16)e-5, target 0 caldac[0] gain=-8.8872(13)e-6 V/bit S_min=1289.9 dof=254 caldac[1] gain=-4.0890(13)e-6 V/bit S_min=1071.01 dof=254 ai, bipolar voltage reference, low gain offset 5.02862(27), target 5 caldac[0] gain=-8.89(21)e-6 V/bit S_min=261.79 dof=254 caldac[1] gain=-8.0967(21)e-4 V/bit S_min=649.448 dof=254 caldac[3] gain=-4.8405(21)e-4 V/bit S_min=760.715 dof=254 ai, unipolar zero offset, low gain offset 0.02389(27), target 0 caldac[0] gain=-8.84(21)e-6 V/bit S_min=242.096 dof=254 caldac[1] gain=-8.0716(49)e-4 V/bit S_min=270.72 dof=145 caldac[2] gain=-9.5442(51)e-4 V/bit S_min=307.047 dof=142 caldac[3] gain=-1.08(22)e-6 V/bit S_min=237.08 dof=254 ao 0, zero offset, low gain offset 0.02690(24), target 0.002442 caldac[0] gain=-8.77(21)e-6 V/bit S_min=253.83 dof=254 caldac[1] gain=-8.1562(21)e-4 V/bit S_min=1215.94 dof=254 caldac[3] gain=-2.29(21)e-6 V/bit S_min=234.218 dof=254 caldac[4] gain=-1.1995(21)e-4 V/bit S_min=506.825 dof=254 caldac[5] gain=-8.1157(21)e-4 V/bit S_min=1267.71 dof=254 ao 0, reference voltage, low gain offset 0.02282(24), target -0.001221 caldac[0] gain=-6.85(19)e-6 V/bit S_min=256.136 dof=254 caldac[1] gain=-8.1627(22)e-4 V/bit S_min=1281.34 dof=254 caldac[3] gain=-1.44(20)e-6 V/bit S_min=227.512 dof=254 caldac[4] gain=-1.5195(21)e-4 V/bit S_min=497.826 dof=254 caldac[5] gain=-8.1175(22)e-4 V/bit S_min=1293.05 dof=254 caldac[6] gain=-9.586(21)e-5 V/bit S_min=382.737 dof=254 ao 1, zero offset, low gain offset 0.02457(26), target 0.002442 caldac[0] gain=-8.00(21)e-6 V/bit S_min=252.512 dof=254 caldac[1] gain=-8.1594(21)e-4 V/bit S_min=1438.7 dof=254 caldac[3] gain=-2.87(21)e-6 V/bit S_min=244.086 dof=254 caldac[7] gain=-1.1865(22)e-4 V/bit S_min=498.414 dof=254 caldac[8] gain=-8.0761(22)e-4 V/bit S_min=1261.1 dof=254 ao 1, reference voltage, low gain offset 0.01839(26), target -0.001221 caldac[0] gain=-1.033(23)e-5 V/bit S_min=241.364 dof=254 caldac[1] gain=-8.1633(22)e-4 V/bit S_min=1292.68 dof=254 caldac[3] gain=-2.08(24)e-6 V/bit S_min=269.359 dof=254 caldac[7] gain=-1.5064(22)e-4 V/bit S_min=463.74 dof=254 caldac[8] gain=-8.0799(22)e-4 V/bit S_min=1413.52 dof=254 caldac[9] gain=-9.592(21)e-5 V/bit S_min=413.486 dof=254 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[1] gain=-8.1616(21)e-4 V/bit S_min=1553.67 dof=254 caldac[1] gain=-4.0903(13)e-6 V/bit S_min=927.262 dof=254 caldac[1] set to 158.517 linear: ai, bipolar zero offset, high gain caldac[0] gain=-8.8897(13)e-6 V/bit S_min=1038.96 dof=254 caldac[0] set to 113.439 linear: ai, bipolar voltage reference, low gain caldac[3] gain=-4.8118(21)e-4 V/bit S_min=832.931 dof=254 caldac[3] set to 134.56 linear: ai, unipolar zero offset, low gain caldac[2] gain=-9.5331(70)e-4 V/bit S_min=186.418 dof=115 caldac[2] set to 125.914 linear: ao 0, zero offset, low gain caldac[5] gain=-8.1216(22)e-4 V/bit S_min=1466.65 dof=254 caldac[5] set to 124.51 linear: ao 0, reference voltage, low gain caldac[6] gain=-1.0849(23)e-4 V/bit S_min=881.75 dof=254 caldac[6] set to 121.705 linear: ao 1, zero offset, low gain caldac[8] gain=-8.0789(22)e-4 V/bit S_min=1381.15 dof=254 caldac[8] set to 121.668 linear: ao 1, reference voltage, low gain caldac[9] gain=-1.0720(23)e-4 V/bit S_min=1017.36 dof=254 caldac[9] set to 91.172 ai, bipolar zero offset, low gain offset -3.8(35)e-4, target 0 caldac[0] gain=-1.145(28)e-5 V/bit S_min=247.757 dof=254 caldac[1] gain=-8.1521(21)e-4 V/bit S_min=1300.88 dof=254 ai, bipolar zero offset, high gain offset 9.5(18)e-6, target 0 caldac[0] gain=-8.8809(13)e-6 V/bit S_min=1207.56 dof=254 caldac[1] gain=-4.0803(13)e-6 V/bit S_min=939.208 dof=254 ai, bipolar voltage reference, low gain offset 4.99935(34), target 5 caldac[0] gain=-1.166(28)e-5 V/bit S_min=212.993 dof=254 caldac[1] gain=-8.0868(22)e-4 V/bit S_min=689.576 dof=254 caldac[3] gain=-4.8110(21)e-4 V/bit S_min=855.613 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[1] gain=-8.0576(48)e-4 V/bit S_min=247.142 dof=146 caldac[2] gain=-9.5271(72)e-4 V/bit S_min=244.411 dof=113 ao 0, zero offset, low gain offset 2.90(29)e-3, target 0.002442 caldac[0] gain=-8.89(22)e-6 V/bit S_min=213.697 dof=254 caldac[1] gain=-8.1490(22)e-4 V/bit S_min=1110.11 dof=254 caldac[4] gain=-1.2912(23)e-4 V/bit S_min=1033.65 dof=254 caldac[5] gain=-8.1167(22)e-4 V/bit S_min=1378.3 dof=254 ao 0, reference voltage, low gain offset -1.07(37)e-3, target -0.001221 caldac[0] gain=-1.229(30)e-5 V/bit S_min=243.406 dof=254 caldac[1] gain=-8.1459(22)e-4 V/bit S_min=1120.25 dof=254 caldac[4] gain=-1.6185(23)e-4 V/bit S_min=1064.04 dof=254 caldac[5] gain=-8.1219(22)e-4 V/bit S_min=1358.58 dof=254 caldac[6] gain=-1.0826(23)e-4 V/bit S_min=696.747 dof=254 ao 1, zero offset, low gain offset 3.17(28)e-3, target 0.002442 caldac[0] gain=-8.55(22)e-6 V/bit S_min=219.291 dof=254 caldac[1] gain=-8.1475(21)e-4 V/bit S_min=1397.03 dof=254 caldac[7] gain=-1.2878(23)e-4 V/bit S_min=1140.38 dof=254 caldac[8] gain=-8.0727(22)e-4 V/bit S_min=1409.3 dof=254 ao 1, reference voltage, low gain offset -1.41(34)e-3, target -0.001221 caldac[0] gain=-1.273(30)e-5 V/bit S_min=298.033 dof=254 caldac[1] gain=-8.1497(21)e-4 V/bit S_min=1353.84 dof=254 caldac[7] gain=-1.6111(22)e-4 V/bit S_min=1147.71 dof=254 caldac[8] gain=-8.0760(21)e-4 V/bit S_min=1405.33 dof=254 caldac[9] gain=-1.0714(23)e-4 V/bit S_min=1031.91 dof=254 comedi_calibrate-5/comedi_calibrate/results/DAQCard-6024E0000644000000000000000000000614312416542124020151 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.36 2002/06/12 23:19:39 ds Exp Driver name: ni_mio_cs Device name: DAQCard-6024E Id: ni.c,v 1.30 2002/06/12 23:19:39 ds Exp Comedi version: 0.7.66 ai, bipolar zero offset, low gain offset 4.62(21)e-3, target 0 caldac[0] gain=-1.10618(49)e-4 V/bit S_min=114170 dof=254 caldac[1] gain= V/bit S_min=inf dof=254 caldac[2] gain=-7.51323(55)e-4 V/bit S_min=1.56203e+06 dof=254 caldac[4] gain=-7.69042(51)e-4 V/bit S_min=99089.3 dof=254 caldac[8] gain=-6.4(12)e-10 V/bit S_min=4701.72 dof=254 ai, bipolar zero offset, high gain offset -0.0186344(18), target 0 caldac[0] gain=-1.183542(45)e-4 V/bit S_min=4.76705e+06 dof=254 caldac[2] gain=-2.4085(13)e-6 V/bit S_min=100923 dof=254 caldac[4] gain=-3.8300(13)e-6 V/bit S_min=1165.14 dof=254 ai, bipolar voltage reference, low gain offset 4.745078(98), target 5 caldac[0] gain=-1.17699(55)e-4 V/bit S_min=94250.4 dof=254 caldac[2] gain=-1.119095(62)e-3 V/bit S_min=9.92063e+06 dof=254 caldac[4] gain=-7.67072(51)e-4 V/bit S_min=91956.5 dof=254 ai, unipolar zero offset, low gain offset 9.797314( 0), target 0 caldac[0] gain=-1.20174(51)e-4 V/bit S_min=111385 dof=254 caldac[1] gain=-1.28(25)e-8 V/bit S_min=3018.72 dof=254 caldac[2] gain=-7.45864(57)e-4 V/bit S_min=5.43203e+06 dof=254 caldac[4] gain=-7.69423(50)e-4 V/bit S_min=103966 dof=254 caldac[5] gain=9.0(22)e-9 V/bit S_min=4066.28 dof=254 caldac[6] gain=-1.16(24)e-8 V/bit S_min=3194.71 dof=254 ao 0, zero offset, low gain offset -0.30472(13), target 0.002442 caldac[0] gain=-1.19038(58)e-4 V/bit S_min=82414.7 dof=254 caldac[2] gain=-8.52755(59)e-4 V/bit S_min=4.88665e+06 dof=254 caldac[4] gain=-7.68927(54)e-4 V/bit S_min=81115.2 dof=254 caldac[6] gain=-7.64443(53)e-4 V/bit S_min=83476.4 dof=254 ao 0, reference voltage, low gain offset -0.31174(20), target -0.001221 caldac[0] gain=-1.14856(54)e-4 V/bit S_min=104201 dof=254 caldac[2] gain=-9.28861(60)e-4 V/bit S_min=4.81254e+06 dof=254 caldac[3] gain=-1.08096(52)e-4 V/bit S_min=75744.9 dof=254 caldac[4] gain=-7.69600(51)e-4 V/bit S_min=93869.3 dof=254 caldac[6] gain=-7.65394(53)e-4 V/bit S_min=84042.7 dof=254 ao 1, zero offset, low gain offset -0.212454( 0), target 0.002442 caldac[0] gain=-1.19136(57)e-4 V/bit S_min=86134.3 dof=254 caldac[1] gain=-8.72967(55)e-4 V/bit S_min=74993.4 dof=254 caldac[2] gain=-7.44876(60)e-4 V/bit S_min=4.82335e+06 dof=254 caldac[3] gain=4.94(25)e-9 V/bit S_min=32381.1 dof=254 caldac[4] gain=-7.68712(53)e-4 V/bit S_min=88461.4 dof=254 caldac[5] gain= V/bit S_min=inf dof=254 caldac[6] gain= V/bit S_min=inf dof=254 caldac[7] gain= V/bit S_min=inf dof=254 ao 1, reference voltage, low gain offset -0.241758( 0), target -0.001221 caldac[0] gain=-1.19039(55)e-4 V/bit S_min=93637.5 dof=254 caldac[1] gain=-9.48743(53)e-4 V/bit S_min=98884.8 dof=254 caldac[2] gain=-7.41392(63)e-4 V/bit S_min=4.35679e+06 dof=254 caldac[4] gain=-7.67743(55)e-4 V/bit S_min=76872 dof=254 caldac[5] gain=-1.24628(58)e-4 V/bit S_min=53604.6 dof=254 caldac[6] gain=1.22(21)e-8 V/bit S_min=3594.81 dof=254 caldac[7] gain=1.04(25)e-8 V/bit S_min=3897.49 dof=254 comedi_calibrate-5/comedi_calibrate/results/pci-61100000644000000000000000000004620212416542124017414 00000000000000eeprom reference lsb=111 msb=0 resulting reference voltage: 5.00011 Id: comedi_calibrate.c,v 1.77 2003/05/22 20:49:53 fmhess Exp Driver name: ni_pcimio Device name: pci-6110 Id: ni.c,v 1.79 2003/05/22 20:42:34 fmhess Exp Comedi version: 0.7.66 ao ch 0, zero offset reading 0.167749(55), target 0.00015259 ao ch 0, reference voltage reading 5.248164(37), target 4.99992 ao ch 1, zero offset reading 0.084316(65), target 0.00015259 ao ch 1, reference voltage reading 5.124542(66), target 4.99992 ai, ch 0, range 0, zero offset reading -0.03737(14), target 0 ai, ch 0, range 0, voltage reference reading 3.97212(62)e1, target 39.7509 ai, ch 1, range 0, zero offset reading -0.06172(13), target 0 ai, ch 1, range 0, voltage reference reading 3.95901(62)e1, target 39.7509 ai, ch 2, range 0, zero offset reading -0.06069(12), target 0 ai, ch 2, range 0, voltage reference reading 3.96365(63)e1, target 39.7509 ai, ch 3, range 0, zero offset reading -0.03305(27), target 0 ai, ch 3, range 0, voltage reference reading 3.96762(62)e1, target 39.7509 ai, ch 0, range 1, zero offset reading -0.014910(56), target 0 ai, ch 0, range 1, voltage reference reading 1.57468(86)e1, target 15.7503 ai, ch 1, range 1, zero offset reading -0.025450(94), target 0 ai, ch 1, range 1, voltage reference reading 1.56933(86)e1, target 15.7503 ai, ch 2, range 1, zero offset reading -0.024907(72), target 0 ai, ch 2, range 1, voltage reference reading 1.57111(86)e1, target 15.7503 ai, ch 3, range 1, zero offset reading -0.01376(11), target 0 ai, ch 3, range 1, voltage reference reading 1.57287(86)e1, target 15.7503 ai, ch 0, range 2, zero offset reading -7.550(32)e-3, target 0 ai, ch 0, range 2, voltage reference reading 4.993809(21), target 5.00011 ai, ch 1, range 2, zero offset reading -0.012286(20), target 0 ai, ch 1, range 2, voltage reference reading 4.974927(49), target 5.00011 ai, ch 2, range 2, zero offset reading -0.012000(31), target 0 ai, ch 2, range 2, voltage reference reading 4.982963(65), target 5.00011 ai, ch 3, range 2, zero offset reading -6.553(57)e-3, target 0 ai, ch 3, range 2, voltage reference reading 4.988711(43), target 5.00011 ai, ch 0, range 3, zero offset reading -3.751(14)e-3, target 0 ai, ch 0, range 3, voltage reference reading 3.97205(62), target 3.97509 ai, ch 1, range 3, zero offset reading -6.150(12)e-3, target 0 ai, ch 1, range 3, voltage reference reading 3.95907(62), target 3.97509 ai, ch 2, range 3, zero offset reading -6.043(13)e-3, target 0 ai, ch 2, range 3, voltage reference reading 3.96385(62), target 3.97509 ai, ch 3, range 3, zero offset reading -3.262(28)e-3, target 0 ai, ch 3, range 3, voltage reference reading 3.96762(62), target 3.97509 ai, ch 0, range 4, zero offset reading -1.4871(53)e-3, target 0 ai, ch 0, range 4, voltage reference reading 1.57476(86), target 1.57503 ai, ch 1, range 4, zero offset reading -2.5307(89)e-3, target 0 ai, ch 1, range 4, voltage reference reading 1.56936(86), target 1.57503 ai, ch 2, range 4, zero offset reading -2.4840(71)e-3, target 0 ai, ch 2, range 4, voltage reference reading 1.57114(86), target 1.57503 ai, ch 3, range 4, zero offset reading -1.3956(99)e-3, target 0 ai, ch 3, range 4, voltage reference reading 1.57276(86), target 1.57503 ai, ch 0, range 5, zero offset reading -7.297(36)e-4, target 0 ai, ch 0, range 5, voltage reference reading 0.77509(49), target 0.775017 ai, ch 1, range 5, zero offset reading -1.3641(69)e-3, target 0 ai, ch 1, range 5, voltage reference reading 0.77230(49), target 0.775017 ai, ch 2, range 5, zero offset reading -1.4399(77)e-3, target 0 ai, ch 2, range 5, voltage reference reading 0.77314(49), target 0.775017 ai, ch 3, range 5, zero offset reading -7.717(66)e-4, target 0 ai, ch 3, range 5, voltage reference reading 0.77403(49), target 0.775017 ai, ch 0, range 6, zero offset reading -3.157(35)e-4, target 0 ai, ch 0, range 6, voltage reference reading 0.37521(25), target 0.375008 ai, ch 1, range 6, zero offset reading -7.696(37)e-4, target 0 ai, ch 1, range 6, voltage reference reading 0.37377(25), target 0.375008 ai, ch 2, range 6, zero offset reading -8.735(32)e-4, target 0 ai, ch 2, range 6, voltage reference reading 0.37395(24), target 0.375008 ai, ch 3, range 6, zero offset reading -4.781(43)e-4, target 0 ai, ch 3, range 6, voltage reference reading 0.37450(24), target 0.375008 ai, ch 0, range 7, zero offset reading 3.19(22)e-5, target 0 ai, ch 0, range 7, voltage reference reading 0.150259(100), target 0.150003 ai, ch 1, range 7, zero offset reading -2.899(19)e-4, target 0 ai, ch 1, range 7, voltage reference reading 0.14954(10), target 0.150003 ai, ch 2, range 7, zero offset reading -4.497(21)e-4, target 0 ai, ch 2, range 7, voltage reference reading 0.14949(10), target 0.150003 ai, ch 3, range 7, zero offset reading -2.098(27)e-4, target 0 ai, ch 3, range 7, voltage reference reading 0.14980(10), target 0.150003 relative binary: ai, ch 0, range 0, voltage reference, ai, ch 0, range 0, zero offset caldac[1] set to 119 binary: ai, ch 0, range 0, zero offset caldac[2] set to 140 relative binary: ai, ch 0, range 1, voltage reference, ai, ch 0, range 1, zero offset caldac[1] set to 123 binary: ai, ch 0, range 1, zero offset caldac[2] set to 139 relative binary: ai, ch 0, range 2, voltage reference, ai, ch 0, range 2, zero offset caldac[1] set to 123 binary: ai, ch 0, range 2, zero offset caldac[2] set to 140 relative binary: ai, ch 0, range 3, voltage reference, ai, ch 0, range 3, zero offset caldac[1] set to 119 binary: ai, ch 0, range 3, zero offset caldac[2] set to 140 relative binary: ai, ch 0, range 4, voltage reference, ai, ch 0, range 4, zero offset caldac[1] set to 123 binary: ai, ch 0, range 4, zero offset caldac[2] set to 139 relative binary: ai, ch 0, range 5, voltage reference, ai, ch 0, range 5, zero offset caldac[1] set to 127 binary: ai, ch 0, range 5, zero offset caldac[2] set to 139 relative binary: ai, ch 0, range 6, voltage reference, ai, ch 0, range 6, zero offset caldac[1] set to 127 binary: ai, ch 0, range 6, zero offset caldac[2] set to 137 relative binary: ai, ch 0, range 7, voltage reference, ai, ch 0, range 7, zero offset caldac[1] set to 125 binary: ai, ch 0, range 7, zero offset caldac[2] set to 125 relative binary: ai, ch 1, range 0, voltage reference, ai, ch 1, range 0, zero offset caldac[3] set to 155 binary: ai, ch 1, range 0, zero offset caldac[4] set to 147 relative binary: ai, ch 1, range 1, voltage reference, ai, ch 1, range 1, zero offset caldac[3] set to 155 binary: ai, ch 1, range 1, zero offset caldac[4] set to 148 relative binary: ai, ch 1, range 2, voltage reference, ai, ch 1, range 2, zero offset caldac[3] set to 157 binary: ai, ch 1, range 2, zero offset caldac[4] set to 147 relative binary: ai, ch 1, range 3, voltage reference, ai, ch 1, range 3, zero offset caldac[3] set to 155 binary: ai, ch 1, range 3, zero offset caldac[4] set to 147 relative binary: ai, ch 1, range 4, voltage reference, ai, ch 1, range 4, zero offset caldac[3] set to 159 binary: ai, ch 1, range 4, zero offset caldac[4] set to 148 relative binary: ai, ch 1, range 5, voltage reference, ai, ch 1, range 5, zero offset caldac[3] set to 163 binary: ai, ch 1, range 5, zero offset caldac[4] set to 149 relative binary: ai, ch 1, range 6, voltage reference, ai, ch 1, range 6, zero offset caldac[3] set to 159 binary: ai, ch 1, range 6, zero offset caldac[4] set to 151 relative binary: ai, ch 1, range 7, voltage reference, ai, ch 1, range 7, zero offset caldac[3] set to 161 binary: ai, ch 1, range 7, zero offset caldac[4] set to 151 relative binary: ai, ch 2, range 0, voltage reference, ai, ch 2, range 0, zero offset caldac[5] set to 139 binary: ai, ch 2, range 0, zero offset caldac[6] set to 145 relative binary: ai, ch 2, range 1, voltage reference, ai, ch 2, range 1, zero offset caldac[5] set to 144 binary: ai, ch 2, range 1, zero offset caldac[6] set to 147 relative binary: ai, ch 2, range 2, voltage reference, ai, ch 2, range 2, zero offset caldac[5] set to 140 binary: ai, ch 2, range 2, zero offset caldac[6] set to 145 relative binary: ai, ch 2, range 3, voltage reference, ai, ch 2, range 3, zero offset caldac[5] set to 141 binary: ai, ch 2, range 3, zero offset caldac[6] set to 145 relative binary: ai, ch 2, range 4, voltage reference, ai, ch 2, range 4, zero offset caldac[5] set to 144 binary: ai, ch 2, range 4, zero offset caldac[6] set to 147 relative binary: ai, ch 2, range 5, voltage reference, ai, ch 2, range 5, zero offset caldac[5] set to 148 binary: ai, ch 2, range 5, zero offset caldac[6] set to 149 relative binary: ai, ch 2, range 6, voltage reference, ai, ch 2, range 6, zero offset caldac[5] set to 149 binary: ai, ch 2, range 6, zero offset caldac[6] set to 155 relative binary: ai, ch 2, range 7, voltage reference, ai, ch 2, range 7, zero offset caldac[5] set to 151 binary: ai, ch 2, range 7, zero offset caldac[6] set to 163 relative binary: ai, ch 3, range 0, voltage reference, ai, ch 3, range 0, zero offset caldac[7] set to 135 binary: ai, ch 3, range 0, zero offset caldac[8] set to 137 relative binary: ai, ch 3, range 1, voltage reference, ai, ch 3, range 1, zero offset caldac[7] set to 138 binary: ai, ch 3, range 1, zero offset caldac[8] set to 137 relative binary: ai, ch 3, range 2, voltage reference, ai, ch 3, range 2, zero offset caldac[7] set to 141 binary: ai, ch 3, range 2, zero offset caldac[8] set to 136 relative binary: ai, ch 3, range 3, voltage reference, ai, ch 3, range 3, zero offset caldac[7] set to 135 binary: ai, ch 3, range 3, zero offset caldac[8] set to 137 relative binary: ai, ch 3, range 4, voltage reference, ai, ch 3, range 4, zero offset caldac[7] set to 138 binary: ai, ch 3, range 4, zero offset caldac[8] set to 137 relative binary: ai, ch 3, range 5, voltage reference, ai, ch 3, range 5, zero offset caldac[7] set to 143 binary: ai, ch 3, range 5, zero offset caldac[8] set to 139 relative binary: ai, ch 3, range 6, voltage reference, ai, ch 3, range 6, zero offset caldac[7] set to 143 binary: ai, ch 3, range 6, zero offset caldac[8] set to 141 relative binary: ai, ch 3, range 7, voltage reference, ai, ch 3, range 7, zero offset caldac[7] set to 147 binary: ai, ch 3, range 7, zero offset caldac[8] set to 143 relative binary: ao ch 0, zero offset, ao ch 0, reference voltage caldac[13] set to 191 binary: ao ch 0, zero offset caldac[14] set to 32 relative binary: ao ch 1, zero offset, ao ch 1, reference voltage caldac[15] set to 158 binary: ao ch 1, zero offset caldac[16] set to 77 writing calibration to foo ao ch 0, zero offset applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 0, range 2, aref 2 reading -5.01(75)e-4, target 0.00015259 ao ch 0, reference voltage applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 0, range 2, aref 2 reading 4.998669(24), target 4.99992 ao ch 1, zero offset applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 0, range 2, aref 2 reading -9.40(70)e-4, target 0.00015259 ao ch 1, reference voltage applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 0, range 2, aref 2 reading 4.998822(17), target 4.99992 ai, ch 0, range 0, zero offset applied calibration for subdev 0, channel 0, range 0, aref 2 reading -2.81(37)e-3, target 0 ai, ch 0, range 0, voltage reference applied calibration for subdev 0, channel 0, range 0, aref 2 reading 3.97350(62)e1, target 39.7509 ai, ch 1, range 0, zero offset applied calibration for subdev 0, channel 1, range 0, aref 2 reading -5.79(34)e-3, target 0 ai, ch 1, range 0, voltage reference applied calibration for subdev 0, channel 1, range 0, aref 2 reading 3.97332(62)e1, target 39.7509 ai, ch 2, range 0, zero offset applied calibration for subdev 0, channel 2, range 0, aref 2 reading -6.51(32)e-3, target 0 ai, ch 2, range 0, voltage reference applied calibration for subdev 0, channel 2, range 0, aref 2 reading 3.97287(62)e1, target 39.7509 ai, ch 3, range 0, zero offset applied calibration for subdev 0, channel 3, range 0, aref 2 reading -1.62(38)e-3, target 0 ai, ch 3, range 0, voltage reference applied calibration for subdev 0, channel 3, range 0, aref 2 reading 3.97325(62)e1, target 39.7509 ai, ch 0, range 1, zero offset applied calibration for subdev 0, channel 0, range 1, aref 2 reading -2.28(13)e-3, target 0 ai, ch 0, range 1, voltage reference applied calibration for subdev 0, channel 0, range 1, aref 2 reading 1.57575(86)e1, target 15.7503 ai, ch 1, range 1, zero offset applied calibration for subdev 0, channel 1, range 1, aref 2 reading -1.96(14)e-3, target 0 ai, ch 1, range 1, voltage reference applied calibration for subdev 0, channel 1, range 1, aref 2 reading 1.57523(86)e1, target 15.7503 ai, ch 2, range 1, zero offset applied calibration for subdev 0, channel 2, range 1, aref 2 reading -2.22(14)e-3, target 0 ai, ch 2, range 1, voltage reference applied calibration for subdev 0, channel 2, range 1, aref 2 reading 1.57503(85)e1, target 15.7503 ai, ch 3, range 1, zero offset applied calibration for subdev 0, channel 3, range 1, aref 2 reading -1.77(14)e-3, target 0 ai, ch 3, range 1, voltage reference applied calibration for subdev 0, channel 3, range 1, aref 2 reading 1.57543(86)e1, target 15.7503 ai, ch 0, range 2, zero offset applied calibration for subdev 0, channel 0, range 2, aref 2 reading -6.87(73)e-4, target 0 ai, ch 0, range 2, voltage reference applied calibration for subdev 0, channel 0, range 2, aref 2 reading 4.998979(30), target 5.00011 ai, ch 1, range 2, zero offset applied calibration for subdev 0, channel 1, range 2, aref 2 reading -1.178(67)e-3, target 0 ai, ch 1, range 2, voltage reference applied calibration for subdev 0, channel 1, range 2, aref 2 reading 4.998793(17), target 5.00011 ai, ch 2, range 2, zero offset applied calibration for subdev 0, channel 2, range 2, aref 2 reading -1.087(68)e-3, target 0 ai, ch 2, range 2, voltage reference applied calibration for subdev 0, channel 2, range 2, aref 2 reading 4.998641(26), target 5.00011 ai, ch 3, range 2, zero offset applied calibration for subdev 0, channel 3, range 2, aref 2 reading -9.44(70)e-4, target 0 ai, ch 3, range 2, voltage reference applied calibration for subdev 0, channel 3, range 2, aref 2 reading 4.999304(49), target 5.00011 ai, ch 0, range 3, zero offset applied calibration for subdev 0, channel 0, range 3, aref 2 reading -2.38(37)e-4, target 0 ai, ch 0, range 3, voltage reference applied calibration for subdev 0, channel 0, range 3, aref 2 reading 3.97356(62), target 3.97509 ai, ch 1, range 3, zero offset applied calibration for subdev 0, channel 1, range 3, aref 2 reading -6.08(33)e-4, target 0 ai, ch 1, range 3, voltage reference applied calibration for subdev 0, channel 1, range 3, aref 2 reading 3.97333(62), target 3.97509 ai, ch 2, range 3, zero offset applied calibration for subdev 0, channel 2, range 3, aref 2 reading -5.94(33)e-4, target 0 ai, ch 2, range 3, voltage reference applied calibration for subdev 0, channel 2, range 3, aref 2 reading 3.97349(62), target 3.97509 ai, ch 3, range 3, zero offset applied calibration for subdev 0, channel 3, range 3, aref 2 reading -1.96(38)e-4, target 0 ai, ch 3, range 3, voltage reference applied calibration for subdev 0, channel 3, range 3, aref 2 reading 3.97315(62), target 3.97509 ai, ch 0, range 4, zero offset applied calibration for subdev 0, channel 0, range 4, aref 2 reading -2.57(13)e-4, target 0 ai, ch 0, range 4, voltage reference applied calibration for subdev 0, channel 0, range 4, aref 2 reading 1.57571(86), target 1.57503 ai, ch 1, range 4, zero offset applied calibration for subdev 0, channel 1, range 4, aref 2 reading -1.65(14)e-4, target 0 ai, ch 1, range 4, voltage reference applied calibration for subdev 0, channel 1, range 4, aref 2 reading 1.57555(85), target 1.57503 ai, ch 2, range 4, zero offset applied calibration for subdev 0, channel 2, range 4, aref 2 reading -1.93(14)e-4, target 0 ai, ch 2, range 4, voltage reference applied calibration for subdev 0, channel 2, range 4, aref 2 reading 1.57577(86), target 1.57503 ai, ch 3, range 4, zero offset applied calibration for subdev 0, channel 3, range 4, aref 2 reading -1.85(14)e-4, target 0 ai, ch 3, range 4, voltage reference applied calibration for subdev 0, channel 3, range 4, aref 2 reading 1.57540(86), target 1.57503 ai, ch 0, range 5, zero offset applied calibration for subdev 0, channel 0, range 5, aref 2 reading -2.53(76)e-5, target 0 ai, ch 0, range 5, voltage reference applied calibration for subdev 0, channel 0, range 5, aref 2 reading 0.77586(49), target 0.775017 ai, ch 1, range 5, zero offset applied calibration for subdev 0, channel 1, range 5, aref 2 reading -9.11(71)e-5, target 0 ai, ch 1, range 5, voltage reference applied calibration for subdev 0, channel 1, range 5, aref 2 reading 0.77579(49), target 0.775017 ai, ch 2, range 5, zero offset applied calibration for subdev 0, channel 2, range 5, aref 2 reading -1.307(65)e-4, target 0 ai, ch 2, range 5, voltage reference applied calibration for subdev 0, channel 2, range 5, aref 2 reading 0.77570(49), target 0.775017 ai, ch 3, range 5, zero offset applied calibration for subdev 0, channel 3, range 5, aref 2 reading -5.15(75)e-5, target 0 ai, ch 3, range 5, voltage reference applied calibration for subdev 0, channel 3, range 5, aref 2 reading 0.77573(49), target 0.775017 ai, ch 0, range 6, zero offset applied calibration for subdev 0, channel 0, range 6, aref 2 reading -1.86(39)e-5, target 0 ai, ch 0, range 6, voltage reference applied calibration for subdev 0, channel 0, range 6, aref 2 reading 0.37528(24), target 0.375008 ai, ch 1, range 6, zero offset applied calibration for subdev 0, channel 1, range 6, aref 2 reading -4.48(36)e-5, target 0 ai, ch 1, range 6, voltage reference applied calibration for subdev 0, channel 1, range 6, aref 2 reading 0.37541(25), target 0.375008 ai, ch 2, range 6, zero offset applied calibration for subdev 0, channel 2, range 6, aref 2 reading -3.84(37)e-5, target 0 ai, ch 2, range 6, voltage reference applied calibration for subdev 0, channel 2, range 6, aref 2 reading 0.37545(25), target 0.375008 ai, ch 3, range 6, zero offset applied calibration for subdev 0, channel 3, range 6, aref 2 reading -3.91(42)e-5, target 0 ai, ch 3, range 6, voltage reference applied calibration for subdev 0, channel 3, range 6, aref 2 reading 0.37542(25), target 0.375008 ai, ch 0, range 7, zero offset applied calibration for subdev 0, channel 0, range 7, aref 2 reading 3.7(21)e-6, target 0 ai, ch 0, range 7, voltage reference applied calibration for subdev 0, channel 0, range 7, aref 2 reading 0.15022(10), target 0.150003 ai, ch 1, range 7, zero offset applied calibration for subdev 0, channel 1, range 7, aref 2 reading 0.4(19)e-6, target 0 ai, ch 1, range 7, voltage reference applied calibration for subdev 0, channel 1, range 7, aref 2 reading 0.15021(10), target 0.150003 ai, ch 2, range 7, zero offset applied calibration for subdev 0, channel 2, range 7, aref 2 reading -2.11(21)e-5, target 0 ai, ch 2, range 7, voltage reference applied calibration for subdev 0, channel 2, range 7, aref 2 reading 0.14994(10), target 0.150003 ai, ch 3, range 7, zero offset applied calibration for subdev 0, channel 3, range 7, aref 2 reading -1.06(26)e-5, target 0 ai, ch 3, range 7, voltage reference applied calibration for subdev 0, channel 3, range 7, aref 2 reading 0.150191(99), target 0.150003 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/measurement-computing-pci-das10000000644000000000000000000002663512416542124024433 00000000000000Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: cb_pcidas Device name: pci-das1000 Id: cb.c,v 1.44 2004/08/02 00:10:47 fmhess Exp Comedi version: 0.7.69 calibration source 0, range 0, ground referenced reading 7.984(52)e-3, target 0 caldac[6] gain=-1.86581(56)e-3 V/bit S_min=421.042 dof=14 caldac[7] gain=-2.0112(60)e-4 V/bit S_min=267.505 dof=14 calibration source 1, range 0, ground referenced reading 7.034803(50), target 7.0076 caldac[6] gain=-1.85979(48)e-3 V/bit S_min=435.119 dof=14 caldac[7] gain=-2.0578(58)e-4 V/bit S_min=232.528 dof=14 caldac[8] gain=7.935(14)e-4 V/bit S_min=49202.5 dof=14 calibration source 0, range 1, ground referenced reading 3.935(24)e-3, target 0 caldac[6] gain=-9.3299(28)e-4 V/bit S_min=422.313 dof=14 caldac[7] gain=-1.0051(29)e-4 V/bit S_min=275.887 dof=14 calibration source 2, range 1, ground referenced reading 3.513779(45), target 3.50385 caldac[6] gain=-9.3104(29)e-4 V/bit S_min=237.822 dof=14 caldac[7] gain=-1.0336(29)e-4 V/bit S_min=270.512 dof=14 caldac[8] gain=3.9435(59)e-4 V/bit S_min=67713.5 dof=14 calibration source 0, range 2, ground referenced reading 1.938(11)e-3, target 0 caldac[6] gain=-4.6650(14)e-4 V/bit S_min=416.31 dof=14 caldac[7] gain=-5.024(14)e-5 V/bit S_min=273.133 dof=14 calibration source 3, range 2, ground referenced reading 1.757882(15), target 1.75191 caldac[6] gain=-4.6544(13)e-4 V/bit S_min=300.893 dof=14 caldac[7] gain=-5.176(14)e-5 V/bit S_min=286.703 dof=14 caldac[8] gain=1.9716(29)e-4 V/bit S_min=72646.8 dof=14 calibration source 0, range 3, ground referenced reading 9.658(52)e-4, target 0 caldac[6] gain=-2.33233(65)e-4 V/bit S_min=498.347 dof=14 caldac[7] gain=-2.5166(69)e-5 V/bit S_min=321.382 dof=14 calibration source 4, range 3, ground referenced reading 0.8794088(33), target 0.875988 caldac[6] gain=-2.32900(74)e-4 V/bit S_min=240.237 dof=14 caldac[7] gain=-2.5995(67)e-5 V/bit S_min=358.593 dof=14 caldac[8] gain=9.843(12)e-5 V/bit S_min=105395 dof=14 calibration source 0, range 4, ground referenced reading nan, target 0.001221 caldac[6] gain=-1.86589(58)e-3 V/bit S_min=432.953 dof=6 caldac[7] gain=-2.0489(65)e-4 V/bit S_min=114.055 dof=6 caldac[8] gain=-1.0294(11)e-3 V/bit S_min=51645.4 dof=6 calibration source 1, range 4, ground referenced reading 7.021026(24), target 7.0076 caldac[6] gain=-1.86109(34)e-3 V/bit S_min=163.347 dof=14 caldac[7] gain=-2.0429(30)e-4 V/bit S_min=210.313 dof=14 caldac[8] gain=2.2589(64)e-4 V/bit S_min=18682.3 dof=14 calibration source 0, range 5, ground referenced reading nan, target 0.000610501 caldac[6] gain=-9.3253(29)e-4 V/bit S_min=336.749 dof=6 caldac[7] gain=-1.0210(32)e-4 V/bit S_min=101.315 dof=6 caldac[8] gain=-5.1395(62)e-4 V/bit S_min=37432.3 dof=6 calibration source 2, range 5, ground referenced reading 3.508553(28), target 3.50385 caldac[6] gain=-9.3014(14)e-4 V/bit S_min=387.281 dof=14 caldac[7] gain=-1.0187(15)e-4 V/bit S_min=254.988 dof=14 caldac[8] gain=1.1423(31)e-4 V/bit S_min=22826.7 dof=14 calibration source 0, range 6, ground referenced reading nan, target 0.00030525 caldac[6] gain=-4.6627(14)e-4 V/bit S_min=357.44 dof=6 caldac[7] gain=-5.109(15)e-5 V/bit S_min=122.391 dof=6 caldac[8] gain=-2.5700(29)e-4 V/bit S_min=42442.6 dof=6 calibration source 3, range 6, ground referenced reading 1.754741(12), target 1.75191 caldac[6] gain=-4.65053(71)e-4 V/bit S_min=380.121 dof=14 caldac[7] gain=-5.0945(77)e-5 V/bit S_min=239.611 dof=14 caldac[8] gain=5.706(15)e-5 V/bit S_min=25286.7 dof=14 calibration source 0, range 7, ground referenced reading nan, target 0.000152625 caldac[6] gain=-2.33174(68)e-4 V/bit S_min=471.264 dof=6 caldac[7] gain=-2.5583(74)e-5 V/bit S_min=125.317 dof=6 caldac[8] gain=-1.2843(13)e-4 V/bit S_min=51461.3 dof=6 calibration source 4, range 7, ground referenced reading 0.8776542(39), target 0.875988 caldac[6] gain=-2.32654(39)e-4 V/bit S_min=205.103 dof=14 caldac[7] gain=-2.5466(39)e-5 V/bit S_min=220.703 dof=14 caldac[8] gain=2.8303(68)e-5 V/bit S_min=28342 dof=14 relative binary: calibration source 1, range 0, ground referenced, calibration source 0, range 0, ground referenced caldac[8] set to 38 binary: calibration source 0, range 0, ground referenced caldac[6] set to 131 binary: calibration source 0, range 0, ground referenced caldac[7] set to 134 relative binary: calibration source 2, range 1, ground referenced, calibration source 0, range 1, ground referenced caldac[8] set to 39 binary: calibration source 0, range 1, ground referenced caldac[6] set to 131 binary: calibration source 0, range 1, ground referenced caldac[7] set to 133 relative binary: calibration source 3, range 2, ground referenced, calibration source 0, range 2, ground referenced caldac[8] set to 39 binary: calibration source 0, range 2, ground referenced caldac[6] set to 131 binary: calibration source 0, range 2, ground referenced caldac[7] set to 133 relative binary: calibration source 4, range 3, ground referenced, calibration source 0, range 3, ground referenced caldac[8] set to 37 binary: calibration source 0, range 3, ground referenced caldac[6] set to 131 binary: calibration source 0, range 3, ground referenced caldac[7] set to 133 relative binary: calibration source 1, range 4, ground referenced, calibration source 0, range 4, ground referenced caldac[8] set to 43 binary: calibration source 0, range 4, ground referenced caldac[6] set to 133 binary: calibration source 0, range 4, ground referenced caldac[7] set to 123 relative binary: calibration source 2, range 5, ground referenced, calibration source 0, range 5, ground referenced caldac[8] set to 45 binary: calibration source 0, range 5, ground referenced caldac[6] set to 131 binary: calibration source 0, range 5, ground referenced caldac[7] set to 135 relative binary: calibration source 3, range 6, ground referenced, calibration source 0, range 6, ground referenced caldac[8] set to 44 binary: calibration source 0, range 6, ground referenced caldac[6] set to 132 binary: calibration source 0, range 6, ground referenced caldac[7] set to 129 relative binary: calibration source 4, range 7, ground referenced, calibration source 0, range 7, ground referenced caldac[8] set to 43 binary: calibration source 0, range 7, ground referenced caldac[6] set to 133 binary: calibration source 0, range 7, ground referenced caldac[7] set to 123 writing calibration to /usr/local/var/lib/comedi/calibrations/cb_pcidas_pci-das1000_comedi0 calibration source 0, range 0, ground referenced applied calibration for subdev 0, channel 0, range 0, aref 0 reading -1.9(76)e-5, target 0 caldac[6] gain=-1.85819(58)e-3 V/bit S_min=246.116 dof=14 caldac[7] gain=-2.0293(57)e-4 V/bit S_min=365.659 dof=14 calibration source 1, range 0, ground referenced applied calibration for subdev 0, channel 0, range 0, aref 0 reading 7.006110(18), target 7.0076 caldac[6] gain=-1.85649(54)e-3 V/bit S_min=391.393 dof=14 caldac[7] gain=-2.0482(58)e-4 V/bit S_min=183.339 dof=14 caldac[8] gain=7.908(14)e-4 V/bit S_min=54438.7 dof=14 calibration source 0, range 1, ground referenced applied calibration for subdev 0, channel 0, range 1, aref 0 reading 2.29(37)e-4, target 0 caldac[6] gain=-9.2926(28)e-4 V/bit S_min=256.391 dof=14 caldac[7] gain=-1.0162(29)e-4 V/bit S_min=335.151 dof=14 calibration source 2, range 1, ground referenced applied calibration for subdev 0, channel 0, range 1, aref 0 reading 3.501951(38), target 3.50385 caldac[6] gain=-9.2937(29)e-4 V/bit S_min=230.487 dof=14 caldac[7] gain=-1.0290(29)e-4 V/bit S_min=313.108 dof=14 caldac[8] gain=3.9408(63)e-4 V/bit S_min=59884.6 dof=14 calibration source 0, range 2, ground referenced applied calibration for subdev 0, channel 0, range 2, aref 0 reading 2.1(19)e-5, target 0 caldac[6] gain=-4.6454(14)e-4 V/bit S_min=265.144 dof=14 caldac[7] gain=-5.073(13)e-5 V/bit S_min=361.828 dof=14 calibration source 3, range 2, ground referenced applied calibration for subdev 0, channel 0, range 2, aref 0 reading 1.750835(19), target 1.75191 caldac[6] gain=-4.6476(14)e-4 V/bit S_min=273.22 dof=14 caldac[7] gain=-5.140(14)e-5 V/bit S_min=331.63 dof=14 caldac[8] gain=1.9696(31)e-4 V/bit S_min=60489.6 dof=14 calibration source 0, range 3, ground referenced applied calibration for subdev 0, channel 0, range 3, aref 0 reading 4.29(94)e-5, target 0 caldac[6] gain=-2.32247(67)e-4 V/bit S_min=307.005 dof=14 caldac[7] gain=-2.5334(66)e-5 V/bit S_min=393.089 dof=14 calibration source 4, range 3, ground referenced applied calibration for subdev 0, channel 0, range 3, aref 0 reading 0.8757631(15), target 0.875988 caldac[6] gain=-2.32295(53)e-4 V/bit S_min=562.905 dof=14 caldac[7] gain=-2.5575(65)e-5 V/bit S_min=304.338 dof=14 caldac[8] gain=9.831(13)e-5 V/bit S_min=85232.3 dof=14 calibration source 0, range 4, ground referenced applied calibration for subdev 0, channel 0, range 4, aref 0 reading 1.977(30)e-3, target 0.001221 caldac[6] gain=-1.07986(19)e-3 V/bit S_min=5.59189e+06 dof=14 caldac[7] gain=-1.1591(16)e-4 V/bit S_min=98640 dof=14 caldac[8] gain=-3.3993(24)e-4 V/bit S_min=1.30899e+06 dof=14 calibration source 1, range 4, ground referenced applied calibration for subdev 0, channel 0, range 4, aref 0 reading 7.006878(35), target 7.0076 caldac[6] gain=-1.85669(32)e-3 V/bit S_min=195.997 dof=14 caldac[7] gain=-2.0577(32)e-4 V/bit S_min=164.816 dof=14 caldac[8] gain=2.2485(57)e-4 V/bit S_min=24935.5 dof=14 calibration source 0, range 5, ground referenced applied calibration for subdev 0, channel 0, range 5, aref 0 reading 8.53(18)e-4, target 0.000610501 caldac[6] gain=-5.29015(76)e-4 V/bit S_min=9.15855e+06 dof=14 caldac[7] gain=-5.3594(76)e-5 V/bit S_min=113696 dof=14 caldac[8] gain=-1.6898(12)e-4 V/bit S_min=1.31063e+06 dof=14 calibration source 2, range 5, ground referenced applied calibration for subdev 0, channel 0, range 5, aref 0 reading 3.502874(23), target 3.50385 caldac[6] gain=-9.2851(13)e-4 V/bit S_min=417.629 dof=14 caldac[7] gain=-1.0289(17)e-4 V/bit S_min=142.272 dof=14 caldac[8] gain=1.1351(34)e-4 V/bit S_min=17370.8 dof=14 calibration source 0, range 6, ground referenced applied calibration for subdev 0, channel 0, range 6, aref 0 reading 4.155(89)e-4, target 0.00030525 caldac[6] gain=-2.67135(46)e-4 V/bit S_min=6.24559e+06 dof=14 caldac[7] gain=-2.7738(41)e-5 V/bit S_min=102466 dof=14 caldac[8] gain=-8.4423(61)e-5 V/bit S_min=1.26481e+06 dof=14 calibration source 3, range 6, ground referenced applied calibration for subdev 0, channel 0, range 6, aref 0 reading 1.7515680(93), target 1.75191 caldac[6] gain=-4.64172(84)e-4 V/bit S_min=179.131 dof=14 caldac[7] gain=-5.1435(78)e-5 V/bit S_min=168.279 dof=14 caldac[8] gain=5.689(16)e-5 V/bit S_min=18619.4 dof=14 calibration source 0, range 7, ground referenced applied calibration for subdev 0, channel 0, range 7, aref 0 reading 2.224(42)e-4, target 0.000152625 caldac[6] gain=-1.34937(22)e-4 V/bit S_min=6.39087e+06 dof=14 caldac[7] gain=-1.4429(19)e-5 V/bit S_min=120304 dof=14 caldac[8] gain=-4.2386(29)e-5 V/bit S_min=1.43736e+06 dof=14 calibration source 4, range 7, ground referenced applied calibration for subdev 0, channel 0, range 7, aref 0 reading 0.8759354(47), target 0.875988 caldac[6] gain=-2.32075(30)e-4 V/bit S_min=569.525 dof=14 caldac[7] gain=-2.5747(38)e-5 V/bit S_min=168.221 dof=14 caldac[8] gain=2.8316(69)e-5 V/bit S_min=27662.3 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-mio-16e-10000644000000000000000000001407712416542124020345 00000000000000Warning: device not fully calibrated due to insufficient information Please send this output to Id: comedi_calibrate.c,v 1.21 2001/10/10 22:07:53 ds Exp Driver name: ni_pcimio Device name: pci-mio-16e-1 Comedi version: 0.7.61 ai, bipolar zero offset, low gain offset 0.01206(25), target 0 caldac[0] gain=-8.29(22)e-6 V/bit S_min=278.185 dof=254 caldac[1] gain=-7.5209(22)e-4 V/bit S_min=445.48 dof=254 ai, bipolar zero offset, high gain offset 2.066(17)e-4, target 0 caldac[0] gain=-8.7337(15)e-6 V/bit S_min=8697.64 dof=254 caldac[1] gain=-3.7588(15)e-6 V/bit S_min=265.249 dof=254 caldac[3] gain=-8.5(15)e-9 V/bit S_min=262.81 dof=254 ai, bipolar voltage reference, low gain offset 5.00755(22), target 5 caldac[0] gain=-8.59(22)e-6 V/bit S_min=341.899 dof=254 caldac[1] gain=-7.4253(22)e-4 V/bit S_min=888.173 dof=254 caldac[3] gain=-4.7244(22)e-4 V/bit S_min=671.915 dof=254 ai, unipolar zero offset, low gain offset 0.03392(29), target 0 caldac[0] gain=-8.37(22)e-6 V/bit S_min=288.608 dof=254 caldac[1] gain=-7.4805(46)e-4 V/bit S_min=172.508 dof=157 caldac[2] gain=-9.6141(49)e-4 V/bit S_min=165.671 dof=151 caldac[3] gain=-5.63(23)e-6 V/bit S_min=256.808 dof=254 ao 0, zero offset, low gain offset 0.01023(27), target 0.002442 caldac[0] gain=-8.73(22)e-6 V/bit S_min=324.815 dof=254 caldac[1] gain=-7.5188(22)e-4 V/bit S_min=389.927 dof=254 caldac[4] gain=-1.2476(22)e-4 V/bit S_min=433.973 dof=254 caldac[5] gain=-8.1886(23)e-4 V/bit S_min=420.241 dof=254 ao 0, reference voltage, low gain offset 3.28(27)e-3, target -0.001221 caldac[0] gain=-9.59(23)e-6 V/bit S_min=302.239 dof=254 caldac[1] gain=-7.5264(22)e-4 V/bit S_min=431.901 dof=254 caldac[3] gain=1.88(23)e-6 V/bit S_min=335.204 dof=254 caldac[4] gain=-1.5219(22)e-4 V/bit S_min=354.72 dof=254 caldac[5] gain=-8.1937(22)e-4 V/bit S_min=322.292 dof=254 caldac[6] gain=-1.0071(22)e-4 V/bit S_min=372.167 dof=254 ao 1, zero offset, low gain offset 9.58(26)e-3, target 0.002442 caldac[0] gain=-8.72(22)e-6 V/bit S_min=279.315 dof=254 caldac[1] gain=-7.5238(22)e-4 V/bit S_min=441.762 dof=254 caldac[3] gain=1.17(23)e-6 V/bit S_min=328.146 dof=254 caldac[7] gain=-1.2458(22)e-4 V/bit S_min=407.535 dof=254 caldac[8] gain=-8.2001(22)e-4 V/bit S_min=454.449 dof=254 ao 1, reference voltage, low gain offset 2.63(27)e-3, target -0.001221 caldac[0] gain=-9.71(23)e-6 V/bit S_min=261.054 dof=254 caldac[1] gain=-7.5267(22)e-4 V/bit S_min=358.388 dof=254 caldac[3] gain=2.15(23)e-6 V/bit S_min=292.124 dof=254 caldac[7] gain=-1.5248(22)e-4 V/bit S_min=307.658 dof=254 caldac[8] gain=-8.1997(22)e-4 V/bit S_min=507.586 dof=254 caldac[9] gain=-1.0055(23)e-4 V/bit S_min=296.253 dof=254 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[1] gain=-7.5218(22)e-4 V/bit S_min=436.614 dof=254 caldac[1] gain=-3.7575(15)e-6 V/bit S_min=346.397 dof=254 caldac[1] set to 142.699 linear: ai, bipolar zero offset, high gain caldac[0] gain=-8.7341(15)e-6 V/bit S_min=8897.47 dof=254 caldac[0] set to 152.69 linear: ai, bipolar voltage reference, low gain caldac[3] gain=-4.7280(22)e-4 V/bit S_min=678.224 dof=254 caldac[3] set to 117.778 linear: ai, unipolar zero offset, low gain caldac[2] gain=-9.6156(54)e-4 V/bit S_min=155.07 dof=139 caldac[2] set to 149.988 linear: ao 0, zero offset, low gain caldac[5] gain=-8.1932(22)e-4 V/bit S_min=427.632 dof=254 caldac[5] set to 121.111 linear: ao 0, reference voltage, low gain caldac[6] gain=-9.969(22)e-5 V/bit S_min=328.876 dof=254 caldac[6] set to 92.4325 linear: ao 1, zero offset, low gain caldac[8] gain=-8.2062(23)e-4 V/bit S_min=459.368 dof=254 caldac[8] set to 120.361 linear: ao 1, reference voltage, low gain caldac[9] gain=-1.0039(22)e-4 V/bit S_min=323.354 dof=254 caldac[9] set to 99.7785 ai, bipolar zero offset, low gain offset -6.5(27)e-4, target 0 caldac[0] gain=-9.95(23)e-6 V/bit S_min=338.439 dof=254 caldac[1] gain=-7.5204(22)e-4 V/bit S_min=429.041 dof=254 caldac[3] gain=2.51(22)e-6 V/bit S_min=364.338 dof=254 caldac[10] gain=-1.00(22)e-6 V/bit S_min=323.405 dof=254 ai, bipolar zero offset, high gain offset -9.20(17)e-5, target 0 caldac[0] gain=-8.7297(15)e-6 V/bit S_min=8791.37 dof=254 caldac[1] gain=-3.7597(15)e-6 V/bit S_min=302.304 dof=254 caldac[3] gain=1.84(15)e-8 V/bit S_min=294.466 dof=254 ai, bipolar voltage reference, low gain offset 4.99966(27), target 5 caldac[0] gain=-8.65(22)e-6 V/bit S_min=284.39 dof=254 caldac[1] gain=-7.4207(23)e-4 V/bit S_min=657.313 dof=254 caldac[3] gain=-4.7248(22)e-4 V/bit S_min=654.996 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[1] gain=-7.4827(64)e-4 V/bit S_min=99.3453 dof=126 caldac[2] gain=-9.6069(55)e-4 V/bit S_min=218.772 dof=139 ao 0, zero offset, low gain offset 2.21(26)e-3, target 0.002442 caldac[0] gain=-9.28(23)e-6 V/bit S_min=328.656 dof=254 caldac[1] gain=-7.5226(22)e-4 V/bit S_min=422.159 dof=254 caldac[3] gain=1.84(23)e-6 V/bit S_min=326.382 dof=254 caldac[4] gain=-1.2601(22)e-4 V/bit S_min=320.864 dof=254 caldac[5] gain=-8.1945(22)e-4 V/bit S_min=367.287 dof=254 ao 0, reference voltage, low gain offset -1.18(29)e-3, target -0.001221 caldac[0] gain=-9.47(22)e-6 V/bit S_min=308.124 dof=254 caldac[1] gain=-7.5218(22)e-4 V/bit S_min=384.799 dof=254 caldac[3] gain=2.05(22)e-6 V/bit S_min=343.072 dof=254 caldac[4] gain=-1.5263(22)e-4 V/bit S_min=381.051 dof=254 caldac[5] gain=-8.1969(22)e-4 V/bit S_min=404.001 dof=254 caldac[6] gain=-9.961(23)e-5 V/bit S_min=384.348 dof=254 ao 1, zero offset, low gain offset 3.17(27)e-3, target 0.002442 caldac[0] gain=-9.68(23)e-6 V/bit S_min=242.019 dof=254 caldac[1] gain=-7.5217(23)e-4 V/bit S_min=382.637 dof=254 caldac[3] gain=2.03(23)e-6 V/bit S_min=316.857 dof=254 caldac[7] gain=-1.2575(23)e-4 V/bit S_min=346.959 dof=254 caldac[8] gain=-8.2102(22)e-4 V/bit S_min=505.935 dof=254 ao 1, reference voltage, low gain offset -1.49(28)e-3, target -0.001221 caldac[0] gain=-9.03(22)e-6 V/bit S_min=307.298 dof=254 caldac[1] gain=-7.5231(23)e-4 V/bit S_min=423.217 dof=254 caldac[3] gain=2.63(22)e-6 V/bit S_min=348.769 dof=254 caldac[7] gain=-1.5238(23)e-4 V/bit S_min=375 dof=254 caldac[8] gain=-8.2036(22)e-4 V/bit S_min=462.047 dof=254 caldac[9] gain=-1.0066(22)e-4 V/bit S_min=326.815 dof=254 comedi_calibrate-5/comedi_calibrate/results/pci-mio-16e-40000644000000000000000000004374512416542124020354 00000000000000eeprom reference lsb=183 msb=255 resulting reference voltage: 4.99993 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.8 2008/01/11 13:29:19 abbotti Exp Driver name: ni_pcimio Device name: pci-mio-16e-4 Id: ni.c,v 1.7 2008/06/15 15:15:40 fmhess Exp Comedi version: 0.7.76 ai, bipolar zero offset, low gain reading -0.040894(94), target 0 caldac[4] gain=-1.0152(13)e-3 V/bit S_min=17.6487 dof=14 caldac[8] gain=-1.31(13)e-5 V/bit S_min=0.574241 dof=14 ai, bipolar zero offset, high gain reading -1.1373(58)e-4, target 0 caldac[4] gain=-5.0789(82)e-6 V/bit S_min=9.10872 dof=14 caldac[8] gain=-1.39995(81)e-5 V/bit S_min=24.6671 dof=14 ai, bipolar voltage reference, low gain reading 4.954465(97), target 4.99993 caldac[2] gain=-5.945(13)e-4 V/bit S_min=6.16919 dof=14 caldac[4] gain=-1.0022(13)e-3 V/bit S_min=19.7122 dof=14 caldac[8] gain=-1.48(13)e-5 V/bit S_min=0.882375 dof=14 ai, unipolar zero offset, low gain reading 0.0( 0)e-2147483648, target 0.002442 caldac[0] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[1] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[2] gain=4.4133(53)e-4 V/bit S_min=285877 dof=14 caldac[3] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[4] gain=-4.3710(58)e-4 V/bit S_min=185011 dof=14 caldac[5] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[6] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[7] gain=-1.0157(44)e-4 V/bit S_min=33417.6 dof=14 caldac[8] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[9] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[10] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[11] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[12] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[13] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[14] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 caldac[15] gain=0.0( 0)e-2147483648 V/bit S_min=nan dof=14 ai, unipolar zero offset, high gain reading 4.91(33)e-6, target 1.221e-05 caldac[2] gain=2.7218(38)e-6 V/bit S_min=150022 dof=14 caldac[4] gain=-2.7154(43)e-6 V/bit S_min=84334.1 dof=14 caldac[7] gain=-1.0194(43)e-6 V/bit S_min=12011.5 dof=14 caldac[8] gain=-7.5632(42)e-6 V/bit S_min=707805 dof=14 ai, unipolar voltage reference, low gain reading 4.975556(94), target 4.99993 caldac[2] gain=6.014(13)e-4 V/bit S_min=49.9969 dof=14 caldac[4] gain=-1.0009(13)e-3 V/bit S_min=17.7527 dof=14 caldac[7] gain=-3.828(13)e-4 V/bit S_min=3.06885 dof=14 caldac[8] gain=-1.41(13)e-5 V/bit S_min=0.9272 dof=14 ao 0, zero offset, low gain reading -0.039215(97), target 0.002442 caldac[2] gain=5.6(13)e-6 V/bit S_min=0.669279 dof=14 caldac[4] gain=-1.0155(13)e-3 V/bit S_min=16.5024 dof=14 caldac[6] gain=-7.754(13)e-4 V/bit S_min=17.9896 dof=14 caldac[8] gain=-1.37(13)e-5 V/bit S_min=0.644588 dof=14 caldac[10] gain=-1.144(13)e-4 V/bit S_min=1.42453 dof=14 ao 0, reference voltage, low gain reading 7.952009(96), target 8.00244 caldac[2] gain=-9.590(13)e-4 V/bit S_min=28.5498 dof=14 caldac[4] gain=-1.0100(13)e-3 V/bit S_min=3.65187 dof=14 caldac[6] gain=-7.731(13)e-4 V/bit S_min=2.39998 dof=14 caldac[8] gain=-1.34(13)e-5 V/bit S_min=1.23801 dof=14 caldac[10] gain=-1.754(13)e-4 V/bit S_min=1.59836 dof=14 caldac[11] gain=-2.073(13)e-4 V/bit S_min=1.593 dof=14 ao 0, linearity (mid), low gain reading 3.957914(95), target 4.00244 caldac[2] gain=-4.780(13)e-4 V/bit S_min=7.19619 dof=14 caldac[4] gain=-1.0106(13)e-3 V/bit S_min=1.38028 dof=14 caldac[6] gain=-7.723(13)e-4 V/bit S_min=1.9208 dof=14 caldac[8] gain=-1.40(13)e-5 V/bit S_min=1.61271 dof=14 caldac[10] gain=-1.609(13)e-4 V/bit S_min=2.23788 dof=14 caldac[11] gain=-1.040(13)e-4 V/bit S_min=1.15864 dof=14 ao 1, zero offset, low gain reading -0.038414(97), target 0.002442 caldac[1] gain=-1.150(13)e-4 V/bit S_min=2.43099 dof=14 caldac[4] gain=-1.0149(13)e-3 V/bit S_min=13.587 dof=14 caldac[8] gain=-1.42(13)e-5 V/bit S_min=1.02164 dof=14 caldac[9] gain=-7.749(13)e-4 V/bit S_min=14.5798 dof=14 ao 1, reference voltage, low gain reading 7.955414(93), target 8.00244 caldac[1] gain=-1.758(13)e-4 V/bit S_min=1.94581 dof=14 caldac[2] gain=-9.585(13)e-4 V/bit S_min=33.0733 dof=14 caldac[4] gain=-1.0101(13)e-3 V/bit S_min=3.0675 dof=14 caldac[5] gain=-2.070(13)e-4 V/bit S_min=3.26994 dof=14 caldac[8] gain=-1.41(13)e-5 V/bit S_min=0.888138 dof=14 caldac[9] gain=-7.716(13)e-4 V/bit S_min=2.91712 dof=14 ao 1, linearity (mid), low gain reading 3.959702(98), target 4.00244 caldac[1] gain=-1.614(13)e-4 V/bit S_min=1.01601 dof=14 caldac[2] gain=-4.777(13)e-4 V/bit S_min=5.33355 dof=14 caldac[4] gain=-1.0102(13)e-3 V/bit S_min=1.76484 dof=14 caldac[5] gain=-1.042(13)e-4 V/bit S_min=1.93421 dof=14 caldac[8] gain=-1.35(13)e-5 V/bit S_min=1.91935 dof=14 caldac[9] gain=-7.718(13)e-4 V/bit S_min=1.79553 dof=14 ao 0, unipolar zero offset, low gain reading -0.038948(95), target 0 caldac[4] gain=-1.0158(13)e-3 V/bit S_min=14.5306 dof=14 caldac[6] gain=-7.752(13)e-4 V/bit S_min=19.0844 dof=14 caldac[8] gain=-1.36(13)e-5 V/bit S_min=0.897032 dof=14 caldac[10] gain=-3.79(13)e-5 V/bit S_min=0.558685 dof=14 ao 0, unipolar high, low gain reading 8.952510(95), target 9.00122 caldac[2] gain=-1.0797(13)e-3 V/bit S_min=30.856 dof=14 caldac[4] gain=-1.0102(13)e-3 V/bit S_min=1.12994 dof=14 caldac[6] gain=-7.726(13)e-4 V/bit S_min=3.40901 dof=14 caldac[8] gain=-1.38(13)e-5 V/bit S_min=1.42288 dof=14 caldac[10] gain=-8.78(13)e-5 V/bit S_min=1.66566 dof=14 caldac[11] gain=-2.345(13)e-4 V/bit S_min=2.49548 dof=14 ao 0, unipolar linearity (low), low gain reading 0.962965(89), target 1.00122 caldac[2] gain=-1.145(13)e-4 V/bit S_min=1.67743 dof=14 caldac[4] gain=-1.0080(13)e-3 V/bit S_min=5.02702 dof=14 caldac[6] gain=-7.693(13)e-4 V/bit S_min=3.15971 dof=14 caldac[8] gain=-1.36(12)e-5 V/bit S_min=1.13418 dof=14 caldac[10] gain=-5.53(13)e-5 V/bit S_min=1.06132 dof=14 caldac[11] gain=-2.53(13)e-5 V/bit S_min=1.21048 dof=14 ao 0, unipolar linearity (mid), low gain reading 4.959182(98), target 5.00122 caldac[2] gain=-5.944(13)e-4 V/bit S_min=9.79464 dof=14 caldac[4] gain=-1.0026(13)e-3 V/bit S_min=24.3422 dof=14 caldac[6] gain=-7.657(13)e-4 V/bit S_min=21.8115 dof=14 caldac[8] gain=-1.30(13)e-5 V/bit S_min=1.66766 dof=14 caldac[10] gain=-5.64(13)e-5 V/bit S_min=0.97342 dof=14 caldac[11] gain=-1.296(13)e-4 V/bit S_min=1.77131 dof=14 ao 1, unipolar zero offset, low gain reading -0.039272(95), target 0 caldac[1] gain=-3.75(13)e-5 V/bit S_min=0.641757 dof=14 caldac[4] gain=-1.0156(13)e-3 V/bit S_min=12.6807 dof=14 caldac[8] gain=-1.35(13)e-5 V/bit S_min=0.850689 dof=14 caldac[9] gain=-7.746(13)e-4 V/bit S_min=17.0073 dof=14 ao 1, unipolar high, low gain reading 8.951885(97), target 9.00122 caldac[1] gain=-8.78(13)e-5 V/bit S_min=2.08832 dof=14 caldac[2] gain=-1.0794(13)e-3 V/bit S_min=36.2477 dof=14 caldac[4] gain=-1.0115(13)e-3 V/bit S_min=3.78387 dof=14 caldac[5] gain=-2.335(13)e-4 V/bit S_min=3.23454 dof=14 caldac[8] gain=-1.35(13)e-5 V/bit S_min=1.34065 dof=14 caldac[9] gain=-7.715(13)e-4 V/bit S_min=2.99986 dof=14 ao 1, unipolar linearity (low), low gain reading 0.962435(89), target 1.00122 caldac[1] gain=-5.53(13)e-5 V/bit S_min=0.649933 dof=14 caldac[2] gain=-1.139(13)e-4 V/bit S_min=1.73297 dof=14 caldac[4] gain=-1.0079(13)e-3 V/bit S_min=1.76904 dof=14 caldac[5] gain=-2.47(13)e-5 V/bit S_min=1.23905 dof=14 caldac[8] gain=-1.37(12)e-5 V/bit S_min=0.62875 dof=14 caldac[9] gain=-7.685(13)e-4 V/bit S_min=2.40603 dof=14 ao 1, unipolar linearity (mid), low gain reading 4.958214(94), target 5.00122 caldac[1] gain=-5.69(13)e-5 V/bit S_min=1.16193 dof=14 caldac[2] gain=-5.944(13)e-4 V/bit S_min=7.58221 dof=14 caldac[4] gain=-1.0023(13)e-3 V/bit S_min=25.1852 dof=14 caldac[5] gain=-1.291(13)e-4 V/bit S_min=1.42122 dof=14 caldac[8] gain=-1.33(13)e-5 V/bit S_min=0.479612 dof=14 caldac[9] gain=-7.648(13)e-4 V/bit S_min=21.7911 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 119 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 86 binary: ai, bipolar zero offset, high gain caldac[8] set to 133 binary: ai, unipolar zero offset, high gain caldac[7] set to 161 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[10] set to 198 binary: ao 0, zero offset, low gain caldac[6] set to 115 binary: ao 0, reference voltage, low gain caldac[11] set to 105 linearity binary: ao 0, unipolar linearity (low), low gain, ao 0, unipolar linearity (mid), low gain, ao 0, unipolar high, low gain caldac[10] set to 64 binary: ao 0, unipolar zero offset, low gain caldac[6] set to 133 binary: ao 0, unipolar high, low gain caldac[11] set to 138 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[1] set to 205 binary: ao 1, zero offset, low gain caldac[9] set to 115 binary: ao 1, reference voltage, low gain caldac[5] set to 117 linearity binary: ao 1, unipolar linearity (low), low gain, ao 1, unipolar linearity (mid), low gain, ao 1, unipolar high, low gain caldac[1] set to 81 binary: ao 1, unipolar zero offset, low gain caldac[9] set to 131 binary: ao 1, unipolar high, low gain caldac[5] set to 135 ai, bipolar zero offset, low gain Applied calibration for subdev 0, channel 0, range 0, aref 3 reading 5.7(95)e-5, target 0 caldac[4] gain=-1.0158(13)e-3 V/bit S_min=14.2048 dof=14 caldac[8] gain=-1.36(13)e-5 V/bit S_min=0.290384 dof=14 ai, bipolar zero offset, high gain Applied calibration for subdev 0, channel 0, range 7, aref 3 reading 9.44(62)e-6, target 0 caldac[4] gain=-5.0795(82)e-6 V/bit S_min=4.8793 dof=14 caldac[8] gain=-1.40128(80)e-5 V/bit S_min=8.99988 dof=14 ai, bipolar voltage reference, low gain Applied calibration for subdev 0, channel 5, range 0, aref 3 reading 5.000143(98), target 4.99993 caldac[2] gain=-5.928(13)e-4 V/bit S_min=12.7774 dof=14 caldac[4] gain=-1.0038(13)e-3 V/bit S_min=26.2679 dof=14 caldac[8] gain=-1.27(13)e-5 V/bit S_min=1.11875 dof=14 ai, unipolar zero offset, low gain Applied calibration for subdev 0, channel 0, range 8, aref 3 reading 9.40(61)e-4, target 0.002442 caldac[2] gain=6.0449(65)e-4 V/bit S_min=208485 dof=14 caldac[4] gain=-3.0988(50)e-4 V/bit S_min=206941 dof=14 caldac[7] gain=-2.8273(88)e-4 V/bit S_min=8549 dof=14 caldac[8] gain=-7.49(85)e-6 V/bit S_min=2.79663 dof=14 ai, unipolar zero offset, high gain Applied calibration for subdev 0, channel 0, range 15, aref 3 reading 1.231(49)e-5, target 1.221e-05 caldac[2] gain=3.0828(41)e-6 V/bit S_min=128460 dof=14 caldac[4] gain=-1.6057(30)e-6 V/bit S_min=142971 dof=14 caldac[7] gain=-1.4599(56)e-6 V/bit S_min=4691.74 dof=14 caldac[8] gain=-8.1225(45)e-6 V/bit S_min=575473 dof=14 ai, unipolar voltage reference, low gain Applied calibration for subdev 0, channel 5, range 8, aref 3 reading 4.998803(97), target 4.99993 caldac[2] gain=5.933(13)e-4 V/bit S_min=47.148 dof=14 caldac[4] gain=-1.0033(13)e-3 V/bit S_min=24.0413 dof=14 caldac[7] gain=-3.741(13)e-4 V/bit S_min=16.8791 dof=14 caldac[8] gain=-1.36(13)e-5 V/bit S_min=0.922424 dof=14 ao 0, zero offset, low gain Applied calibration for subdev 1, channel 0, range 0, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.995(98)e-3, target 0.002442 caldac[4] gain=-1.0159(13)e-3 V/bit S_min=15.5518 dof=14 caldac[6] gain=-7.778(13)e-4 V/bit S_min=14.5575 dof=14 caldac[8] gain=-1.45(13)e-5 V/bit S_min=0.688454 dof=14 caldac[10] gain=-1.133(13)e-4 V/bit S_min=1.27048 dof=14 ao 0, reference voltage, low gain Applied calibration for subdev 1, channel 0, range 0, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.002490(95), target 8.00244 caldac[2] gain=-9.641(13)e-4 V/bit S_min=32.1323 dof=14 caldac[4] gain=-1.0117(13)e-3 V/bit S_min=2.1086 dof=14 caldac[6] gain=-7.731(13)e-4 V/bit S_min=1.88842 dof=14 caldac[8] gain=-1.42(13)e-5 V/bit S_min=1.124 dof=14 caldac[10] gain=-1.768(13)e-4 V/bit S_min=2.66276 dof=14 caldac[11] gain=-2.083(13)e-4 V/bit S_min=2.50054 dof=14 ao 0, linearity (mid), low gain Applied calibration for subdev 1, channel 0, range 0, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.003043(94), target 4.00244 caldac[2] gain=-4.810(13)e-4 V/bit S_min=7.60663 dof=14 caldac[4] gain=-1.0121(13)e-3 V/bit S_min=1.58609 dof=14 caldac[6] gain=-7.720(13)e-4 V/bit S_min=4.79452 dof=14 caldac[8] gain=-1.45(13)e-5 V/bit S_min=1.05734 dof=14 caldac[10] gain=-1.611(13)e-4 V/bit S_min=1.41202 dof=14 caldac[11] gain=-1.039(13)e-4 V/bit S_min=0.580306 dof=14 ao 1, zero offset, low gain Applied calibration for subdev 1, channel 1, range 0, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 2.800(96)e-3, target 0.002442 caldac[1] gain=-1.174(13)e-4 V/bit S_min=4.14089 dof=14 caldac[4] gain=-1.0163(13)e-3 V/bit S_min=16.1451 dof=14 caldac[8] gain=-1.43(13)e-5 V/bit S_min=0.957457 dof=14 caldac[9] gain=-7.780(13)e-4 V/bit S_min=14.5705 dof=14 ao 1, reference voltage, low gain Applied calibration for subdev 1, channel 1, range 0, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.002122(94), target 8.00244 caldac[1] gain=-1.770(13)e-4 V/bit S_min=2.30511 dof=14 caldac[2] gain=-9.662(13)e-4 V/bit S_min=24.9353 dof=14 caldac[4] gain=-1.0109(13)e-3 V/bit S_min=2.35308 dof=14 caldac[5] gain=-2.067(13)e-4 V/bit S_min=1.5823 dof=14 caldac[8] gain=-1.40(13)e-5 V/bit S_min=2.30619 dof=14 caldac[9] gain=-7.728(13)e-4 V/bit S_min=2.82035 dof=14 ao 1, linearity (mid), low gain Applied calibration for subdev 1, channel 1, range 0, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.002747(92), target 4.00244 caldac[1] gain=-1.608(13)e-4 V/bit S_min=1.31442 dof=14 caldac[2] gain=-4.834(13)e-4 V/bit S_min=8.73585 dof=14 caldac[4] gain=-1.0106(13)e-3 V/bit S_min=1.25249 dof=14 caldac[5] gain=-1.032(13)e-4 V/bit S_min=1.86641 dof=14 caldac[8] gain=-1.37(13)e-5 V/bit S_min=0.972851 dof=14 caldac[9] gain=-7.706(13)e-4 V/bit S_min=3.41984 dof=14 ao 0, unipolar zero offset, low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.24(97)e-4, target 0 caldac[4] gain=-1.0163(13)e-3 V/bit S_min=14.649 dof=14 caldac[6] gain=-7.782(13)e-4 V/bit S_min=13.8321 dof=14 caldac[8] gain=-1.31(13)e-5 V/bit S_min=0.811386 dof=14 caldac[10] gain=-3.61(13)e-5 V/bit S_min=0.479647 dof=14 ao 0, unipolar high, low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 9.001087(93), target 9.00122 caldac[2] gain=-1.0837(13)e-3 V/bit S_min=27.4389 dof=14 caldac[4] gain=-1.0108(13)e-3 V/bit S_min=3.71161 dof=14 caldac[6] gain=-7.715(13)e-4 V/bit S_min=2.6497 dof=14 caldac[8] gain=-1.34(13)e-5 V/bit S_min=2.09994 dof=14 caldac[10] gain=-8.87(13)e-5 V/bit S_min=0.87513 dof=14 caldac[11] gain=-2.336(13)e-4 V/bit S_min=1.86087 dof=14 ao 0, unipolar linearity (low), low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.003634(93), target 1.00122 caldac[2] gain=-1.207(13)e-4 V/bit S_min=0.628773 dof=14 caldac[4] gain=-1.0084(13)e-3 V/bit S_min=3.669 dof=14 caldac[6] gain=-7.700(13)e-4 V/bit S_min=2.9748 dof=14 caldac[8] gain=-1.41(13)e-5 V/bit S_min=1.26414 dof=14 caldac[10] gain=-5.75(13)e-5 V/bit S_min=0.696937 dof=14 caldac[11] gain=-2.68(13)e-5 V/bit S_min=0.630503 dof=14 ao 0, unipolar linearity (mid), low gain Applied calibration for subdev 1, channel 0, range 1, aref 0 Applied calibration for subdev 0, channel 2, range 0, aref 3 reading 5.002504(99), target 5.00122 caldac[2] gain=-5.932(13)e-4 V/bit S_min=14.9688 dof=14 caldac[4] gain=-1.0040(13)e-3 V/bit S_min=26.1644 dof=14 caldac[6] gain=-7.621(13)e-4 V/bit S_min=17.8851 dof=14 caldac[8] gain=-1.43(13)e-5 V/bit S_min=1.20833 dof=14 caldac[10] gain=-5.55(13)e-5 V/bit S_min=3.08768 dof=14 caldac[11] gain=-1.293(13)e-4 V/bit S_min=2.73993 dof=14 ao 1, unipolar zero offset, low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.24(100)e-4, target 0 caldac[1] gain=-3.65(13)e-5 V/bit S_min=0.881557 dof=14 caldac[4] gain=-1.0163(13)e-3 V/bit S_min=16.2466 dof=14 caldac[8] gain=-1.32(13)e-5 V/bit S_min=1.36812 dof=14 caldac[9] gain=-7.775(13)e-4 V/bit S_min=12.6282 dof=14 ao 1, unipolar high, low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 9.001154(93), target 9.00122 caldac[1] gain=-8.87(13)e-5 V/bit S_min=1.5571 dof=14 caldac[2] gain=-1.0833(13)e-3 V/bit S_min=25.7785 dof=14 caldac[4] gain=-1.0118(13)e-3 V/bit S_min=0.844644 dof=14 caldac[5] gain=-2.326(13)e-4 V/bit S_min=2.11074 dof=14 caldac[8] gain=-1.40(13)e-5 V/bit S_min=2.84209 dof=14 caldac[9] gain=-7.712(13)e-4 V/bit S_min=2.45812 dof=14 ao 1, unipolar linearity (low), low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 1.003849(96), target 1.00122 caldac[1] gain=-5.79(13)e-5 V/bit S_min=1.65311 dof=14 caldac[2] gain=-1.208(13)e-4 V/bit S_min=1.15024 dof=14 caldac[4] gain=-1.0084(13)e-3 V/bit S_min=2.16553 dof=14 caldac[5] gain=-2.64(13)e-5 V/bit S_min=0.754988 dof=14 caldac[8] gain=-1.42(13)e-5 V/bit S_min=0.840359 dof=14 caldac[9] gain=-7.694(13)e-4 V/bit S_min=2.13424 dof=14 ao 1, unipolar linearity (mid), low gain Applied calibration for subdev 1, channel 1, range 1, aref 0 Applied calibration for subdev 0, channel 3, range 0, aref 3 reading 5.00262(10), target 5.00122 caldac[1] gain=-5.55(13)e-5 V/bit S_min=4.00827 dof=14 caldac[2] gain=-5.929(13)e-4 V/bit S_min=13.8776 dof=14 caldac[4] gain=-1.0039(13)e-3 V/bit S_min=17.908 dof=14 caldac[5] gain=-1.285(13)e-4 V/bit S_min=3.45195 dof=14 caldac[8] gain=-1.39(13)e-5 V/bit S_min=1.21207 dof=14 caldac[9] gain=-7.620(13)e-4 V/bit S_min=20.9053 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-6025e0000644000000000000000000002004212416542124017560 00000000000000Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_pcimio Device name: pci-6025e Id: ni.c,v 1.130 2004/09/09 21:43:16 fmhess Exp Comedi version: 0.7.70 ai, bipolar zero offset, low gain reading 6.100(85)e-3, target 0 caldac[0] gain=-1.222(11)e-4 V/bit S_min=13.7064 dof=14 caldac[4] gain=-7.842(11)e-4 V/bit S_min=10.8646 dof=14 ai, bipolar zero offset, high gain reading -6.2951(65)e-4, target 0 caldac[0] gain=-1.183664(87)e-4 V/bit S_min=169.397 dof=14 caldac[2] gain=9.43(88)e-8 V/bit S_min=2.25552 dof=14 caldac[4] gain=-3.9411(87)e-6 V/bit S_min=4.40053 dof=14 caldac[8] gain=-2.0652(87)e-6 V/bit S_min=4.5333 dof=14 ai, bipolar voltage reference, low gain reading 5.005275(90), target 5.00001 caldac[0] gain=-1.209(11)e-4 V/bit S_min=7.50201 dof=14 caldac[2] gain=-6.245(11)e-4 V/bit S_min=25.2853 dof=14 caldac[4] gain=-7.769(11)e-4 V/bit S_min=19.5911 dof=14 ao 0, zero offset, low gain reading 5.781(88)e-3, target 0.002442 caldac[0] gain=-1.219(11)e-4 V/bit S_min=10.9218 dof=14 caldac[4] gain=-7.843(11)e-4 V/bit S_min=12.7953 dof=14 caldac[6] gain=-7.833(11)e-4 V/bit S_min=9.99942 dof=14 caldac[10] gain=-1.204(11)e-4 V/bit S_min=9.43643 dof=14 ao 0, reference voltage, low gain reading 8.006348(84), target 8.00244 caldac[0] gain=-1.186(12)e-4 V/bit S_min=1.16378 dof=14 caldac[2] gain=-1.0134(12)e-3 V/bit S_min=60.3274 dof=14 caldac[4] gain=-7.861(12)e-4 V/bit S_min=8.53 dof=14 caldac[6] gain=-7.860(11)e-4 V/bit S_min=4.53447 dof=14 caldac[10] gain=-1.789(12)e-4 V/bit S_min=2.42097 dof=14 caldac[11] gain=-2.618(12)e-4 V/bit S_min=2.46595 dof=14 ao 0, linearity (mid), low gain reading 4.006229(86), target 4.00244 caldac[0] gain=-1.183(11)e-4 V/bit S_min=0.77029 dof=14 caldac[2] gain=-5.039(11)e-4 V/bit S_min=23.879 dof=14 caldac[4] gain=-7.811(12)e-4 V/bit S_min=13.2857 dof=14 caldac[6] gain=-7.801(12)e-4 V/bit S_min=10.8201 dof=14 caldac[10] gain=-1.619(11)e-4 V/bit S_min=1.2243 dof=14 caldac[11] gain=-1.297(11)e-4 V/bit S_min=0.737361 dof=14 ao 1, zero offset, low gain reading 0.014728(84), target 0.002442 caldac[0] gain=-1.163(11)e-4 V/bit S_min=9.5782 dof=14 caldac[1] gain=-1.139(11)e-4 V/bit S_min=6.35378 dof=14 caldac[4] gain=-7.844(12)e-4 V/bit S_min=5.5403 dof=14 caldac[9] gain=-7.790(12)e-4 V/bit S_min=6.92175 dof=14 ao 1, reference voltage, low gain reading 8.015682(84), target 8.00244 caldac[0] gain=-1.178(11)e-4 V/bit S_min=0.871488 dof=14 caldac[1] gain=-1.768(11)e-4 V/bit S_min=0.724757 dof=14 caldac[2] gain=-1.0144(11)e-3 V/bit S_min=56.3612 dof=14 caldac[4] gain=-7.862(11)e-4 V/bit S_min=7.99793 dof=14 caldac[5] gain=-2.608(11)e-4 V/bit S_min=5.52675 dof=14 caldac[9] gain=-7.816(11)e-4 V/bit S_min=5.6916 dof=14 ao 1, linearity (mid), low gain reading 4.015778(85), target 4.00244 caldac[0] gain=-1.188(11)e-4 V/bit S_min=0.960262 dof=14 caldac[1] gain=-1.616(11)e-4 V/bit S_min=1.39816 dof=14 caldac[2] gain=-5.058(12)e-4 V/bit S_min=21.3177 dof=14 caldac[4] gain=-7.803(12)e-4 V/bit S_min=8.69519 dof=14 caldac[5] gain=-1.301(12)e-4 V/bit S_min=0.949841 dof=14 caldac[9] gain=-7.753(11)e-4 V/bit S_min=6.06853 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 125 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 135 binary: ai, bipolar zero offset, high gain caldac[0] set to 121 binary: ai, bipolar zero offset, high gain caldac[8] set to 151 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[10] set to 185 binary: ao 0, zero offset, low gain caldac[6] set to 115 binary: ao 0, reference voltage, low gain caldac[11] set to 124 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[1] set to 199 binary: ao 1, zero offset, low gain caldac[9] set to 124 binary: ao 1, reference voltage, low gain caldac[5] set to 123 writing calibration to /usr/local/var/lib/comedi/calibrations/ni_pcimio_pci-6025e_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading -3.10(87)e-4, target 0 caldac[0] gain=-1.236(11)e-4 V/bit S_min=8.08647 dof=14 caldac[4] gain=-7.843(11)e-4 V/bit S_min=11.7293 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 3, aref 3 reading 2.6(63)e-7, target 0 caldac[0] gain=-1.183781(86)e-4 V/bit S_min=170.197 dof=14 caldac[4] gain=-3.9226(86)e-6 V/bit S_min=7.19185 dof=14 caldac[8] gain=-2.0539(86)e-6 V/bit S_min=3.92567 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 5.000324(84), target 5.00001 caldac[0] gain=-1.209(11)e-4 V/bit S_min=6.92799 dof=14 caldac[2] gain=-6.246(11)e-4 V/bit S_min=21.861 dof=14 caldac[4] gain=-7.773(11)e-4 V/bit S_min=26.2185 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.571(93)e-3, target 0.002442 caldac[0] gain=-1.238(11)e-4 V/bit S_min=6.44367 dof=14 caldac[4] gain=-7.848(11)e-4 V/bit S_min=11.1844 dof=14 caldac[6] gain=-7.842(11)e-4 V/bit S_min=9.71458 dof=14 caldac[10] gain=-1.179(11)e-4 V/bit S_min=14.7182 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.002494(85), target 8.00244 caldac[0] gain=-1.196(12)e-4 V/bit S_min=3.69991 dof=14 caldac[2] gain=-1.0124(11)e-3 V/bit S_min=60.4908 dof=14 caldac[4] gain=-7.867(11)e-4 V/bit S_min=9.52835 dof=14 caldac[6] gain=-7.862(12)e-4 V/bit S_min=3.05028 dof=14 caldac[10] gain=-1.779(12)e-4 V/bit S_min=1.03299 dof=14 caldac[11] gain=-2.624(12)e-4 V/bit S_min=4.57633 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.002037(83), target 4.00244 caldac[0] gain=-1.179(12)e-4 V/bit S_min=0.940757 dof=14 caldac[2] gain=-5.033(11)e-4 V/bit S_min=19.7736 dof=14 caldac[4] gain=-7.814(11)e-4 V/bit S_min=13.1506 dof=14 caldac[6] gain=-7.829(12)e-4 V/bit S_min=12.5205 dof=14 caldac[10] gain=-1.624(11)e-4 V/bit S_min=1.39213 dof=14 caldac[11] gain=-1.299(12)e-4 V/bit S_min=1.24277 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 2.962(93)e-3, target 0.002442 caldac[0] gain=-1.233(12)e-4 V/bit S_min=6.38196 dof=14 caldac[1] gain=-1.162(11)e-4 V/bit S_min=14.2918 dof=14 caldac[4] gain=-7.845(12)e-4 V/bit S_min=9.85641 dof=14 caldac[9] gain=-7.799(12)e-4 V/bit S_min=3.46864 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.002657(85), target 8.00244 caldac[0] gain=-1.191(12)e-4 V/bit S_min=2.01513 dof=14 caldac[1] gain=-1.764(11)e-4 V/bit S_min=0.872471 dof=14 caldac[2] gain=-1.0128(12)e-3 V/bit S_min=62.0473 dof=14 caldac[4] gain=-7.865(11)e-4 V/bit S_min=9.26796 dof=14 caldac[5] gain=-2.634(12)e-4 V/bit S_min=5.67879 dof=14 caldac[9] gain=-7.821(11)e-4 V/bit S_min=3.10116 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.002595(82), target 4.00244 caldac[0] gain=-1.185(12)e-4 V/bit S_min=1.03391 dof=14 caldac[1] gain=-1.621(12)e-4 V/bit S_min=0.921487 dof=14 caldac[2] gain=-5.035(12)e-4 V/bit S_min=19.6995 dof=14 caldac[4] gain=-7.814(12)e-4 V/bit S_min=14.593 dof=14 caldac[5] gain=-1.299(11)e-4 V/bit S_min=0.756319 dof=14 caldac[9] gain=-7.767(11)e-4 V/bit S_min=6.69475 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/pci-6036e0000644000000000000000000001160312416542124017565 00000000000000WARNING: unknown eeprom address for reference voltage correction. This might be fixable if you send us an eeprom dump (see the demo/eeprom_dump program). Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at http://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Id: comedi_calibrate.c,v 1.87 2003/07/01 21:01:31 fmhess Exp Driver name: ni_pcimio Device name: pci-6036e Id: ni.c,v 1.85 2003/07/01 21:14:15 fmhess Exp Comedi version: 0.7.66 ai, bipolar zero offset, low gain reading -0.0155833(77), target 0 caldac[0] gain=-1.187(11)e-5 V/bit S_min=2.14599 dof=14 caldac[2] gain=-1.49(11)e-6 V/bit S_min=14.6051 dof=14 caldac[4] gain=-6.1284(11)e-4 V/bit S_min=130.523 dof=14 ai, bipolar zero offset, high gain reading -2.5866(28)e-4, target 0 caldac[0] gain=-1.18032(38)e-5 V/bit S_min=14.2385 dof=14 caldac[2] gain=-1.75(37)e-8 V/bit S_min=8.4881 dof=14 caldac[4] gain=-3.0701(37)e-6 V/bit S_min=5.53302 dof=14 caldac[8] gain=-1.969(37)e-7 V/bit S_min=4.66928 dof=14 ai, bipolar voltage reference, low gain reading 4.9782207(81), target 5 caldac[0] gain=-1.091(11)e-5 V/bit S_min=66.7788 dof=14 caldac[2] gain=3.5380(11)e-4 V/bit S_min=249.534 dof=14 caldac[4] gain=-6.1285(11)e-4 V/bit S_min=166.483 dof=14 ao 0, zero offset, low gain reading -0.0158572(76), target 0.00015259 caldac[0] gain=-1.202(11)e-5 V/bit S_min=51.2631 dof=14 caldac[2] gain=-1.35(11)e-6 V/bit S_min=24.7176 dof=14 caldac[4] gain=-6.1317(11)e-4 V/bit S_min=99.9489 dof=14 caldac[6] gain=-4.258(11)e-5 V/bit S_min=55.6732 dof=14 caldac[10] gain=6.028(11)e-5 V/bit S_min=68.288 dof=14 ao 0, reference voltage, low gain reading 4.9794382(78), target 4.99992 caldac[0] gain=-1.203(11)e-5 V/bit S_min=53.5029 dof=14 caldac[2] gain=3.5370(11)e-4 V/bit S_min=260.301 dof=14 caldac[4] gain=-6.1302(11)e-4 V/bit S_min=145.567 dof=14 caldac[6] gain=-4.384(11)e-5 V/bit S_min=1.15896 dof=14 caldac[7] gain=-1.9531(11)e-4 V/bit S_min=29.9515 dof=14 caldac[10] gain=7.146(11)e-5 V/bit S_min=100.067 dof=14 caldac[11] gain=-7.67(11)e-6 V/bit S_min=0.861428 dof=14 ao 0, linearity (negative), low gain reading -5.0114395(80), target -4.99992 caldac[0] gain=-1.192(11)e-5 V/bit S_min=47.6917 dof=14 caldac[2] gain=-3.5650(11)e-4 V/bit S_min=481.591 dof=14 caldac[4] gain=-6.1301(11)e-4 V/bit S_min=128.665 dof=14 caldac[6] gain=-4.170(11)e-5 V/bit S_min=30.3458 dof=14 caldac[7] gain=1.9508(11)e-4 V/bit S_min=51.6126 dof=14 caldac[10] gain=5.078(11)e-5 V/bit S_min=58.5712 dof=14 caldac[11] gain=7.75(11)e-6 V/bit S_min=70.2642 dof=14 ao 1, zero offset, low gain reading -0.0157752(80), target 0.00015259 caldac[0] gain=-1.186(11)e-5 V/bit S_min=1.71163 dof=14 caldac[1] gain=5.984(11)e-5 V/bit S_min=43.908 dof=14 caldac[2] gain=-1.45(11)e-6 V/bit S_min=68.9319 dof=14 caldac[4] gain=-6.1309(11)e-4 V/bit S_min=160.922 dof=14 caldac[9] gain=-4.180(11)e-5 V/bit S_min=76.7112 dof=14 ao 1, reference voltage, low gain reading 4.9792591(77), target 4.99992 caldac[0] gain=-1.208(11)e-5 V/bit S_min=64.0151 dof=14 caldac[1] gain=7.113(11)e-5 V/bit S_min=4.15399 dof=14 caldac[2] gain=3.5379(11)e-4 V/bit S_min=182.481 dof=14 caldac[3] gain=-1.9491(11)e-4 V/bit S_min=51.3479 dof=14 caldac[4] gain=-6.1315(11)e-4 V/bit S_min=127.362 dof=14 caldac[5] gain=-7.66(11)e-6 V/bit S_min=23.1643 dof=14 caldac[9] gain=-4.290(11)e-5 V/bit S_min=83.248 dof=14 ao 1, linearity (negative), low gain reading -5.0111164(77), target -4.99992 caldac[0] gain=-1.200(11)e-5 V/bit S_min=74.5937 dof=14 caldac[1] gain=5.024(11)e-5 V/bit S_min=2.12624 dof=14 caldac[2] gain=-3.5640(11)e-4 V/bit S_min=566.307 dof=14 caldac[3] gain=1.9454(11)e-4 V/bit S_min=34.8615 dof=14 caldac[4] gain=-6.1290(11)e-4 V/bit S_min=118.395 dof=14 caldac[5] gain=7.87(11)e-6 V/bit S_min=35.68 dof=14 caldac[9] gain=-4.084(11)e-5 V/bit S_min=51.3942 dof=14 WARNING: you need comedi driver version 0.7.67 or later for this calibration to work properly relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 144 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 101 binary: ai, bipolar zero offset, high gain caldac[0] set to 111 binary: ai, bipolar zero offset, high gain caldac[8] set to 176 linearity binary: ao 0, linearity (negative), low gain, ao 0, zero offset, low gain, ao 0, reference voltage, low gain caldac[10] set to 131 binary: ao 0, zero offset, low gain caldac[6] set to 133 binary: ao 0, reference voltage, low gain caldac[7] set to 135 binary: ao 0, reference voltage, low gain caldac[11] set to 137 linearity binary: ao 1, linearity (negative), low gain, ao 1, zero offset, low gain, ao 1, reference voltage, low gain caldac[1] set to 47 binary: ao 1, zero offset, low gain caldac[9] set to 15 binary: ao 1, reference voltage, low gain caldac[3] set to 130 binary: ao 1, reference voltage, low gain caldac[5] set to 127 comedi_calibrate-5/comedi_calibrate/results/eeprom_pxi-6031e0000644000000000000000000000346412416542124021162 00000000000000eeprom_dump output: 0000: aaffffffffffffffffffffffffffffff ................ 0010: ffffffffffffffffffffffffffffffff ................ 0020: ffffffffffffffffffffffffffffffff ................ 0030: ffffffffffffffffffffffffffffffff ................ 0040: ffffffffffffffffffffffffffffffff ................ 0050: ffffffffffffffffffffffffffffffff ................ 0060: ffffffffffffffffffffffffffffffff ................ 0070: ffffffffffffffffffffffffffffffff ................ 0080: ffffffffffffffffffffffffffffffff ................ 0090: ffffffffffffffffffffffffffffffff ................ 00a0: ffffffffffffffffffffffffffffffff ................ 00b0: ffffffffffffffffffffffffffffffff ................ 00c0: ffffffffffffffffffffffffffff0000 ................ 00d0: 00000000000000003c0b0000dacf2dbd ........<.....-. 00e0: 00003c0b0000dacf2dbd000000000049 ..<.....-......I 00f0: 00540041004e0000000000000049004e .T.A.N.......I.N 0100: 30144ea0a04d10003d2e033ca01b380c 0.N..M..=..<..8. 0110: 000c000000000000267c808380533c58 ........&|...S.Z.|..xZ.|..w.& 0130: 7c808380533c583e8b5aa07cab06785a |...S.Z.|..xZ 0140: 957ca9067702267c808380533c583e8b .|..w.&|...S. 0150: 5aa07cab06785a957ca9067702267c80 Z.|..xZ.|..w.&|. 0160: 8380533c583e8b5aa07cab06785a957c ..S.Z.|..xZ.| 0170: a9067702000000009d01a101a701af01 ..w............. 0180: 00000000000000000000000000000000 ................ 0190: 000000000000000000267c808380533c .........&|...S< 01a0: 583e8b5aa07cab06785a957ca9067702 X>.Z.|..xZ.|..w. 01b0: 62416145614261416562616541026541 bAaEaBaAebaeA.eA 01c0: 026742020523072104230621012b0023 .gB..#.!.#.!.+.# 01d0: 033902312050ff000000014111010608 .9.1 P.....A.... 01e0: 080b0701040114040405185e03001002 ...........^.... 01f0: 001001400a0c0a0bdd011c07d4070403 ...@............ comedi_calibrate-5/comedi_calibrate/results/pci-6034e0000644000000000000000000000566712416542124017600 00000000000000# ./comedi_calibrate eeprom reference lsb=99 msb=2 resulting reference voltage: 5.00061 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_pcimio Device name: pci-6034e Id: ni.c,v 1.125 2004/06/29 01:21:23 fmhess Exp Comedi version: 0.7.68 ai, bipolar zero offset, low gain reading 0.0177338(84), target 0 caldac[0] gain=-5.604(12)e-5 V/bit S_min=2.37939 dof=14 caldac[2] gain=1.03(11)e-6 V/bit S_min=1.00597 dof=14 caldac[4] gain=-6.2232(12)e-4 V/bit S_min=128.859 dof=14 caldac[8] gain=-9.1(11)e-7 V/bit S_min=0.248826 dof=14 ai, bipolar zero offset, high gain reading -2.6455(28)e-4, target 0 caldac[0] gain=-5.60079(39)e-5 V/bit S_min=143.741 dof=14 caldac[2] gain=-1.89(38)e-8 V/bit S_min=2.81621 dof=14 caldac[4] gain=-3.1188(38)e-6 V/bit S_min=5.00198 dof=14 caldac[8] gain=-9.618(38)e-7 V/bit S_min=5.27821 dof=14 ai, bipolar voltage reference, low gain reading 5.0047309(84), target 5.00061 caldac[0] gain=-5.399(11)e-5 V/bit S_min=57.7834 dof=14 caldac[2] gain=3.5241(12)e-4 V/bit S_min=375.818 dof=14 caldac[4] gain=-6.2217(12)e-4 V/bit S_min=161.084 dof=14 caldac[8] gain=-9.4(11)e-7 V/bit S_min=0.518899 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[2] set to 165 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[4] set to 157 binary: ai, bipolar zero offset, high gain caldac[0] set to 121 binary: ai, bipolar zero offset, high gain caldac[8] set to 107 writing calibration to /usr/local/var/lib/comedi/calibrations/ ni_pcimio_pci-6034e_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading -1.547(83)e-4, target 0 caldac[0] gain=-5.470(11)e-5 V/bit S_min=40.9513 dof=14 caldac[4] gain=-6.2404(12)e-4 V/bit S_min=147.172 dof=14 caldac[8] gain=-1.08(11)e-6 V/bit S_min=1.31863 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 3, aref 3 reading -1.68(26)e-6, target 0 caldac[0] gain=-5.61664(38)e-5 V/bit S_min=139.701 dof=14 caldac[4] gain=-3.1205(38)e-6 V/bit S_min=4.55186 dof=14 caldac[8] gain=-9.641(38)e-7 V/bit S_min=8.20823 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 5.0000715(65), target 5.00061 caldac[0] gain=-5.337(11)e-5 V/bit S_min=49.5019 dof=14 caldac[2] gain=3.5116(12)e-4 V/bit S_min=204.112 dof=14 caldac[4] gain=-6.2385(12)e-4 V/bit S_min=154.119 dof=14 caldac[8] gain=-7.71(87)e-7 V/bit S_min=2.13942 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/at-mio-16e-10000644000000000000000000004176212416542124020177 00000000000000eeprom reference lsb=166 msb=255 resulting reference voltage: 4.99991 Warning: device may not be not fully calibrated due to insufficient information.Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_atmio Device name: at-mio-16e-1 Id: ni.c,v 1.110 2004/04/04 02:22:44 fmhess Exp Comedi version: 0.7.68 ai, bipolar zero offset, low gain reading 7.5(10)e-4, target 0 caldac[0] gain=-8.8(14)e-6 V/bit S_min=1.09522 dof=14 caldac[1] gain=-7.558(14)e-4 V/bit S_min=3.95999 dof=14 ai, bipolar zero offset, high gain reading -3.0465(67)e-4, target 0 caldac[0] gain=-8.7771(88)e-6 V/bit S_min=2.30312 dof=14 caldac[1] gain=-3.7754(89)e-6 V/bit S_min=1.89058 dof=14 caldac[3] gain=3.50(87)e-8 V/bit S_min=0.547216 dof=14 ai, bipolar voltage reference, low gain reading 5.01249(10), target 4.99991 caldac[0] gain=-8.0(14)e-6 V/bit S_min=0.82462 dof=14 caldac[1] gain=-7.551(14)e-4 V/bit S_min=2.03064 dof=14 caldac[3] gain=-4.834(14)e-4 V/bit S_min=3.49087 dof=14 ai, unipolar zero offset, low gain reading 0.0( 0)e-2147483648, target 0.002442 caldac[1] gain=-3.2276(63)e-4 V/bit S_min=86819.2 dof=14 caldac[2] gain=-4.3693(67)e-4 V/bit S_min=127497 dof=14 ai, unipolar zero offset, high gain reading 0.0( 0)e-2147483648, target 1.221e-05 caldac[0] gain=-2.5748(33)e-6 V/bit S_min=335677 dof=14 caldac[1] gain=-1.875(13)e-7 V/bit S_min=54237.7 dof=14 caldac[2] gain=-5.994(21)e-7 V/bit S_min=108433 dof=14 ai, unipolar voltage reference, low gain reading 4.99747(10), target 4.99991 caldac[0] gain=-9.3(14)e-6 V/bit S_min=1.3753 dof=14 caldac[1] gain=-7.546(14)e-4 V/bit S_min=3.19278 dof=14 caldac[2] gain=-9.651(14)e-4 V/bit S_min=1.15898 dof=14 caldac[3] gain=-4.844(14)e-4 V/bit S_min=6.92136 dof=14 ao 0, zero offset, low gain reading -6.119(100)e-3, target 0.002442 caldac[0] gain=-8.1(14)e-6 V/bit S_min=1.06507 dof=14 caldac[1] gain=-7.557(14)e-4 V/bit S_min=3.28408 dof=14 caldac[4] gain=-1.248(14)e-4 V/bit S_min=0.551205 dof=14 caldac[5] gain=-8.298(14)e-4 V/bit S_min=2.7738 dof=14 ao 0, reference voltage, low gain reading 8.00937(10), target 8.00244 caldac[0] gain=-9.2(14)e-6 V/bit S_min=1.01639 dof=14 caldac[1] gain=-7.528(14)e-4 V/bit S_min=1.41349 dof=14 caldac[3] gain=-7.699(14)e-4 V/bit S_min=11.7405 dof=14 caldac[4] gain=-2.215(14)e-4 V/bit S_min=1.02548 dof=14 caldac[5] gain=-8.276(14)e-4 V/bit S_min=0.717992 dof=14 caldac[6] gain=-1.557(14)e-4 V/bit S_min=1.74443 dof=14 ao 0, linearity (mid), low gain reading 4.00154(10), target 4.00244 caldac[0] gain=-8.6(14)e-6 V/bit S_min=0.637496 dof=14 caldac[1] gain=-7.517(14)e-4 V/bit S_min=6.43439 dof=14 caldac[3] gain=-3.852(14)e-4 V/bit S_min=2.66421 dof=14 caldac[4] gain=-2.093(14)e-4 V/bit S_min=1.42958 dof=14 caldac[5] gain=-8.260(14)e-4 V/bit S_min=5.24754 dof=14 caldac[6] gain=-7.81(14)e-5 V/bit S_min=1.05935 dof=14 ao 1, zero offset, low gain reading -5.771(100)e-3, target 0.002442 caldac[0] gain=-8.6(14)e-6 V/bit S_min=1.20423 dof=14 caldac[1] gain=-7.551(14)e-4 V/bit S_min=3.43787 dof=14 caldac[7] gain=-1.243(14)e-4 V/bit S_min=1.46802 dof=14 caldac[8] gain=-8.295(14)e-4 V/bit S_min=1.87245 dof=14 ao 1, reference voltage, low gain reading 8.00980(11), target 8.00244 caldac[0] gain=-8.8(14)e-6 V/bit S_min=1.10784 dof=14 caldac[1] gain=-7.527(14)e-4 V/bit S_min=0.993669 dof=14 caldac[3] gain=-7.699(14)e-4 V/bit S_min=11.2815 dof=14 caldac[7] gain=-2.210(14)e-4 V/bit S_min=1.01976 dof=14 caldac[8] gain=-8.271(14)e-4 V/bit S_min=1.60461 dof=14 caldac[9] gain=-1.558(14)e-4 V/bit S_min=1.46595 dof=14 ao 1, linearity (mid), low gain reading 4.00139(10), target 4.00244 caldac[0] gain=-9.4(14)e-6 V/bit S_min=1.07283 dof=14 caldac[1] gain=-7.527(14)e-4 V/bit S_min=4.84605 dof=14 caldac[3] gain=-3.843(14)e-4 V/bit S_min=4.1468 dof=14 caldac[7] gain=-2.089(14)e-4 V/bit S_min=1.4825 dof=14 caldac[8] gain=-8.267(14)e-4 V/bit S_min=4.14121 dof=14 caldac[9] gain=-7.80(14)e-5 V/bit S_min=0.776121 dof=14 ao 0, unipolar zero offset, low gain reading -5.65(10)e-3, target 0 caldac[0] gain=-8.6(14)e-6 V/bit S_min=0.535554 dof=14 caldac[1] gain=-7.556(14)e-4 V/bit S_min=3.38384 dof=14 caldac[4] gain=-4.21(14)e-5 V/bit S_min=1.02791 dof=14 caldac[5] gain=-8.300(14)e-4 V/bit S_min=1.69337 dof=14 ao 0, unipolar high, low gain reading 9.01431(10), target 9.00122 caldac[0] gain=-8.9(14)e-6 V/bit S_min=0.592409 dof=14 caldac[1] gain=-7.525(14)e-4 V/bit S_min=6.92695 dof=14 caldac[3] gain=-8.645(14)e-4 V/bit S_min=11.548 dof=14 caldac[4] gain=-1.124(14)e-4 V/bit S_min=2.1145 dof=14 caldac[5] gain=-8.255(14)e-4 V/bit S_min=5.65795 dof=14 caldac[6] gain=-1.766(14)e-4 V/bit S_min=1.10924 dof=14 ao 0, unipolar linearity (low), low gain reading 0.99812(11), target 1.00122 caldac[0] gain=-8.8(14)e-6 V/bit S_min=0.745476 dof=14 caldac[1] gain=-7.500(14)e-4 V/bit S_min=6.552 dof=14 caldac[3] gain=-9.50(14)e-5 V/bit S_min=0.923277 dof=14 caldac[4] gain=-7.86(14)e-5 V/bit S_min=1.15331 dof=14 caldac[5] gain=-8.245(14)e-4 V/bit S_min=4.12521 dof=14 caldac[6] gain=-1.97(14)e-5 V/bit S_min=0.590444 dof=14 ao 0, unipolar linearity (mid), low gain reading 5.00690(10), target 5.00122 caldac[0] gain=-9.3(14)e-6 V/bit S_min=1.01055 dof=14 caldac[1] gain=-7.550(14)e-4 V/bit S_min=4.20116 dof=14 caldac[3] gain=-4.825(14)e-4 V/bit S_min=3.93155 dof=14 caldac[4] gain=-6.40(14)e-5 V/bit S_min=3.80846 dof=14 caldac[5] gain=-8.289(14)e-4 V/bit S_min=2.12907 dof=14 caldac[6] gain=-9.99(14)e-5 V/bit S_min=2.83172 dof=14 ao 1, unipolar zero offset, low gain reading -5.86(10)e-3, target 0 caldac[0] gain=-8.7(14)e-6 V/bit S_min=1.5997 dof=14 caldac[1] gain=-7.553(14)e-4 V/bit S_min=2.72914 dof=14 caldac[7] gain=-4.09(14)e-5 V/bit S_min=0.697545 dof=14 caldac[8] gain=-8.300(14)e-4 V/bit S_min=1.00515 dof=14 ao 1, unipolar high, low gain reading 9.01452(10), target 9.00122 caldac[0] gain=-8.8(14)e-6 V/bit S_min=1.2525 dof=14 caldac[1] gain=-7.523(14)e-4 V/bit S_min=6.44631 dof=14 caldac[3] gain=-8.640(14)e-4 V/bit S_min=14.7367 dof=14 caldac[7] gain=-1.114(14)e-4 V/bit S_min=0.992928 dof=14 caldac[8] gain=-8.260(14)e-4 V/bit S_min=7.39194 dof=14 caldac[9] gain=-1.759(14)e-4 V/bit S_min=0.968929 dof=14 ao 1, unipolar linearity (low), low gain reading 0.99715(10), target 1.00122 caldac[0] gain=-9.0(14)e-6 V/bit S_min=0.382816 dof=14 caldac[1] gain=-7.499(14)e-4 V/bit S_min=4.50835 dof=14 caldac[3] gain=-9.47(14)e-5 V/bit S_min=0.999024 dof=14 caldac[7] gain=-7.89(14)e-5 V/bit S_min=1.73214 dof=14 caldac[8] gain=-8.244(14)e-4 V/bit S_min=4.24174 dof=14 caldac[9] gain=-1.90(14)e-5 V/bit S_min=1.25962 dof=14 ao 1, unipolar linearity (mid), low gain reading 5.00697(10), target 5.00122 caldac[0] gain=-8.8(14)e-6 V/bit S_min=1.21695 dof=14 caldac[1] gain=-7.553(14)e-4 V/bit S_min=3.22012 dof=14 caldac[3] gain=-4.827(14)e-4 V/bit S_min=5.83667 dof=14 caldac[7] gain=-6.38(14)e-5 V/bit S_min=1.5426 dof=14 caldac[8] gain=-8.297(14)e-4 V/bit S_min=1.25605 dof=14 caldac[9] gain=-9.91(14)e-5 V/bit S_min=2.8617 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[3] set to 151 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[1] set to 127 binary: ai, bipolar zero offset, high gain caldac[0] set to 93 binary: ai, unipolar zero offset, high gain caldac[2] set to 109 linearity binary: ao 0, zero offset, low gain, ao 0, linearity (mid), low gain, ao 0, reference voltage, low gain caldac[4] set to 121 binary: ao 0, zero offset, low gain caldac[5] set to 118 binary: ao 0, reference voltage, low gain caldac[6] set to 111 linearity binary: ao 0, unipolar linearity (low), low gain, ao 0, unipolar linearity (mid), low gain, ao 0, unipolar high, low gain caldac[4] set to 124 binary: ao 0, unipolar zero offset, low gain caldac[5] set to 121 binary: ao 0, unipolar high, low gain caldac[6] set to 116 linearity binary: ao 1, zero offset, low gain, ao 1, linearity (mid), low gain, ao 1, reference voltage, low gain caldac[7] set to 113 binary: ao 1, zero offset, low gain caldac[8] set to 119 binary: ao 1, reference voltage, low gain caldac[9] set to 121 linearity binary: ao 1, unipolar linearity (low), low gain, ao 1, unipolar linearity (mid), low gain, ao 1, unipolar high, low gain caldac[7] set to 113 binary: ao 1, unipolar zero offset, low gain caldac[8] set to 121 binary: ao 1, unipolar high, low gain caldac[9] set to 125 writing calibration to /usr/var/lib/comedi/calibrations/ni_atmio_at-mio-16e-1_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 9.7(10)e-4, target 0 caldac[0] gain=-8.9(14)e-6 V/bit S_min=0.617982 dof=14 caldac[1] gain=-7.530(14)e-4 V/bit S_min=2.96076 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading -5.58(62)e-6, target 0 caldac[0] gain=-8.7604(88)e-6 V/bit S_min=3.17216 dof=14 caldac[1] gain=-3.7642(88)e-6 V/bit S_min=2.50942 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 5.00112(10), target 4.99991 caldac[0] gain=-9.1(14)e-6 V/bit S_min=1.02955 dof=14 caldac[1] gain=-7.529(14)e-4 V/bit S_min=2.66357 dof=14 caldac[3] gain=-4.828(14)e-4 V/bit S_min=4.4398 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 8, aref 3 reading 3.396(97)e-3, target 0.002442 caldac[0] gain=-7.4(13)e-6 V/bit S_min=0.605336 dof=14 caldac[1] gain=-4.2465(76)e-4 V/bit S_min=58496.4 dof=14 caldac[2] gain=-4.3699(67)e-4 V/bit S_min=125534 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 15, aref 3 reading 1.028(47)e-5, target 1.221e-05 caldac[0] gain=-3.0428(35)e-6 V/bit S_min=344287 dof=14 caldac[1] gain=-2.0625(48)e-6 V/bit S_min=36897.9 dof=14 caldac[2] gain=-2.1356(41)e-6 V/bit S_min=82233.9 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 8, aref 3 reading 5.00366(10), target 4.99991 caldac[0] gain=-9.2(14)e-6 V/bit S_min=1.28295 dof=14 caldac[1] gain=-7.520(14)e-4 V/bit S_min=1.8786 dof=14 caldac[2] gain=-9.622(14)e-4 V/bit S_min=1.62408 dof=14 caldac[3] gain=-4.851(14)e-4 V/bit S_min=3.7335 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.72(11)e-3, target 0.002442 caldac[0] gain=-9.5(14)e-6 V/bit S_min=0.647757 dof=14 caldac[1] gain=-7.532(14)e-4 V/bit S_min=4.57737 dof=14 caldac[4] gain=-1.250(14)e-4 V/bit S_min=1.45143 dof=14 caldac[5] gain=-8.271(14)e-4 V/bit S_min=2.69473 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.00249(10), target 8.00244 caldac[0] gain=-8.9(14)e-6 V/bit S_min=0.238276 dof=14 caldac[1] gain=-7.507(14)e-4 V/bit S_min=2.50325 dof=14 caldac[3] gain=-7.705(14)e-4 V/bit S_min=12.828 dof=14 caldac[4] gain=-2.212(14)e-4 V/bit S_min=1.66217 dof=14 caldac[5] gain=-8.246(14)e-4 V/bit S_min=0.664544 dof=14 caldac[6] gain=-1.559(14)e-4 V/bit S_min=1.49419 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.00267(10), target 4.00244 caldac[0] gain=-8.8(14)e-6 V/bit S_min=0.598028 dof=14 caldac[1] gain=-7.501(14)e-4 V/bit S_min=4.12502 dof=14 caldac[3] gain=-3.859(14)e-4 V/bit S_min=3.78547 dof=14 caldac[4] gain=-2.086(14)e-4 V/bit S_min=1.38229 dof=14 caldac[5] gain=-8.242(14)e-4 V/bit S_min=5.13416 dof=14 caldac[6] gain=-7.77(14)e-5 V/bit S_min=1.47309 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 3.06(10)e-3, target 0.002442 caldac[0] gain=-9.1(14)e-6 V/bit S_min=0.264933 dof=14 caldac[1] gain=-7.532(14)e-4 V/bit S_min=4.01244 dof=14 caldac[7] gain=-1.249(14)e-4 V/bit S_min=1.13164 dof=14 caldac[8] gain=-8.280(14)e-4 V/bit S_min=1.40017 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.00227(11), target 8.00244 caldac[0] gain=-9.0(14)e-6 V/bit S_min=1.09359 dof=14 caldac[1] gain=-7.508(14)e-4 V/bit S_min=1.81767 dof=14 caldac[3] gain=-7.698(14)e-4 V/bit S_min=11.5419 dof=14 caldac[7] gain=-2.208(14)e-4 V/bit S_min=2.01532 dof=14 caldac[8] gain=-8.244(14)e-4 V/bit S_min=1.68058 dof=14 caldac[9] gain=-1.549(14)e-4 V/bit S_min=0.746708 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.00260(10), target 4.00244 caldac[0] gain=-8.8(14)e-6 V/bit S_min=1.3585 dof=14 caldac[1] gain=-7.503(14)e-4 V/bit S_min=4.61528 dof=14 caldac[3] gain=-3.855(14)e-4 V/bit S_min=3.15529 dof=14 caldac[7] gain=-2.083(14)e-4 V/bit S_min=1.18802 dof=14 caldac[8] gain=-8.246(14)e-4 V/bit S_min=3.06557 dof=14 caldac[9] gain=-7.68(14)e-5 V/bit S_min=1.15218 dof=14 ao 0, unipolar zero offset, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading -2.9(10)e-4, target 0 caldac[0] gain=-9.3(14)e-6 V/bit S_min=1.45539 dof=14 caldac[1] gain=-7.531(14)e-4 V/bit S_min=2.72128 dof=14 caldac[4] gain=-4.21(14)e-5 V/bit S_min=1.24898 dof=14 caldac[5] gain=-8.273(14)e-4 V/bit S_min=2.11517 dof=14 ao 0, unipolar high, low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 9.00124(10), target 9.00122 caldac[0] gain=-8.9(14)e-6 V/bit S_min=1.27064 dof=14 caldac[1] gain=-7.495(14)e-4 V/bit S_min=6.95864 dof=14 caldac[3] gain=-8.651(14)e-4 V/bit S_min=10.7391 dof=14 caldac[4] gain=-1.106(14)e-4 V/bit S_min=1.63484 dof=14 caldac[5] gain=-8.240(14)e-4 V/bit S_min=2.3986 dof=14 caldac[6] gain=-1.753(14)e-4 V/bit S_min=0.722429 dof=14 ao 0, unipolar linearity (low), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 1.00139(10), target 1.00122 caldac[0] gain=-8.8(14)e-6 V/bit S_min=1.10918 dof=14 caldac[1] gain=-7.480(14)e-4 V/bit S_min=7.34355 dof=14 caldac[3] gain=-9.60(14)e-5 V/bit S_min=1.20038 dof=14 caldac[4] gain=-7.80(14)e-5 V/bit S_min=0.877571 dof=14 caldac[5] gain=-8.224(14)e-4 V/bit S_min=7.45923 dof=14 caldac[6] gain=-1.95(14)e-5 V/bit S_min=0.874179 dof=14 ao 0, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 0, range 1, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 5.00124(10), target 5.00122 caldac[0] gain=-8.4(14)e-6 V/bit S_min=0.709361 dof=14 caldac[1] gain=-7.528(14)e-4 V/bit S_min=5.06733 dof=14 caldac[3] gain=-4.821(14)e-4 V/bit S_min=4.98762 dof=14 caldac[4] gain=-6.37(14)e-5 V/bit S_min=1.21146 dof=14 caldac[5] gain=-8.274(14)e-4 V/bit S_min=3.13798 dof=14 caldac[6] gain=-9.96(14)e-5 V/bit S_min=3.12514 dof=14 ao 1, unipolar zero offset, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading -0.8(10)e-4, target 0 caldac[0] gain=-8.9(14)e-6 V/bit S_min=0.761959 dof=14 caldac[1] gain=-7.536(14)e-4 V/bit S_min=3.96696 dof=14 caldac[7] gain=-4.24(14)e-5 V/bit S_min=1.65739 dof=14 caldac[8] gain=-8.273(14)e-4 V/bit S_min=2.62236 dof=14 ao 1, unipolar high, low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 9.00119(10), target 9.00122 caldac[0] gain=-9.2(14)e-6 V/bit S_min=1.05796 dof=14 caldac[1] gain=-7.502(14)e-4 V/bit S_min=3.57367 dof=14 caldac[3] gain=-8.643(14)e-4 V/bit S_min=10.3467 dof=14 caldac[7] gain=-1.105(14)e-4 V/bit S_min=0.548318 dof=14 caldac[8] gain=-8.247(14)e-4 V/bit S_min=3.35923 dof=14 caldac[9] gain=-1.749(14)e-4 V/bit S_min=1.24378 dof=14 ao 1, unipolar linearity (low), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 1.00146(10), target 1.00122 caldac[0] gain=-9.4(14)e-6 V/bit S_min=0.407992 dof=14 caldac[1] gain=-7.481(14)e-4 V/bit S_min=5.77114 dof=14 caldac[3] gain=-9.60(14)e-5 V/bit S_min=1.63417 dof=14 caldac[7] gain=-7.82(14)e-5 V/bit S_min=1.83454 dof=14 caldac[8] gain=-8.223(14)e-4 V/bit S_min=5.18168 dof=14 caldac[9] gain=-1.99(14)e-5 V/bit S_min=0.703599 dof=14 ao 1, unipolar linearity (mid), low gain applied calibration for subdev 1, channel 1, range 1, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 5.00131(10), target 5.00122 caldac[0] gain=-9.3(14)e-6 V/bit S_min=0.852245 dof=14 caldac[1] gain=-7.526(14)e-4 V/bit S_min=3.69192 dof=14 caldac[3] gain=-4.822(14)e-4 V/bit S_min=5.88581 dof=14 caldac[7] gain=-6.41(14)e-5 V/bit S_min=2.28479 dof=14 caldac[8] gain=-8.275(14)e-4 V/bit S_min=2.11014 dof=14 caldac[9] gain=-1.001(14)e-4 V/bit S_min=2.48091 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/comedi_calibrate/results/DAQCard-ai-16xe-500000644000000000000000000000356312416542124021050 00000000000000$Id$ Driver name: ni_mio_cs Device name: DAQCard-ai-16xe-50 Comedi version: 0.7.60 postgain: ai, bipolar zero offset, low gain; ai, bipolar zero offset, high gain caldac[2] gain=1.56377(23)e-4 V/bit S_min=1670.79 dof=254 caldac[2] gain=1.56342(29)e-6 V/bit S_min=814.731 dof=254 caldac[2] set to 89 (88.9996) linear: ai, bipolar zero offset, high gain caldac[8] gain=2.61512(18)e-7 V/bit S_min=892.566 dof=254 caldac[8] set to 2115 (2114.92) linear: ai, bipolar voltage reference, low gain caldac[0] gain=-3.77918(24)e-4 V/bit S_min=12815.3 dof=254 caldac[0] set to 110 (110.428) linear fine: ai, bipolar voltage reference, low gain caldac[0] gain=-3.8386(94)e-4 V/bit S_min=78.9229 dof=19 caldac[0] set to 104 (104.393) linear: ai, bipolar voltage reference, low gain caldac[1] gain=-1.0452(23)e-5 V/bit S_min=759.199 dof=254 caldac[1] set to 148 (147.917) ai, bipolar zero offset, low gain offset 8.7(69)e-4, target 0 caldac[0] gain=-1.890(21)e-6 V/bit S_min=287.296 dof=254 caldac[2] gain=1.56695(23)e-4 V/bit S_min=1532.32 dof=254 caldac[8] gain=2.647(13)e-7 V/bit S_min=341.08 dof=254 ai, bipolar zero offset, high gain offset 9.8(41)e-7, target 0 caldac[0] gain=-1.826(26)e-8 V/bit S_min=331.882 dof=254 caldac[2] gain=1.56731(29)e-6 V/bit S_min=901.674 dof=254 caldac[8] gain=2.62011(18)e-7 V/bit S_min=804.673 dof=254 ai, bipolar voltage reference, low gain offset 4.99925(68), target 5 caldac[0] gain=-3.78224(24)e-4 V/bit S_min=12116.6 dof=254 caldac[1] gain=-1.0397(23)e-5 V/bit S_min=785.128 dof=254 caldac[2] gain=1.57339(23)e-4 V/bit S_min=1028.84 dof=254 caldac[8] gain=3.113(15)e-7 V/bit S_min=414.889 dof=254 ai, unipolar zero offset, low gain offset nan, target 0 caldac[0] gain=3.73812(32)e-4 V/bit S_min=1279.24 dof=143 caldac[1] gain=9.301(53)e-6 V/bit S_min=72.2441 dof=87 caldac[2] gain=7.8821(22)e-5 V/bit S_min=839.616 dof=163 caldac[8] gain=2.463(28)e-7 V/bit S_min=100.124 dof=95 comedi_calibrate-5/comedi_calibrate/results/at-mio-16xe-500000644000000000000000000002350712416542124020450 00000000000000eeprom reference lsb=158 msb=253 resulting reference voltage: 4.99939 Warning: device may not be not fully calibrated due to insufficient information. Please file a bug report at https://bugs.comedi.org/ and attach this output. This output will also allow comedi_calibrate to execute more quickly in the future. Forcing option: --verbose Forcing options: --reset --dump --calibrate --results Id: comedi_calibrate.c,v 1.92 2004/03/29 01:34:15 fmhess Exp Driver name: ni_atmio Device name: at-mio-16xe-50 Id: ni.c,v 1.130 2004/09/09 21:43:16 fmhess Exp Comedi version: 0.7.70 ai, bipolar zero offset, low gain reading 8.702(52)e-4, target 0 caldac[2] gain=1.5894(66)e-5 V/bit S_min=23.7848 dof=14 caldac[8] gain=2.178(41)e-7 V/bit S_min=1.29267 dof=14 ai, bipolar zero offset, high gain reading -3.9045(79)e-5, target 0 caldac[2] gain=1.520(10)e-7 V/bit S_min=4.67558 dof=14 caldac[8] gain=2.19144(64)e-7 V/bit S_min=20.9496 dof=14 ai, bipolar voltage reference, low gain reading 5.0018421(60), target 4.99939 caldac[0] gain=-4.4997(80)e-5 V/bit S_min=9.02987 dof=14 caldac[1] gain=-2.572(80)e-6 V/bit S_min=1.64554 dof=14 caldac[2] gain=1.5502(78)e-5 V/bit S_min=7.28076 dof=14 caldac[8] gain=2.205(50)e-7 V/bit S_min=3.47414 dof=14 ai, unipolar zero offset, low gain reading 5.837(31)e-4, target 7.62951e-05 caldac[2] gain=1.0453(25)e-5 V/bit S_min=18911.5 dof=14 caldac[8] gain=2.175(25)e-7 V/bit S_min=3.93912 dof=14 ai, unipolar zero offset, high gain reading 0.0( 0)e-2147483648, target 7.62951e-07 caldac[8] gain=8.4347(24)e-8 V/bit S_min=4.75406e+06 dof=14 ai, unipolar voltage reference, low gain reading 5.0016137(50), target 4.99939 caldac[0] gain=-4.5348(63)e-5 V/bit S_min=8.22606 dof=14 caldac[1] gain=-2.581(62)e-6 V/bit S_min=2.3327 dof=14 caldac[2] gain=1.5310(63)e-5 V/bit S_min=7.29289 dof=14 caldac[8] gain=2.190(39)e-7 V/bit S_min=2.95487 dof=14 ao 0, zero offset, low gain reading -1.9247(46)e-3, target 0.002442 caldac[2] gain=1.5451(66)e-5 V/bit S_min=8.45162 dof=14 caldac[6] gain=-3.88281(65)e-4 V/bit S_min=38.3974 dof=14 caldac[8] gain=2.216(41)e-7 V/bit S_min=3.6559 dof=14 ao 0, reference voltage, low gain reading 7.9920444(66), target 8.00244 caldac[0] gain=-7.2839(89)e-5 V/bit S_min=13.6618 dof=14 caldac[1] gain=-4.163(88)e-6 V/bit S_min=5.82747 dof=14 caldac[2] gain=1.5264(89)e-5 V/bit S_min=6.10978 dof=14 caldac[4] gain=-3.07810(88)e-4 V/bit S_min=20.949 dof=14 caldac[6] gain=-3.88185(90)e-4 V/bit S_min=40.6543 dof=14 caldac[8] gain=2.192(56)e-7 V/bit S_min=4.36919 dof=14 ao 0, linearity (mid), low gain reading 3.9952256(53), target 4.00244 caldac[0] gain=-3.6431(75)e-5 V/bit S_min=33.7371 dof=14 caldac[1] gain=-2.120(75)e-6 V/bit S_min=3.44698 dof=14 caldac[2] gain=1.5684(76)e-5 V/bit S_min=8.11184 dof=14 caldac[4] gain=-1.53775(76)e-4 V/bit S_min=31.35 dof=14 caldac[6] gain=-3.87818(77)e-4 V/bit S_min=66.0084 dof=14 caldac[8] gain=2.182(48)e-7 V/bit S_min=2.57404 dof=14 ao 1, zero offset, low gain reading -2.161(47)e-4, target 0.002442 caldac[2] gain=1.5983(66)e-5 V/bit S_min=20.0622 dof=14 caldac[7] gain=-3.88877(65)e-4 V/bit S_min=31.5066 dof=14 caldac[8] gain=2.466(43)e-7 V/bit S_min=9.21397 dof=14 ao 1, reference voltage, low gain reading 7.9947637(69), target 8.00244 caldac[0] gain=-7.2737(89)e-5 V/bit S_min=20.226 dof=14 caldac[1] gain=-4.199(89)e-6 V/bit S_min=3.49548 dof=14 caldac[2] gain=1.5387(88)e-5 V/bit S_min=10.3983 dof=14 caldac[5] gain=-3.07659(90)e-4 V/bit S_min=18.9123 dof=14 caldac[7] gain=-3.88741(92)e-4 V/bit S_min=13.7778 dof=14 caldac[8] gain=2.202(57)e-7 V/bit S_min=2.97218 dof=14 ao 1, linearity (mid), low gain reading 3.9985295(58), target 4.00244 caldac[0] gain=-3.6053(74)e-5 V/bit S_min=9.56347 dof=14 caldac[1] gain=-2.043(78)e-6 V/bit S_min=5.49799 dof=14 caldac[2] gain=1.5207(74)e-5 V/bit S_min=14.9714 dof=14 caldac[5] gain=-1.53896(74)e-4 V/bit S_min=35.5435 dof=14 caldac[7] gain=-3.88424(74)e-4 V/bit S_min=34.7964 dof=14 caldac[8] gain=2.223(47)e-7 V/bit S_min=5.20192 dof=14 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[0] set to 161 relative binary: ai, bipolar zero offset, low gain, ai, bipolar zero offset, high gain caldac[2] set to 70 binary: ai, bipolar zero offset, high gain caldac[8] set to 2261 relative binary: ai, bipolar zero offset, low gain, ai, bipolar voltage reference, low gain caldac[1] set to 161 binary peg: ai, unipolar zero offset, low gain caldac[8] set to 4095 binary peg: ai, unipolar zero offset, low gain caldac[2] set to 255 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[0] set to 165 relative binary: ai, unipolar zero offset, low gain, ai, unipolar zero offset, high gain caldac[2] set to 90 binary: ai, unipolar zero offset, high gain caldac[8] set to 2260 relative binary: ai, unipolar zero offset, low gain, ai, unipolar voltage reference, low gain caldac[1] set to 111 binary: ao 0, zero offset, low gain caldac[6] set to 113 binary: ao 0, reference voltage, low gain caldac[4] set to 99 binary: ao 1, zero offset, low gain caldac[7] set to 118 binary: ao 1, reference voltage, low gain caldac[5] set to 102 writing calibration to /usr/local/var/lib/comedi/calibrations/ni_atmio_at-mio-16xe-50_comedi0 ai, bipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 0, aref 3 reading 3.07(54)e-5, target 0 caldac[2] gain=1.5847(67)e-5 V/bit S_min=21.267 dof=14 caldac[8] gain=2.348(45)e-7 V/bit S_min=10.5767 dof=14 ai, bipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 3, aref 3 reading -4.62(84)e-7, target 0 caldac[2] gain=1.587(10)e-7 V/bit S_min=15.1738 dof=14 caldac[8] gain=2.19243(66)e-7 V/bit S_min=16.709 dof=14 ai, bipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 0, aref 3 reading 4.9994159(65), target 4.99939 caldac[0] gain=-4.5081(92)e-5 V/bit S_min=7.55849 dof=14 caldac[1] gain=-2.660(90)e-6 V/bit S_min=2.67796 dof=14 caldac[2] gain=1.5354(91)e-5 V/bit S_min=10.7686 dof=14 caldac[8] gain=2.094(55)e-7 V/bit S_min=8.07515 dof=14 ai, unipolar zero offset, low gain applied calibration for subdev 0, channel 0, range 4, aref 3 reading 8.52(24)e-5, target 7.62951e-05 caldac[2] gain=1.0743(26)e-5 V/bit S_min=17410.1 dof=14 caldac[8] gain=1.091(12)e-7 V/bit S_min=2005.75 dof=14 ai, unipolar zero offset, high gain applied calibration for subdev 0, channel 0, range 7, aref 3 reading 7.57(38)e-7, target 7.62951e-07 caldac[2] gain=1.0248(55)e-7 V/bit S_min=3861.99 dof=14 caldac[8] gain=8.2335(25)e-8 V/bit S_min=4.23951e+06 dof=14 ai, unipolar voltage reference, low gain applied calibration for subdev 0, channel 5, range 4, aref 3 reading 4.9993837(54), target 4.99939 caldac[0] gain=-4.5276(79)e-5 V/bit S_min=7.4383 dof=14 caldac[1] gain=-2.588(81)e-6 V/bit S_min=2.02124 dof=14 caldac[2] gain=1.5514(77)e-5 V/bit S_min=2.5417 dof=14 caldac[8] gain=2.186(39)e-7 V/bit S_min=0.610843 dof=14 ao 0, zero offset, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 2.7308(56)e-3, target 0.002442 caldac[2] gain=1.5239(65)e-5 V/bit S_min=16.0921 dof=14 caldac[6] gain=-3.87961(70)e-4 V/bit S_min=30.1096 dof=14 caldac[8] gain=2.208(45)e-7 V/bit S_min=3.57473 dof=14 ao 0, reference voltage, low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 8.0026110(82), target 8.00244 caldac[0] gain=-7.267(11)e-5 V/bit S_min=10.4362 dof=14 caldac[1] gain=-4.03(11)e-6 V/bit S_min=6.47914 dof=14 caldac[2] gain=1.533(11)e-5 V/bit S_min=8.14652 dof=14 caldac[4] gain=-3.07606(90)e-4 V/bit S_min=22.6917 dof=14 caldac[6] gain=-3.8787(10)e-4 V/bit S_min=16.0105 dof=14 caldac[8] gain=1.991(68)e-7 V/bit S_min=8.21831 dof=14 ao 0, linearity (mid), low gain applied calibration for subdev 1, channel 0, range 0, aref 0 applied calibration for subdev 0, channel 2, range 0, aref 3 reading 4.0027135(69), target 4.00244 caldac[0] gain=-3.6703(87)e-5 V/bit S_min=13.3184 dof=14 caldac[1] gain=-1.930(84)e-6 V/bit S_min=5.0267 dof=14 caldac[2] gain=1.5755(79)e-5 V/bit S_min=10.9698 dof=14 caldac[4] gain=-1.53823(79)e-4 V/bit S_min=27.2484 dof=14 caldac[6] gain=-3.87744(75)e-4 V/bit S_min=64.401 dof=14 caldac[8] gain=2.263(55)e-7 V/bit S_min=4.04184 dof=14 ao 1, zero offset, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 2.5082(53)e-3, target 0.002442 caldac[2] gain=1.5365(70)e-5 V/bit S_min=13.0555 dof=14 caldac[7] gain=-3.88689(67)e-4 V/bit S_min=31.6179 dof=14 caldac[8] gain=2.263(41)e-7 V/bit S_min=2.29018 dof=14 ao 1, reference voltage, low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 8.0025577(70), target 8.00244 caldac[0] gain=-7.2532(90)e-5 V/bit S_min=17.0167 dof=14 caldac[1] gain=-4.116(89)e-6 V/bit S_min=3.56061 dof=14 caldac[2] gain=1.5172(89)e-5 V/bit S_min=4.70791 dof=14 caldac[5] gain=-3.07483(91)e-4 V/bit S_min=20.5867 dof=14 caldac[7] gain=-3.88488(91)e-4 V/bit S_min=27.1674 dof=14 caldac[8] gain=2.029(55)e-7 V/bit S_min=9.02938 dof=14 ao 1, linearity (mid), low gain applied calibration for subdev 1, channel 1, range 0, aref 0 applied calibration for subdev 0, channel 3, range 0, aref 3 reading 4.0037143(63), target 4.00244 caldac[0] gain=-3.6621(78)e-5 V/bit S_min=31.0151 dof=14 caldac[1] gain=-2.347(82)e-6 V/bit S_min=4.89731 dof=14 caldac[2] gain=1.5844(78)e-5 V/bit S_min=13.4822 dof=14 caldac[5] gain=-1.53826(76)e-4 V/bit S_min=21.1332 dof=14 caldac[7] gain=-3.88114(79)e-4 V/bit S_min=37.9622 dof=14 caldac[8] gain=2.422(50)e-7 V/bit S_min=1.74161 dof=14 Applied calibration for subdevice 0, channel 0, range 0, aref 0 comedi_calibrate-5/aclocal.m40000644000000000000000000012740713062555270013235 00000000000000# generated automatically by aclocal 1.15 -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.15], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.15])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless 'enable' is passed literally. # For symmetry, 'disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], am_maintainer_other[ make rules and dependencies not useful (and sometimes confusing) to the casual installer])], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # -*- Autoconf -*- # Obsolete and "removed" macros, that must however still report explicit # error messages when used, to smooth transition. # # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl AC_CONFIG_HEADERS($@)]) AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should simply use the 'AC][_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'.])]) AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR comedi_calibrate-5/configure.ac0000644000000000000000000000253113062555105013646 00000000000000 AC_INIT([comedi_calibrate], [5]) AC_CONFIG_SRCDIR([comedi_calibrate/comedi_calibrate.c]) AM_INIT_AUTOMAKE AM_MAINTAINER_MODE([enable]) AC_PROG_CC AM_PROG_CC_STDC AM_PROG_CC_C_O AC_ISC_POSIX AC_PROG_CXX AC_PROG_RANLIB AC_HEADER_STDC([]) AC_CHECK_LIB([m],[cos]) #comedilib AC_CHECK_HEADER([comedilib.h],,AC_MSG_ERROR([Failed to find comedilib.h.])) AC_CHECK_LIB([comedi],[comedi_open],,AC_MSG_ERROR([Failed to find libcomedi.])) # GNU Scientific Library AC_CHECK_HEADER([gsl/gsl_matrix.h],,AC_MSG_ERROR([Failed to find gsl/gsl_matrix.h])) AC_CHECK_HEADER([gsl/gsl_multifit.h],,AC_MSG_ERROR([Failed to find gsl/gsl_multifit.h])) AC_CHECK_HEADER([gsl/gsl_statistics.h],,AC_MSG_ERROR([Failed to find gsl/gsl_statistics.h])) AC_CHECK_LIB([gslcblas],[cblas_dgemm],,AC_MSG_ERROR([Failed to find libgslcblas.])) AC_CHECK_LIB([gsl],[gsl_blas_dgemm],,AC_MSG_ERROR([Failed to find libgsl.])) #boost/program_options AC_LANG_PUSH(C++) AC_CHECK_HEADER([boost/program_options.hpp],,AC_MSG_ERROR([Failed to find boost/program_options.hpp])) AC_CHECK_LIB([boost_program_options],[main],,AC_MSG_ERROR([Failed to find libboost_program_options.])) # cheat! AC_LANG_POP(C++) COMEDI_CALIBRATE_CFLAGS="-Wall" AC_SUBST(COMEDI_CALIBRATE_CFLAGS) AC_CONFIG_FILES([ Makefile comedi_calibrate/Makefile comedi_soft_calibrate/Makefile libcomedi_calibrate/Makefile man/Makefile ]) AC_OUTPUT comedi_calibrate-5/INSTALL0000644000000000000000000003660512416542124012421 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. comedi_calibrate-5/compile0000755000000000000000000001624512726246326012755 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: comedi_calibrate-5/AUTHORS0000644000000000000000000000030212416542124012421 00000000000000# People who have contributed code/documentation to comedi_calibrate (alphabetized by last name) Frank Mori Hess David Schleef comedi_calibrate-5/COPYING0000644000000000000000000004313112416542124012413 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. comedi_calibrate-5/libcomedi_calibrate/0000755000000000000000000000000013062555662015404 500000000000000comedi_calibrate-5/libcomedi_calibrate/Makefile.am0000644000000000000000000000025112416542124017345 00000000000000 noinst_LIBRARIES = libcomedi_calibrate.a libcomedi_calibrate_a_SOURCES = save_cal.c comedi_calibrate_shared.h libcomedi_calibrate_a_CFLAGS = $(COMEDI_CALIBRATE_CFLAGS) comedi_calibrate-5/libcomedi_calibrate/Makefile.in0000644000000000000000000004371213062555271017374 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = libcomedi_calibrate ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AR = ar ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libcomedi_calibrate_a_AR = $(AR) $(ARFLAGS) libcomedi_calibrate_a_LIBADD = am_libcomedi_calibrate_a_OBJECTS = \ libcomedi_calibrate_a-save_cal.$(OBJEXT) libcomedi_calibrate_a_OBJECTS = $(am_libcomedi_calibrate_a_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcomedi_calibrate_a_SOURCES) DIST_SOURCES = $(libcomedi_calibrate_a_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COMEDI_CALIBRATE_CFLAGS = @COMEDI_CALIBRATE_CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LIBRARIES = libcomedi_calibrate.a libcomedi_calibrate_a_SOURCES = save_cal.c comedi_calibrate_shared.h libcomedi_calibrate_a_CFLAGS = $(COMEDI_CALIBRATE_CFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcomedi_calibrate/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcomedi_calibrate/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcomedi_calibrate.a: $(libcomedi_calibrate_a_OBJECTS) $(libcomedi_calibrate_a_DEPENDENCIES) $(EXTRA_libcomedi_calibrate_a_DEPENDENCIES) $(AM_V_at)-rm -f libcomedi_calibrate.a $(AM_V_AR)$(libcomedi_calibrate_a_AR) libcomedi_calibrate.a $(libcomedi_calibrate_a_OBJECTS) $(libcomedi_calibrate_a_LIBADD) $(AM_V_at)$(RANLIB) libcomedi_calibrate.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcomedi_calibrate_a-save_cal.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` libcomedi_calibrate_a-save_cal.o: save_cal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcomedi_calibrate_a_CFLAGS) $(CFLAGS) -MT libcomedi_calibrate_a-save_cal.o -MD -MP -MF $(DEPDIR)/libcomedi_calibrate_a-save_cal.Tpo -c -o libcomedi_calibrate_a-save_cal.o `test -f 'save_cal.c' || echo '$(srcdir)/'`save_cal.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcomedi_calibrate_a-save_cal.Tpo $(DEPDIR)/libcomedi_calibrate_a-save_cal.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='save_cal.c' object='libcomedi_calibrate_a-save_cal.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcomedi_calibrate_a_CFLAGS) $(CFLAGS) -c -o libcomedi_calibrate_a-save_cal.o `test -f 'save_cal.c' || echo '$(srcdir)/'`save_cal.c libcomedi_calibrate_a-save_cal.obj: save_cal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcomedi_calibrate_a_CFLAGS) $(CFLAGS) -MT libcomedi_calibrate_a-save_cal.obj -MD -MP -MF $(DEPDIR)/libcomedi_calibrate_a-save_cal.Tpo -c -o libcomedi_calibrate_a-save_cal.obj `if test -f 'save_cal.c'; then $(CYGPATH_W) 'save_cal.c'; else $(CYGPATH_W) '$(srcdir)/save_cal.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcomedi_calibrate_a-save_cal.Tpo $(DEPDIR)/libcomedi_calibrate_a-save_cal.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='save_cal.c' object='libcomedi_calibrate_a-save_cal.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcomedi_calibrate_a_CFLAGS) $(CFLAGS) -c -o libcomedi_calibrate_a-save_cal.obj `if test -f 'save_cal.c'; then $(CYGPATH_W) 'save_cal.c'; else $(CYGPATH_W) '$(srcdir)/save_cal.c'; fi` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: comedi_calibrate-5/libcomedi_calibrate/save_cal.c0000644000000000000000000001647312416542124017247 00000000000000/* comedi_calibrate/save_cal.c - stuff for saving calibration info to a file. Copyright (C) 2003 Frank Mori Hess This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the license, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define _GNU_SOURCE #include "comedi_calibrate_shared.h" #include #include #include #include #include #include #include #include static void indent(FILE *file, unsigned numTabs) { while (numTabs--) fputc('\t', file); } static void write_caldac( FILE *file, comedi_caldac_t caldac ) { const unsigned baseNumTabs = 4; indent(file, baseNumTabs); fprintf( file, "{\n" ); indent(file, baseNumTabs + 1); fprintf( file, "subdevice => %i,\n", caldac.subdevice ); indent(file, baseNumTabs + 1); fprintf( file, "channel => %i,\n", caldac.channel ); indent(file, baseNumTabs + 1); fprintf( file, "value => %i,\n", caldac.value ); indent(file, baseNumTabs); fprintf( file, "}" ); } static void write_polynomial(FILE *file, const comedi_polynomial_t *polynomial) { const unsigned baseNumTabs = 3; unsigned i; indent(file, baseNumTabs); fprintf(file, "{\n"); indent(file, baseNumTabs + 1); fprintf(file, "expansion_origin => %.20e,\n", polynomial->expansion_origin); indent(file, baseNumTabs + 1); fprintf(file, "coefficients => ["); for(i = 0; i <= polynomial->order; ++i) { assert(i < COMEDI_MAX_NUM_POLYNOMIAL_COEFFICIENTS); fprintf(file, "%.20e,", polynomial->coefficients[i]); } fprintf(file, "],\n"); indent(file, baseNumTabs); fprintf(file, "}"); } void write_calibration_setting( FILE *file, comedi_calibration_setting_t setting ) { unsigned baseNumTabs = 2; int i; indent(file, baseNumTabs); fprintf( file, "{\n" ); indent(file, baseNumTabs + 1); fprintf( file, "subdevice => %i,\n", setting.subdevice ); indent(file, baseNumTabs + 1); fprintf( file, "channels => [" ); for( i = 0; i < setting.num_channels; i++ ) fprintf( file, "%i,", setting.channels[ i ] ); fprintf( file, "],\n" ); indent(file, baseNumTabs + 1); fprintf( file, "ranges => [" ); for( i = 0; i < setting.num_ranges; i++ ) fprintf( file, "%i,", setting.ranges[ i ] ); fprintf( file, "],\n" ); indent(file, baseNumTabs + 1); fprintf( file, "arefs => [" ); for( i = 0; i < setting.num_arefs; i++ ) fprintf( file, "%i,", setting.arefs[ i ] ); fprintf( file, "],\n" ); indent(file, baseNumTabs + 1); fprintf( file, "caldacs =>\n" ); indent(file, baseNumTabs + 1); fprintf( file, "[\n" ); for( i = 0; i < setting.num_caldacs; i++ ) { write_caldac( file, setting.caldacs[ i ] ); fprintf( file, ",\n" ); } indent(file, baseNumTabs + 1); fprintf( file, "],\n" ); if(setting.soft_calibration.to_phys) { indent(file, baseNumTabs + 1); fprintf(file, "softcal_to_phys =>\n"); write_polynomial(file, setting.soft_calibration.to_phys); fprintf( file, ",\n" ); } if(setting.soft_calibration.from_phys) { indent(file, baseNumTabs + 1); fprintf(file, "softcal_from_phys =>\n"); write_polynomial(file, setting.soft_calibration.from_phys); fprintf( file, ",\n" ); } indent(file, baseNumTabs); fprintf( file, "}" ); } int write_calibration_perl_hash( FILE *file, const comedi_calibration_t *calibration ) { int i; time_t now; now = time( NULL ); fprintf( file, "#calibration file generated by comedi_calibrate\n" "#%s\n", ctime( &now ) ); fprintf( file, "{\n" ); fprintf( file, "\tdriver_name => \"%s\",\n", calibration->driver_name ); fprintf( file, "\tboard_name => \"%s\",\n", calibration->board_name ); fprintf( file, "\tcalibrations =>\n" "\t[\n" ); for( i = 0; i < calibration->num_settings; i++ ) { write_calibration_setting( file, calibration->settings[ i ] ); fprintf( file, ",\n" ); } fprintf( file, "\t],\n" "}\n"); return 0; } int write_calibration_file(const char *file_path, const comedi_calibration_t *calibration) { FILE *file; int retval; assert(calibration); assert(file_path); file = fopen(file_path, "w"); if(file == NULL) { fprintf( stderr, "failed to open file %s for writing\n", file_path ); perror( "fopen" ); return -1; } // DPRINT( 0, "writing calibration to %s\n", setup->cal_save_file_path ); retval = write_calibration_perl_hash(file, calibration); fclose(file); return retval; } comedi_calibration_setting_t* sc_alloc_calibration_setting(comedi_calibration_t *calibration) { comedi_calibration_setting_t *temp; temp = realloc(calibration->settings, (calibration->num_settings + 1) * sizeof(comedi_calibration_setting_t)); assert(temp); calibration->settings = temp; memset(&calibration->settings[calibration->num_settings], 0, sizeof(comedi_calibration_setting_t)); calibration->num_settings++; return &calibration->settings[calibration->num_settings - 1]; } void sc_push_caldac(comedi_calibration_setting_t *saved_cal, comedi_caldac_t caldac) { int i; /* check if caldac is already listed, in which case we just update */ for( i = 0; i < saved_cal->num_caldacs; i++ ) { if( saved_cal->caldacs[ i ].subdevice != caldac.subdevice ) continue; if( saved_cal->caldacs[ i ].channel != caldac.channel ) continue; break; } if( i < saved_cal->num_caldacs ) { saved_cal->caldacs[ i ].value = caldac.value; return; } saved_cal->caldacs = realloc(saved_cal->caldacs, (saved_cal->num_caldacs + 1) * sizeof(comedi_caldac_t)); if(saved_cal->caldacs == NULL) { fprintf( stderr, "memory allocation failure\n" ); abort(); } saved_cal->caldacs[ saved_cal->num_caldacs ] = caldac; saved_cal->num_caldacs++; } void sc_push_channel( comedi_calibration_setting_t *saved_cal, int channel ) { if( channel == SC_ALL_CHANNELS ) { saved_cal->num_channels = 0; if( saved_cal->channels ) { free( saved_cal->channels ); saved_cal->channels = NULL; } }else { saved_cal->channels = realloc( saved_cal->channels, ( saved_cal->num_channels + 1 ) * sizeof( int ) ); if( saved_cal->channels == NULL ) { fprintf( stderr, "memory allocation failure\n" ); abort(); } saved_cal->channels[ saved_cal->num_channels++ ] = channel; } } void sc_push_range( comedi_calibration_setting_t *saved_cal, int range ) { if( range == SC_ALL_RANGES ) { saved_cal->num_ranges = 0; if( saved_cal->ranges ) { free( saved_cal->ranges ); saved_cal->ranges = NULL; } } else { saved_cal->ranges = realloc( saved_cal->ranges, ( saved_cal->num_ranges + 1 ) * sizeof( int ) ); if( saved_cal->ranges == NULL ) { fprintf( stderr, "memory allocation failure\n" ); abort(); } saved_cal->ranges[ saved_cal->num_ranges++ ] = range; } } void sc_push_aref( comedi_calibration_setting_t *saved_cal, int aref ) { assert( saved_cal->num_arefs < CS_MAX_AREFS_LENGTH ); if( aref == SC_ALL_AREFS ) saved_cal->num_arefs = 0; else saved_cal->arefs[ saved_cal->num_arefs++ ] = aref; } comedi_calibrate-5/libcomedi_calibrate/comedi_calibrate_shared.h0000644000000000000000000000300012416542124022251 00000000000000/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by * * the Free Software Foundation; either version 2.1 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef __COMEDI_CALIBRATE_SHARED_H_ #define __COMEDI_CALIBRATE_SHARED_H_ #include #ifdef __cplusplus extern "C" { #endif /* saving calibrations to file */ static const int SC_ALL_CHANNELS = -1; static const int SC_ALL_RANGES = -1; static const int SC_ALL_AREFS = -1; int write_calibration_file(const char *file_path, const comedi_calibration_t *calibration); comedi_calibration_setting_t* sc_alloc_calibration_setting(comedi_calibration_t *calibration); void sc_push_caldac(comedi_calibration_setting_t *saved_cal, comedi_caldac_t caldac); void sc_push_channel(comedi_calibration_setting_t *saved_cal, int channel); void sc_push_range(comedi_calibration_setting_t *saved_cal, int range); void sc_push_aref(comedi_calibration_setting_t *saved_cal, int aref); #ifdef __cplusplus } #endif #endif //COMEDI_CALIBRATE_SHARED comedi_calibrate-5/Makefile.in0000644000000000000000000006006313062555270013434 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in AUTHORS COPYING ChangeLog \ INSTALL NEWS README compile depcomp install-sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COMEDI_CALIBRATE_CFLAGS = @COMEDI_CALIBRATE_CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = libcomedi_calibrate comedi_calibrate comedi_soft_calibrate man EXTRA_DIST = autogen.sh all: all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ dist-zip distcheck distclean distclean-generic distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile dist-hook: @if test -d "$(srcdir)/.git"; \ then \ echo Creating ChangeLog && \ ( cd "$(top_srcdir)" && \ echo '# Generated by Makefile. Do not edit.'; echo; \ $(top_srcdir)/missing --run \ git log --stat --name-only --date=iso ) \ > ChangeLog.tmp \ && mv -f ChangeLog.tmp $(distdir)/ChangeLog \ || ( rm -f ChangeLog.tmp ; \ echo Failed to generate ChangeLog >&2 ); \ else \ echo A git clone is required to generate a ChangeLog >&2; \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: comedi_calibrate-5/missing0000755000000000000000000001533012726246326012770 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2014 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: comedi_calibrate-5/NEWS0000644000000000000000000000000012416542124012043 00000000000000comedi_calibrate-5/README0000644000000000000000000000020412416542124012232 00000000000000If you are trying to compile from a git checkout, you can create the configure script by running "./autogen.sh" in this directory. comedi_calibrate-5/ChangeLog0000644000000000000000000011737613062555662013160 00000000000000# Generated by Makefile. Do not edit. commit fc85e6c199bce716485f2c0017891dc6fa855b72 Author: Ian Abbott Date: 2017-03-16 18:32:52 +0000 Bump to version 5. comedi_soft_calibrate supports more NI PXI M-series cards. configure.ac commit ee74b4ceb617aeb65a9e57bb964c3657a5546fc5 Author: Ian Abbott Date: 2017-03-16 18:32:15 +0000 Add a .gitignore file .gitignore commit 655417b5ab2941e95b1b6a8ebc915df92c935d7b Author: Ian Abbott Date: 2017-03-16 18:22:35 +0000 configure: Enable maintainer mode by default configure.ac commit 98c7662e36cbb775fb7bde0f57f39994a484558a Author: Ian Abbott Date: 2017-03-16 18:03:12 +0000 comedi_soft_calibrate: support more NI PXI M-series cards Add "pxi-6220", "pxi-6221", "pxi-6229", "pxi-6250", "pxi-6251", "pxi-6254", "pxi-6259", "pxie-6259", "pxi-6280", "pxi-6284", and "pxi-6289" to list of supported device names ("pxi-6224", "pxi-6225", "pxie-6251", and "pxi-6281" were already supported). They should work like the corresponding "pci-" and "pcie-" devices. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit e2243a11f69be25d248ba70d2eac7542beba1e25 Author: Ian Abbott Date: 2016-06-09 11:31:23 +0100 Bump to version 4 Fixes a problem with comedi_soft_calibrate failing due to the subdevice remaining busy at the wrong time during NI M-series calibration. configure.ac commit 38992960662e769771a4d966c742e0e48f8be9cd Author: Ian Abbott Date: 2016-06-09 10:53:54 +0100 comedi_soft_calibrate: ni_m_series_calibrator: cancel command when done After NIMSeries::References::readReference() reads its required amount of data generated by the command it set up, there may be excess, unread data in the buffer that was generated by the comedi device. The comedi core considers the subdevice busy until it reports an end-of-file condition (by returning 0 from read(). This problem seems to be more prevelant on more recent systems, perhaps due to changes in the comedi core in recent kernels. Fix it by cancelling the command after the required data has been read. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit b964e4f749ef3ce9de70e3adcaaf213358d2dba9 Author: Ian Abbott Date: 2015-09-11 12:23:41 +0100 comedi_soft_calibrate: ni_m_series_calibrator: fix spelling Thanks to Debian maintainer. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 1d8a96637ffb6df26be43bf331e4fbea8611918b Author: Ian Abbott Date: 2014-12-16 10:52:01 +0000 Bump to version 3 The only thing that has changed since version 2 is the addition of a few more National Instruments model names supported by comedi_soft_calibrate. configure.ac commit 5b04de157fd27c78c1593c1670efeebd8f2b2265 Author: Ian Abbott Date: 2014-12-16 10:37:05 +0000 soft_calibrate: add pxi-6224 and pxi-6225 Add NI "pxi-6224" and "pxi-6225" to the list of supported devices. They should work like the existing "pci-6224" and "pci-6225". comedi_soft_calibrate/ni_m_series_calibrator.cpp commit b9f6e373f02ed6ec43deb8ddb6ec17c047aa2c12 Author: Ian Abbott Date: 2014-12-16 10:35:16 +0000 soft_calibrate: correct device name for pxie-6251 One of the recently added, supported device names was incorrect. "pxi-6251" should be "pxie-6251". comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 4ef9488f1f2c30800ce0a05314f6321cc3b9b268 Author: Éric Piel Date: 2014-12-05 13:35:06 +0100 soft_calibrate: add pcie-6251 and pxi-6251 to list of supported boards The PCIe and PXI versions of the PCI-6251 have a different name but should behave the same. So there is no reason they are not supported too. Tested on a pcie-6251. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 3090eec46f856955ad6f2157516edf0c284f2fa7 Author: Ian Abbott Date: 2014-01-06 14:07:54 +0000 Bump version to 2 since overdue for a version increment. Version 1 was released in 2007, and there have been quite a few changes since then, so it's about time we bumped to version 2. configure.ac commit 9a97222caf5c080b31b6194cbe220fc3f68be6d2 Author: Ian Abbott Date: 2014-01-06 14:03:37 +0000 Update INSTALL Replace the old generic INSTALL file with a newer version. INSTALL commit 7fb48a56d13ff2c8d4f7b6aa227dee17a54dfad6 Author: Ian Abbott Date: 2014-01-06 13:54:03 +0000 Updated README Replace reference to CVS checkout with git checkout. Change instructions to say run the "./autogen.sh" script instead of "autoreconf -i". README commit 8bacfff39bcd7a717cef84af567c12b64c1064f3 Author: Ian Abbott Date: 2014-01-06 13:51:08 +0000 Fix some compiler warnings about variables being set but not used. comedi_calibrate/cal_common.c comedi_calibrate/comedi_calibrate.c commit 50f9cbc0e2a478feb1bab0957be4f75daad53f13 Author: Ian Abbott Date: 2014-01-06 13:40:13 +0000 Generate ChangeLog from git log during 'make dist' As for comedilib, generate the ChangeLog using git log in the dist-hook target of the main Makefile. The git command used is: git log --stat --name-only --date=iso The format of the resulting ChangeLog is different to the old one that was produced with cvs2cl. ChangeLog Makefile.am commit 57a2ee282fd96fbd4d557e70277fc8c0e5a6f539 Author: Ian Abbott Date: 2012-05-21 11:48:01 +0100 Add ./autogen.sh script. Makefile.am autogen.sh commit 9bab809e071015a522c2cd8648b092a28f25138c Author: Ian Abbott Date: 2012-05-21 11:38:31 +0100 comedi_calibrate/cb64.c: #ifdef out unused code for unknown boards. comedi_calibrate/cb64.c commit c53b412f08d24ac5f01fba5dd8d443aefad9a7ae Author: Ian Abbott Date: 2012-05-21 11:26:55 +0100 Use -Wall compiler option. Add COMEDI_CALIBRATE_CFLAGS output variable in configure.ac, set to -Wall. Use it in the Makefile.am files to use the -Wall compiler option. Add AM_PROG_CC_C_O to configure.ac because Automake now wants it. This needs the 'compile' script in the top-level source directory. Run `autoreconf -i` in the top-level source directory to add the 'compile' script. comedi_calibrate/Makefile.am comedi_soft_calibrate/Makefile.am configure.ac libcomedi_calibrate/Makefile.am commit 5b4614b70b679e656e71ec7c602402260dacb641 Author: Ian Abbott Date: 2012-05-21 10:13:53 +0100 comedi_calibrate/ni.c: Fix missing return 0 in ni_setup_ao_observables. I forgot to add 'return 0' to the end of ni_setup_ao_observables() in my last change. Problem and fix reported by Wei Jiang. comedi_calibrate/ni.c commit 888af3038c6c23b3e7042bf31789941b9ea7053b Author: Ian Abbott Date: 2012-05-16 13:42:48 +0100 comedi_calibrate/cb64.c: Check result of asprintf() calls. Check the result of the asprintf calls and return an error if it fails. comedi_calibrate/cb64.c commit daec61fe2f58dc480a761ea65f2f9c0db98764bb Author: Ian Abbott Date: 2012-05-16 13:37:23 +0100 comedi_calibrate/cb.c: Check result of asprintf() calls. Check results of asprintf calls and return an error if it fails. comedi_calibrate/cb.c commit f68b2b627c7ce399d70e3310cdb0971f8a8e25ea Author: Ian Abbott Date: 2012-05-16 13:31:39 +0100 comedi_calibration/ni.c: Check results of asprintf() calls. Check asprintf calls succeed and return an error if it doesn't. comedi_calibrate/ni.c commit c7163db3aacf6bf8f84be37e2edb841f5ed85cb8 Author: Ian Abbott Date: 2012-05-16 12:56:48 +0100 comedi_calibrate/comedi_calibrate.c: Check memory allocation Check for memory allocation errors explicitly rather than use assert(). comedi_calibrate/comedi_calibrate.c commit 4c3cff864e47e361e9fbaff63245fdd37d4a9d43 Author: Ian Abbott Date: 2012-05-16 12:41:46 +0100 comedi_calibrate: Exit with error if fail to open comedi device. comedi_calibrate/comedi_calibrate.c commit a77c9165da48c813a295ebaf38aca007116f040b Author: Ian Abbott Date: 2012-05-15 09:53:59 +0100 libcomedi_calibrate/savecal.c: Simplify indent() Simplify the indent function, partly to avoid a warning about using a non-literal format string. libcomedi_calibrate/save_cal.c commit d74ab19b7e7165c07be556d8c19948defc1d6bd3 Author: Bernd Porr Date: 2012-05-04 10:04:39 +0100 Revert "Added option --disable-comedilib-checking to the configure script" This reverts commit 60525040e089f9791601ebd38ddb107ab6de982f. As agreed this is ugly and better we fix this in the package build system or creating a separate package for comedi calibrate. autogen.sh configure.ac commit 60525040e089f9791601ebd38ddb107ab6de982f Author: Bernd Porr Date: 2012-05-03 11:40:17 +0100 Added option --disable-comedilib-checking to the configure script so that it can be built without libcomedi.so esp for packages. autogen.sh configure.ac commit bba50ec9a0cf7255313e3083d9dbfd91a51fe62b Author: W. Trevor King Date: 2012-03-14 22:43:01 +0000 Check driver version before warning in cal_ni_pci_6052e(). The current implementation always prints the warning, regardless of the comedi driver version. Also, in cal_ni_pci_6711, there is ambiguity for version 0.7.69, which will generate a warning message saying that that version is sufficient. Either the comparison verision should go down, or the suggested version should go up, but I'm not sure which. comedi_calibrate/ni.c commit a813efdede4586df0e85c6d7fa71d87c5fe54e1e Author: Ian Abbott Date: 2012-02-13 11:20:48 +0000 Add place-holder file 'comedi_soft_calibrate/results/README'. The 'comedi_soft_calibrate/Makefile.am' has a line: EXTRA_DIST = results This is meant to add all the files in the 'results' subdirectory to the distribution just like 'comedi_calibrate/results'. Currently, the subdirectory does not exist and Git does cannot store empty directories (at least not easily) so add a 'README' file as a place-holder in this subdirectory. Signed-off-by: Ian Abbott comedi_soft_calibrate/results/README commit 6d465b8a00f144699d4b3b57fef36271696b1697 Author: Ian Abbott Date: 2012-02-13 10:44:20 +0000 Add comedi_calibrate.8 man page. Import the comedi_calibrate.8 man page from comedilib and add the Autoconf/Automake machinery to install it. Signed-off-by: Ian Abbott Makefile.am configure.ac man/Makefile.am man/comedi_calibrate.8 commit fee0ad8997dda60f4fcd8998a45ae44d85b2fd2a Author: W. Trevor King Date: 2012-02-12 12:32:15 +0000 Respect DESTDIR in comedi_soft_calibrate/Makefile.am's install-data-local. I just found this packaging bug in comedi_calibrate while packaging it for Gentoo. Now this rule matches the similar one for comedi_calibrate/Makefile.am. That makefile had this fix applied back in 2006 (commit 7489d0d825d676206a398a20a3454b0cd9c42bb0), but this makefile seems to have escaped until now. Cheers, Trevor comedi_soft_calibrate/Makefile.am commit 3ce9d35e0b920f9f943f2c3e39296244fb74e09d Author: Frank Mori Hess Date: 2009-09-22 14:55:18 +0000 Updated status of pci-mio-16e-4 to STATUS_DONE based on comedi_calibrate output from Bob Apodaca. comedi_calibrate/ni.c comedi_calibrate/results/pci-mio-16e-4 commit 0fb1873d9e2091f499a21d92281d501f9f26a6cd Author: Frank Mori Hess Date: 2009-09-22 14:42:35 +0000 Removed obsolete file. comedi_calibrate/ni_m_series.c commit 0017588f07cbe3ad5fdadd4cab029d3487299c66 Author: Frank Mori Hess Date: 2008-06-15 15:15:40 +0000 Updated pxi-6031e to STATUS_DONE based on report in bug 262 in bugzilla. comedi_calibrate/ni.c comedi_calibrate/results/eeprom_pxi-6031e comedi_calibrate/results/pxi-6031e commit 01251536146b4008231082e29c9d9849244731e8 Author: Frank Mori Hess Date: 2008-06-15 14:47:34 +0000 Removed useless m-series code. comedi_calibrate/Makefile.am comedi_calibrate/calib.h comedi_calibrate/ni.c commit 6583ea835703fa88abedb8b245f90daee9157566 Author: Frank Mori Hess Date: 2008-04-04 17:41:42 +0000 Tell people to use the -i option on autoreconf. README commit 44e6b5f58c905704db37515c38f2527192ad2840 Author: Ian Abbott Date: 2008-01-11 13:29:19 +0000 Avoided declaration after statement. comedi_calibrate/comedi_calibrate.c commit 64bc7528c3f163e4fb5d151a0344b8a8f102546a Author: Ian Abbott Date: 2008-01-11 13:22:38 +0000 Fixed off-by-one error in check for invalid caldac index in update_caldac(). comedi_calibrate/comedi_calibrate.c commit 52c93263a6096a4d51cb18e45cef15385ac7b07a Author: Ian Abbott Date: 2008-01-07 14:00:04 +0000 Check for GNU Scientific Library. configure.ac commit 49b41193af80402be84ec8f4f88b48100579aadd Author: Frank Mori Hess Date: 2007-11-10 16:50:37 +0000 Adding trivial email address obfuscation, since some of the AUTHORS files are linked to from the web page. AUTHORS commit 39d49a0093bc5b9f4152c8adb6fd4b7c7fa68d7f Author: Frank Mori Hess Date: 2007-11-10 16:49:41 +0000 Fixed crash when run on board without analog output subdevice. Based on patch from "J.D." . comedi_soft_calibrate/ni_m_series_calibrator.cpp commit d6e8f5c9f0e43a24372330f7faaed59c16e844df Author: Frank Mori Hess Date: 2007-08-27 21:49:03 +0000 Use new C++ wrapper in comedilib (should be available in next release after comedilib 0.8.0). comedi_soft_calibrate/Makefile.am comedi_soft_calibrate/calibrator.hpp comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 2df382c80feb98052f8fb3dbb1484184bdf935e3 Author: Frank Mori Hess Date: 2007-07-31 14:35:39 +0000 Removed autogen.sh script, and just tell users to run autoreconf. AUTHORS README autogen.sh commit 06d6c86e9a3db1c3aff580f2f09fefe7907397b8 Author: Frank Mori Hess Date: 2007-07-30 02:43:01 +0000 Generated ChangeLog with "cvs2cl -t" ChangeLog commit fbdcc3564120b21edbe58ed58baedf00bafa13d8 Author: Frank Mori Hess Date: 2007-07-30 02:40:55 +0000 Bumped version for initial release. configure.ac commit 86e3e77e443d6d00788860025addd172794e2c0d Author: Frank Mori Hess Date: 2007-07-30 02:40:19 +0000 Newer version of default INSTALL file generated by autoreconf. INSTALL commit 28bc906a2551e1d858fcb39ad774e713d3fb1e14 Author: Frank Mori Hess Date: 2007-07-30 02:38:41 +0000 I like to run configure and autoreconf separately. autogen.sh commit 2cb2f4e1a1874cb62660653d80706ff584403a03 Author: Frank Mori Hess Date: 2007-07-30 02:35:43 +0000 Strip CVS directories from distribution tarball. Makefile.am commit 634abbf0e8b6e2ff1090e8145d6403066fbfdffb Author: Frank Mori Hess Date: 2007-07-30 02:09:19 +0000 Fixed a couple compiler warnings. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit e8ee9eb2338de888b1145d07a07ab0f1876faf80 Author: Frank Mori Hess Date: 2007-07-30 02:05:28 +0000 Added authors AUTHORS commit 2087f6cffe85c7bb5a66dd3bf0bf68d00a132b17 Author: Frank Mori Hess Date: 2007-05-09 19:55:03 +0000 Updated status of ni pci-6025e to STATUS_DONE, and updated its results. Added guesses for various NI pxi boards, based on their pci counterparts. comedi_calibrate/ni.c comedi_calibrate/results/pci-6025e commit de76cf8ea3e3d0b5e28da9a788bad3a2b6294e9d Author: Frank Mori Hess Date: 2007-05-09 19:13:16 +0000 Added stub for pci-6070e comedi_calibrate/ni.c commit 4cde3f4239b48e39f3216073b2578db7bc850cc4 Author: Frank Mori Hess Date: 2006-11-28 14:14:49 +0000 Replace use of stdio_filebuf with FILE*, since stdio_filebuf constructors prototypes were changed recently and I don't want to deal with them. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit c447f25d663f1ce50f96e1f99e6ac67e1d3c1a70 Author: Frank Mori Hess Date: 2006-11-28 14:09:15 +0000 Fixed some compile warnings due to char* to const char* changes. comedi_calibrate/calib.h comedi_calibrate/comedi_calibrate.c commit ff5181160159d2fe85b491e1867bcb575176e15b Author: Frank Mori Hess Date: 2006-11-28 14:07:24 +0000 Fixed some compile errors due to comedi_get_board_name() and comedi_get_driver_name() returning const char* comedi_soft_calibrate/comedi_wrapper.cpp commit 9a40f4c9b7390cfdff334c04a1a8259d579c3386 Author: Frank Mori Hess Date: 2006-11-02 02:07:44 +0000 Added some missing includes. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit d080dcc936dfaf2ed60cb0560933ecb8a6507d82 Author: Frank Mori Hess Date: 2006-10-16 16:54:04 +0000 New calibration results. comedi_calibrate/results/pxi-6713 commit 97a4b05b6bd74899b51dae10c128d3c2253ebccb Author: Frank Mori Hess Date: 2006-10-16 15:11:17 +0000 Calibration verified to work for pxi-6713 comedi_calibrate/comedi_calibrate.c comedi_calibrate/ni.c commit da52afa70def64159d0802f5a163bba6f6d444bc Author: Frank Mori Hess Date: 2006-10-16 14:50:56 +0000 Fixed possibility of excessive indentation. libcomedi_calibrate/save_cal.c commit 9df75e7829956fefc53b31329caf3816f47deb6b Author: Frank Mori Hess Date: 2006-10-13 22:01:59 +0000 Fixed segfaults in sci_sprint_alt seen with sv_order=1. comedi_calibrate/comedi_calibrate.c commit e644cf5ce7690783ef9c9d7eb9a7ebfa8b4b919f Author: Frank Mori Hess Date: 2006-10-13 20:40:29 +0000 Fixed passing of unitialized pointer to caldac_maxdata(). comedi_calibrate/comedi_calibrate.c commit a03abdc17e58656dcca3d7ba1b1f315ac87ff9a0 Author: Frank Mori Hess Date: 2006-10-13 19:20:53 +0000 Fixed ground reference sources to work with pxi-6281, and added some debug code so the calibration references of other boards can be quickly checked. comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 8f2759b19af7242fd6c52d62c5aac27435b64cdc Author: Frank Mori Hess Date: 2006-10-13 17:48:36 +0000 Added pcie-6259 and pxi-6281 to supportedDeviceNames comedi_soft_calibrate/ni_m_series_calibrator.cpp commit eefd08ec4cafe0dc6135984d129f3d876be6670d Author: Frank Mori Hess Date: 2006-08-28 22:46:07 +0000 Write double precision variables to config file in sufficient precision to guarantee no rounding losses. libcomedi_calibrate/save_cal.c commit 05bdda646a0533107631e3307b8c68da2e47383a Author: Frank Mori Hess Date: 2006-08-24 20:59:33 +0000 fixed indentation for softcal_from_phys section of calibration file, and added missing comma and newline. libcomedi_calibrate/save_cal.c commit cf25376b64766d3101c124a500e1e06502b0f4f0 Author: Frank Mori Hess Date: 2006-08-24 20:56:13 +0000 Added some missing commas to calibration file. libcomedi_calibrate/save_cal.c commit e68c1f1a78f867a5da5e6cf67f94541285112871 Author: Frank Mori Hess Date: 2006-08-24 20:53:22 +0000 Added a missing new line, and fixed a bad indent. libcomedi_calibrate/save_cal.c commit 3e7e616b38665e7a869388b9aedc492cf9697f4f Author: Frank Mori Hess Date: 2006-08-24 20:52:50 +0000 We want a new comedi_calibration_setting_t for each polynomial. comedi_soft_calibrate/comedi_soft_calibrate.cpp commit 9866d903227660337d99e0e867487fffa96bda9a Author: Frank Mori Hess Date: 2006-08-24 20:48:28 +0000 Check for error when writing calibration file. comedi_soft_calibrate/comedi_soft_calibrate.cpp commit f5c803167194d976b82aa7c5eda47b5ed9328263 Author: Frank Mori Hess Date: 2006-08-24 20:46:45 +0000 Properly zero entire comedi_calibration_t struct. comedi_soft_calibrate/comedi_soft_calibrate.cpp commit 123647ae69d9a0d11668e12215dce0e23af87853 Author: Frank Mori Hess Date: 2006-08-24 20:36:49 +0000 Fixed --help comannd line option. comedi_soft_calibrate/comedi_soft_calibrate.cpp commit 1b0abf9863cadb6dac195a945eb0d7959dcfa113 Author: Frank Mori Hess Date: 2006-08-24 20:21:41 +0000 Added support for writing soft calibration to file (untested). comedi_soft_calibrate/Makefile.am comedi_soft_calibrate/calibration_set.cpp comedi_soft_calibrate/calibration_set.hpp comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp libcomedi_calibrate/save_cal.c commit 7c63b84c99c6de02fa9828a947d23a3696eb8341 Author: Frank Mori Hess Date: 2006-08-24 14:26:31 +0000 Made write_calibration_setting() also write any soft calibrations present into the calibration file. libcomedi_calibrate/save_cal.c commit 53dc3151f1a4cebdaf8b9d52a89dacd44d197533 Author: Frank Mori Hess Date: 2006-08-24 13:54:43 +0000 Split some code out of comedi_calibrate into libcomedi_calibrate archive so I can use it in comedi_soft_calibrate. Got rid of caldac_t, replacing it with comedi_caldac_t and caldac_maxdata(). Makefile.am comedi_calibrate/Makefile.am comedi_calibrate/cal_common.c comedi_calibrate/calib.h comedi_calibrate/cb64.c comedi_calibrate/comedi_calibrate.c comedi_calibrate/ni.c comedi_calibrate/ni_labpc.c configure.ac libcomedi_calibrate/Makefile.am libcomedi_calibrate/comedi_calibrate_shared.h libcomedi_calibrate/save_cal.c commit 4aecc03da155ca593e9c2428c6b02928ce93e23c Author: Frank Mori Hess Date: 2006-08-17 19:19:31 +0000 Expand 1st order ao calibrations around zero. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 422ddaa14c34e1d59d46bb6bc25fb74a2e206af1 Author: Frank Mori Hess Date: 2006-08-17 19:13:45 +0000 analog output polynomials were supposed to map from voltages to codes. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 9709c325b20c4ab59a4062f1ea78763c3b2af783 Author: Frank Mori Hess Date: 2006-08-17 19:04:01 +0000 AO calibration seems to work, added a little more debug output during ao calibration. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 07dfa6b180577daf3022bbc72cc6d331a22bbe74 Author: Frank Mori Hess Date: 2006-08-17 18:53:27 +0000 Made sure we don't exceed 10V when trying to calibrate AO range which goes up to 15V. comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 839eb7cf9e59d02e73c8b89140022de573ce06e6 Author: Frank Mori Hess Date: 2006-08-17 18:36:26 +0000 Finished first pass at ao calibration (untested). comedi_soft_calibrate/Makefile.am comedi_soft_calibrate/calibration_set.cpp comedi_soft_calibrate/calibration_set.hpp comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit a3886581af9923248d2362febb768a413ca9c458 Author: Frank Mori Hess Date: 2006-08-17 13:26:04 +0000 Fixed fitting for ai nonlinearity calibration, which was inversed. Added beginnings of ao calibration. comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 8a541d0d015f762d73465224632fa6fbcfc42cf6 Author: Frank Mori Hess Date: 2006-08-16 17:44:55 +0000 Bumped up the number of samples to average from 10000 to 15000 just because we can. comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 3ca41da0d008550f281f5db3134ed59ee144683c Author: Frank Mori Hess Date: 2006-08-16 17:36:49 +0000 Tweak PWM period so it is not a multiple of the sampling period, to improve reading of average PWM output value. comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 702b3e194a055b91e865a48fd2d07c22046d91de Author: Frank Mori Hess Date: 2006-08-15 15:53:30 +0000 Fixed input range on readings with command. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 56f6ea9cfe7037c463411c55c05207fda62124bd Author: Frank Mori Hess Date: 2006-08-15 15:45:00 +0000 Make sure we have enough buffer space for the ai commands. comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 2077ca95153abcfb09d03d2854b784ac285cbb7e Author: Frank Mori Hess Date: 2006-08-15 14:56:42 +0000 Switch to using commands to read calibration sources. This is needed to get accurate enough readings for good calibration. Commands will provide more samples, and provide evenly spaced samples in time over an exact integer number of PWM periods. This will require some tweaking of the driver to read alt sources with commands. I haven't tested this with actual hardware yet. comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit d25936bd50dc24e6645a76c9ead32493247c2bca Author: Frank Mori Hess Date: 2006-08-14 20:40:30 +0000 Print out error in units of least significant bits. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 39319949af65f1ca9a24aeebd75611b96132cd32 Author: Frank Mori Hess Date: 2006-08-14 20:23:29 +0000 Fixed another place where I used 2V PWM output instead of 500mv. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 741aee4edd7efe47072d909969e5878b91526505 Author: Frank Mori Hess Date: 2006-08-14 20:15:48 +0000 Was using 2V pwm output when I meant to use 500mv. comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 4d95fc6862a4ba4aa4bc4e905571f4139254d5c8 Author: Frank Mori Hess Date: 2006-08-14 19:53:13 +0000 Added calibration for medium and high gain ai ranges (untested). comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit cd867bedb4ab4cdf947a2d5d1a9adda79ab2f3ac Author: Frank Mori Hess Date: 2006-08-11 19:36:39 +0000 A little more debugging output. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 6be22539d74a64c8e09e18f473426211d8f53fcb Author: Frank Mori Hess Date: 2006-08-11 19:34:36 +0000 Set pwm to 80% of ai range max when using it as a calibration reference. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp commit c4bb6a3b29a0faaae0515f811cd9f126141297dc Author: Frank Mori Hess Date: 2006-08-11 19:23:43 +0000 Fixed order of arguments passed to fitPolynomial for PWM calibration. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 9a1ddc243bf763d23a786dfbb6d5b97491d3234d Author: Frank Mori Hess Date: 2006-08-11 19:20:57 +0000 Fixed out-of-range vector access. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 98ef5195a16772c535aa6d42ab3568cac873e3fb Author: Frank Mori Hess Date: 2006-08-11 19:13:30 +0000 Added calibration of coarse AI ranges (+-2V and larger). comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 39f1719567d7179e3357b25bce37ccef430b87d0 Author: Frank Mori Hess Date: 2006-08-11 17:47:10 +0000 Made fitPolynomial support fitting to an arbitrary order polynomial. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp commit ad962cf97f1aba7cb75eb7a4ae1968500aef3546 Author: Frank Mori Hess Date: 2006-08-11 17:41:15 +0000 Fixed setting of reference in characterizePWM() comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 0faf54f43987831eb56247af8d1435f4fcabb806 Author: Frank Mori Hess Date: 2006-08-11 17:36:48 +0000 Added calibration of PWM, which will eventually be used to calibrate higher gain ranges. comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit c5fec80542a5318cc9e8d54ca574c8b275482027 Author: Frank Mori Hess Date: 2006-08-11 14:20:48 +0000 Function objects are fun. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit fa4dbdc48ebbc9c36b13eb4d65dfa06145913e2c Author: Frank Mori Hess Date: 2006-08-10 20:52:23 +0000 Added gain and offset calibration for low gain range. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit f7c0c8b0cd10fdad2951edc6595aa26a597488e0 Author: Frank Mori Hess Date: 2006-08-10 18:41:26 +0000 Added little Polynomial class. Split calibrateNonlinearity() out of main m-series calibration function. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit e708f6c7c341e288165a48d0532792a5495be70f Author: Frank Mori Hess Date: 2006-08-09 20:13:55 +0000 Fixed integer overflow. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 490f628f3d5fcaa7f4d77c0594d84164f262dd22 Author: Frank Mori Hess Date: 2006-08-09 20:07:53 +0000 Expand fit polynomial around center of range. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp commit b227a1419f2fcfb0d806c19a48a457a488ee72b8 Author: Frank Mori Hess Date: 2006-08-09 19:13:05 +0000 Added some code for reading voltage of onboard reference off eeprom. comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 23004eab9def6e04f13e07b80c764802f84fa617 Author: Frank Mori Hess Date: 2006-08-09 17:23:28 +0000 Added minimal C++ wrapper for comedi that throw exceptions on errors and closes comedi handle on destruction. Changed nonlinear calibration to work in units of lsampl_t instead of volts. comedi_soft_calibrate/Makefile.am comedi_soft_calibrate/calibrator.hpp comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/comedi_wrapper.cpp comedi_soft_calibrate/comedi_wrapper.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit bc12c3f2d25f51407ace888c96b025f02ab0a651 Author: Frank Mori Hess Date: 2006-08-08 18:43:40 +0000 Fixed dimensions of gsl matrix used in polynomial fitting. comedi_soft_calibrate/calibrator_misc.cpp commit a3dc847810b8bee8bf33e97537e6b4e5f2884739 Author: Frank Mori Hess Date: 2006-08-08 18:39:12 +0000 Added a little attempt to fit a polynomial to some measured values. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp comedi_soft_calibrate/ni_m_series_calibrator.cpp commit e3aed4b33cb497aefca3abaefbf9f8fe2898615d Author: Frank Mori Hess Date: 2006-08-08 15:45:44 +0000 Added new files. comedi_soft_calibrate/calibrator_misc.cpp comedi_soft_calibrate/calibrator_misc.hpp commit 05c113b0a61507494c46f71e4e95bd1e703e5af9 Author: Frank Mori Hess Date: 2006-08-08 15:44:30 +0000 Added some code for printing mean/std deviation and reading back actual pwm up/down periods to make sure there is no rounding. comedi_soft_calibrate/Makefile.am comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 885795d50983662c2190cbea37f66b06df2ca607 Author: Frank Mori Hess Date: 2006-08-08 14:49:42 +0000 Fixed INSN_CONFIG_PWM_OUTPUT instruction. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit fce963fe1524cd96dfb9613caa7eceb74688812c Author: Frank Mori Hess Date: 2006-08-07 20:13:05 +0000 Compile fix. comedi_soft_calibrate/ni_m_series_calibrator.cpp commit 8f6d5919fd1a2d30cd25df69fd67993837171190 Author: Frank Mori Hess Date: 2006-08-07 20:12:12 +0000 Added some preliminary code for reading pwm reference and dumping to stdout (untested). comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit ba8be2ea39adf822a8fe052d0554fe416ec0e874 Author: Frank Mori Hess Date: 2006-08-07 15:33:03 +0000 Removed unused ni_board() function. comedi_calibrate/ni_m_series.c commit ae40a5c50c15d613d396a0e1c0edf8107696aa83 Author: Frank Mori Hess Date: 2006-06-11 20:50:51 +0000 Patch from abbotti@mev.co.uk (Ian Abbott): The patch adds tests for libm in addition to the "boost" tests, as the test for libcomedi may fail otherwise. I cheated a bit in the test for libboost_program_options (and also libm) by checking for the 'main' function, but that seems to be a fairly common trick. Could check for a function that exists in libm (preferably one that returns 'int') instead of main. Testing for functions that exist in libboost_program_options is more difficult! The patch also adds -lm to the linker flags for comedi_soft_calibrate. comedi_soft_calibrate/Makefile.am configure.ac commit 7489d0d825d676206a398a20a3454b0cd9c42bb0 Author: Frank Mori Hess Date: 2006-05-02 01:33:41 +0000 Patch from blg@mast.queensu.ca (Ben Gardiner): I noticed this problem in build 0.7.21 while trying to fix "insecure RPATH" in a gentoo ebuild of the same version. The Makefile.am's all respect the use of DESTDIR during install (ref: http://sourceware.org/autobook/autobook/autobook_107.html#SEC107 ), except the target install-data-local: in comedi_calibrate/Makefile.am. comedi_calibrate/Makefile.am commit c9b91c84ce429dfbd27ab6e73a037d1f4173d627 Author: Frank Mori Hess Date: 2006-03-06 02:41:03 +0000 Added a little function for setting calibration PWM output. comedi_soft_calibrate/calibrator.hpp comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 2281f53792ff3395ba4ac1717214809c8a60a3ab Author: Frank Mori Hess Date: 2006-03-06 01:01:03 +0000 Made it easier to have multiple calibrators that handle different devices from the same kernel driver. comedi_soft_calibrate/calibrator.hpp comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit 9325555f1eddb97f0122f9450687470fab6a310c Author: Frank Mori Hess Date: 2006-02-26 23:35:38 +0000 Added some support for command line options to comedi_soft_calibrate. comedi_soft_calibrate/Makefile.am comedi_soft_calibrate/calibration_set.hpp comedi_soft_calibrate/calibrator.hpp comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp commit dcd9478e34e8dedabaf1a1da34b95ef2b3ed66e8 Author: Frank Mori Hess Date: 2006-02-20 23:13:37 +0000 Added beginnings of comedi_soft_calibrate. COPYING Makefile.am comedi_calibrate/Makefile.am comedi_soft_calibrate/Makefile.am comedi_soft_calibrate/calibration_set.hpp comedi_soft_calibrate/calibrator.hpp comedi_soft_calibrate/comedi_soft_calibrate.cpp comedi_soft_calibrate/ni_m_series_calibrator.cpp comedi_soft_calibrate/ni_m_series_calibrator.hpp configure.ac commit c863123a7ba2ed6f9115b833c64627a2569346c7 Author: Frank Mori Hess Date: 2006-02-05 20:53:19 +0000 Initial revision AUTHORS COPYING ChangeLog INSTALL Makefile.am NEWS README autogen.sh comedi_calibrate/Makefile.am comedi_calibrate/README comedi_calibrate/cal_common.c comedi_calibrate/calib.h comedi_calibrate/cb.c comedi_calibrate/cb64.c comedi_calibrate/comedi_calibrate.c comedi_calibrate/ni.c comedi_calibrate/ni_labpc.c comedi_calibrate/ni_m_series.c comedi_calibrate/other.c comedi_calibrate/results/DAQCard-6024E comedi_calibrate/results/DAQCard-6036E comedi_calibrate/results/DAQCard-6062E comedi_calibrate/results/DAQCard-ai-16e-4 comedi_calibrate/results/DAQCard-ai-16xe-50 comedi_calibrate/results/at-mio-16de-10 comedi_calibrate/results/at-mio-16e-1 comedi_calibrate/results/at-mio-16e-10 comedi_calibrate/results/at-mio-16e-2 comedi_calibrate/results/at-mio-16xe-50 comedi_calibrate/results/measurement-computing-pci-das1000 comedi_calibrate/results/measurement-computing-pci-das1602-16 comedi_calibrate/results/measurement-computing-pci-das6014 comedi_calibrate/results/measurement-computing-pci-das6025 comedi_calibrate/results/measurement-computing-pci-das6034 comedi_calibrate/results/pci-6014 comedi_calibrate/results/pci-6023e comedi_calibrate/results/pci-6024e comedi_calibrate/results/pci-6025e comedi_calibrate/results/pci-6031e comedi_calibrate/results/pci-6032e comedi_calibrate/results/pci-6033e comedi_calibrate/results/pci-6034e comedi_calibrate/results/pci-6035e comedi_calibrate/results/pci-6036e comedi_calibrate/results/pci-6052e comedi_calibrate/results/pci-6071e comedi_calibrate/results/pci-6110 comedi_calibrate/results/pci-6711 comedi_calibrate/results/pci-6713 comedi_calibrate/results/pci-mio-16e-1 comedi_calibrate/results/pci-mio-16e-4 comedi_calibrate/results/pci-mio-16xe-10 comedi_calibrate/results/pci-mio-16xe-50 comedi_calibrate/save_cal.c comedi_calibrate/split_dumps configure.ac comedi_calibrate-5/depcomp0000755000000000000000000005601612726246326012754 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: comedi_calibrate-5/comedi_soft_calibrate/0000755000000000000000000000000013062555662015750 500000000000000comedi_calibrate-5/comedi_soft_calibrate/Makefile.am0000644000000000000000000000105212416542124017711 00000000000000 bin_PROGRAMS = comedi_soft_calibrate comedi_soft_calibrate_SOURCES = \ comedi_soft_calibrate.cpp calibrator.hpp ni_m_series_calibrator.cpp ni_m_series_calibrator.hpp \ calibrator_misc.hpp calibrator_misc.cpp calibration_set.cpp calibration_set.hpp comedi_soft_calibrate_CXXFLAGS = $(COMEDI_CALIBRATE_CFLAGS) comedi_soft_calibrate_LDADD = ../libcomedi_calibrate/libcomedi_calibrate.a \ -lcomedi -lboost_program_options -lgsl -lgslcblas -lm install-data-local: $(INSTALL) -d $(DESTDIR)$(localstatedir)/lib/comedi/calibrations EXTRA_DIST = results comedi_calibrate-5/comedi_soft_calibrate/calibrator_misc.hpp0000644000000000000000000000255212416542124021531 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _CALIBRATOR_MISC_HPP #define _CALIBRATOR_MISC_HPP #include double estimateMean(const std::vector &samples); double estimateStandardDeviation(const std::vector &samples, double mean); double estimateStandardDeviationOfMean(const std::vector &samples, double mean); std::vector fitPolynomial(const std::vector &x, const std::vector &y, double expansionOrigin, unsigned order); class Polynomial { public: Polynomial(); double operator()(double input) const; unsigned order() const; std::vector coefficients; double expansionOrigin; private: }; void printPolynomial(const Polynomial &polynomial); #endif // _CALIBRATOR_MISC_HPP comedi_calibrate-5/comedi_soft_calibrate/calibrator_misc.cpp0000644000000000000000000000700512416542124021522 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "calibrator_misc.hpp" #include #include #include #include #include #include #include #include double estimateMean(const std::vector &samples) { return gsl_stats_mean(&samples.at(0), 1, samples.size()); } double estimateStandardDeviation(const std::vector &samples, double mean) { double value = gsl_stats_variance_m(&samples.at(0), 1, samples.size(), mean); return std::sqrt(value); } double estimateStandardDeviationOfMean(const std::vector &samples, double mean) { double value = gsl_stats_variance_m(&samples.at(0), 1, samples.size(), mean); return std::sqrt(value / samples.size()); } // returns polynomial coefficients for polynomial fit to data y = f(x) std::vector fitPolynomial(const std::vector &x, const std::vector &y, double expansionOrigin, unsigned order) { const int NUM_COEFFICIENTS = order + 1; if(x.size() != y.size()) { std::ostringstream message; message << __FUNCTION__ << ": x and y sizes are different.\n"; throw std::invalid_argument(message.str()); } gsl_matrix *covariance = gsl_matrix_alloc(NUM_COEFFICIENTS, NUM_COEFFICIENTS); gsl_multifit_linear_workspace *work = gsl_multifit_linear_alloc(x.size(), NUM_COEFFICIENTS); double chisq; gsl_matrix *m = gsl_matrix_alloc(x.size(), NUM_COEFFICIENTS); unsigned i; for(i = 0; i < x.size(); ++i) { gsl_matrix_set(m, i, 0, 1.); int j; for(j = 1; j < NUM_COEFFICIENTS; ++j) { gsl_matrix_set(m, i, j, gsl_matrix_get(m, i, j - 1) * (x.at(i) - expansionOrigin)); } } gsl_vector_const_view b = gsl_vector_const_view_array(&y.at(0), y.size()); std::vector coefficients(NUM_COEFFICIENTS); gsl_vector_view result = gsl_vector_view_array(&coefficients.at(0), NUM_COEFFICIENTS); gsl_multifit_linear(m, &b.vector, &result.vector, covariance, &chisq, work); gsl_matrix_free(m); gsl_matrix_free(covariance); gsl_multifit_linear_free(work); return coefficients; } Polynomial::Polynomial(): expansionOrigin(0.) {} double Polynomial::operator()(double input) const { double value = 0.; double term = 1.; unsigned i; for(i = 0; i < coefficients.size(); ++i) { value += coefficients.at(i) * term; term *= input - expansionOrigin; } return value; } unsigned Polynomial::order() const { if(coefficients.size() < 1) throw std::invalid_argument(__FUNCTION__); return coefficients.size() - 1; } void printPolynomial(const Polynomial &polynomial) { std::cout << "Polynomial:\n"; std::cout << "\torder = " << polynomial.order() << "\n"; std::cout << "\texpansion origin = " << polynomial.expansionOrigin << "\n"; unsigned j; for(j = 0; j < polynomial.coefficients.size(); ++j) std::cout << "\torder " << j << " coefficient = " << polynomial.coefficients.at(j) << "\n"; std::cout << std::flush; } comedi_calibrate-5/comedi_soft_calibrate/calibration_set.cpp0000644000000000000000000000462012416542124021527 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "calibration_set.hpp" #include #include #include #include #include #include // SubdeviceCalibration const Polynomial& SubdeviceCalibration::polynomial(unsigned channel, unsigned range) const { std::pair channelRange; channelRange.first = channel; channelRange.second = range; std::map, Polynomial>::const_iterator it = std::find_if(_polynomials.begin(), _polynomials.end(), boost::bind(&SubdeviceCalibration::channelRangeMatch, channel, range, _1)); if(it == _polynomials.end()) { std::ostringstream message; message << __FUNCTION__ << ": failed to find calibration polynomial for channel " << channel << ", range " << range << " .\n"; throw std::invalid_argument(message.str()); } return it->second; } void SubdeviceCalibration::insertPolynomial(const Polynomial &polynomial, unsigned channel, unsigned range) { std::pair channelRange; channelRange.first = channel; channelRange.second = range; _polynomials[channelRange] = polynomial; }; // private functions bool SubdeviceCalibration::channelRangeMatch(unsigned channel, unsigned range, const std::pair, Polynomial> &calibration) { std::pair channelRange1; channelRange1.first = channel; channelRange1.second = range; const std::pair &channelRange2 = calibration.first; if(channelRange1.first == channelRange2.first || channelRange1.first == allChannels || channelRange2.first == allChannels) { if(channelRange1.second == channelRange2.second || channelRange1.second == allRanges || channelRange2.second == allRanges) { return true; } } return false; } comedi_calibrate-5/comedi_soft_calibrate/calibration_set.hpp0000644000000000000000000000366312416542124021542 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _CALIBRATION_SET_HPP #define _CALIBRATION_SET_HPP #include "calibrator_misc.hpp" #include #include #include #include class SubdeviceCalibration { public: SubdeviceCalibration(bool toPhys = true): _toPhys(toPhys) {} static const unsigned allChannels = static_cast(-1); static const unsigned allRanges = static_cast(-1); const Polynomial& polynomial(unsigned channel = allChannels, unsigned range = allRanges) const; void insertPolynomial(const Polynomial &polynomial, unsigned channel = allChannels, unsigned range = allRanges); bool toPhys() const {return _toPhys;} const std::map, Polynomial>& polynomials() const {return _polynomials;} private: /* channelRangeMatch is passed to std::find so we can find * a matching calibration, taking into account the possibility * of allChannels and allRanges */ static bool channelRangeMatch(unsigned channel, unsigned range, const std::pair, Polynomial> &calibration); std::map, Polynomial> _polynomials; bool _toPhys; }; /* A complete set of calibration coefficients for a device */ typedef std::map CalibrationSet; #endif // _CALIBRATION_SET_HPP comedi_calibrate-5/comedi_soft_calibrate/Makefile.in0000644000000000000000000007106413062555271017741 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = comedi_soft_calibrate$(EXEEXT) subdir = comedi_soft_calibrate ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_comedi_soft_calibrate_OBJECTS = \ comedi_soft_calibrate-comedi_soft_calibrate.$(OBJEXT) \ comedi_soft_calibrate-ni_m_series_calibrator.$(OBJEXT) \ comedi_soft_calibrate-calibrator_misc.$(OBJEXT) \ comedi_soft_calibrate-calibration_set.$(OBJEXT) comedi_soft_calibrate_OBJECTS = $(am_comedi_soft_calibrate_OBJECTS) comedi_soft_calibrate_DEPENDENCIES = \ ../libcomedi_calibrate/libcomedi_calibrate.a comedi_soft_calibrate_LINK = $(CXXLD) \ $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(comedi_soft_calibrate_SOURCES) DIST_SOURCES = $(comedi_soft_calibrate_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COMEDI_CALIBRATE_CFLAGS = @COMEDI_CALIBRATE_CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ comedi_soft_calibrate_SOURCES = \ comedi_soft_calibrate.cpp calibrator.hpp ni_m_series_calibrator.cpp ni_m_series_calibrator.hpp \ calibrator_misc.hpp calibrator_misc.cpp calibration_set.cpp calibration_set.hpp comedi_soft_calibrate_CXXFLAGS = $(COMEDI_CALIBRATE_CFLAGS) comedi_soft_calibrate_LDADD = ../libcomedi_calibrate/libcomedi_calibrate.a \ -lcomedi -lboost_program_options -lgsl -lgslcblas -lm EXTRA_DIST = results all: all-am .SUFFIXES: .SUFFIXES: .cpp .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu comedi_soft_calibrate/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu comedi_soft_calibrate/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) comedi_soft_calibrate$(EXEEXT): $(comedi_soft_calibrate_OBJECTS) $(comedi_soft_calibrate_DEPENDENCIES) $(EXTRA_comedi_soft_calibrate_DEPENDENCIES) @rm -f comedi_soft_calibrate$(EXEEXT) $(AM_V_CXXLD)$(comedi_soft_calibrate_LINK) $(comedi_soft_calibrate_OBJECTS) $(comedi_soft_calibrate_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_soft_calibrate-calibration_set.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_soft_calibrate-calibrator_misc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_soft_calibrate-comedi_soft_calibrate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comedi_soft_calibrate-ni_m_series_calibrator.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` comedi_soft_calibrate-comedi_soft_calibrate.o: comedi_soft_calibrate.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-comedi_soft_calibrate.o -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-comedi_soft_calibrate.Tpo -c -o comedi_soft_calibrate-comedi_soft_calibrate.o `test -f 'comedi_soft_calibrate.cpp' || echo '$(srcdir)/'`comedi_soft_calibrate.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-comedi_soft_calibrate.Tpo $(DEPDIR)/comedi_soft_calibrate-comedi_soft_calibrate.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='comedi_soft_calibrate.cpp' object='comedi_soft_calibrate-comedi_soft_calibrate.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-comedi_soft_calibrate.o `test -f 'comedi_soft_calibrate.cpp' || echo '$(srcdir)/'`comedi_soft_calibrate.cpp comedi_soft_calibrate-comedi_soft_calibrate.obj: comedi_soft_calibrate.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-comedi_soft_calibrate.obj -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-comedi_soft_calibrate.Tpo -c -o comedi_soft_calibrate-comedi_soft_calibrate.obj `if test -f 'comedi_soft_calibrate.cpp'; then $(CYGPATH_W) 'comedi_soft_calibrate.cpp'; else $(CYGPATH_W) '$(srcdir)/comedi_soft_calibrate.cpp'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-comedi_soft_calibrate.Tpo $(DEPDIR)/comedi_soft_calibrate-comedi_soft_calibrate.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='comedi_soft_calibrate.cpp' object='comedi_soft_calibrate-comedi_soft_calibrate.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-comedi_soft_calibrate.obj `if test -f 'comedi_soft_calibrate.cpp'; then $(CYGPATH_W) 'comedi_soft_calibrate.cpp'; else $(CYGPATH_W) '$(srcdir)/comedi_soft_calibrate.cpp'; fi` comedi_soft_calibrate-ni_m_series_calibrator.o: ni_m_series_calibrator.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-ni_m_series_calibrator.o -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-ni_m_series_calibrator.Tpo -c -o comedi_soft_calibrate-ni_m_series_calibrator.o `test -f 'ni_m_series_calibrator.cpp' || echo '$(srcdir)/'`ni_m_series_calibrator.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-ni_m_series_calibrator.Tpo $(DEPDIR)/comedi_soft_calibrate-ni_m_series_calibrator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ni_m_series_calibrator.cpp' object='comedi_soft_calibrate-ni_m_series_calibrator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-ni_m_series_calibrator.o `test -f 'ni_m_series_calibrator.cpp' || echo '$(srcdir)/'`ni_m_series_calibrator.cpp comedi_soft_calibrate-ni_m_series_calibrator.obj: ni_m_series_calibrator.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-ni_m_series_calibrator.obj -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-ni_m_series_calibrator.Tpo -c -o comedi_soft_calibrate-ni_m_series_calibrator.obj `if test -f 'ni_m_series_calibrator.cpp'; then $(CYGPATH_W) 'ni_m_series_calibrator.cpp'; else $(CYGPATH_W) '$(srcdir)/ni_m_series_calibrator.cpp'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-ni_m_series_calibrator.Tpo $(DEPDIR)/comedi_soft_calibrate-ni_m_series_calibrator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ni_m_series_calibrator.cpp' object='comedi_soft_calibrate-ni_m_series_calibrator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-ni_m_series_calibrator.obj `if test -f 'ni_m_series_calibrator.cpp'; then $(CYGPATH_W) 'ni_m_series_calibrator.cpp'; else $(CYGPATH_W) '$(srcdir)/ni_m_series_calibrator.cpp'; fi` comedi_soft_calibrate-calibrator_misc.o: calibrator_misc.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-calibrator_misc.o -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-calibrator_misc.Tpo -c -o comedi_soft_calibrate-calibrator_misc.o `test -f 'calibrator_misc.cpp' || echo '$(srcdir)/'`calibrator_misc.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-calibrator_misc.Tpo $(DEPDIR)/comedi_soft_calibrate-calibrator_misc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='calibrator_misc.cpp' object='comedi_soft_calibrate-calibrator_misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-calibrator_misc.o `test -f 'calibrator_misc.cpp' || echo '$(srcdir)/'`calibrator_misc.cpp comedi_soft_calibrate-calibrator_misc.obj: calibrator_misc.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-calibrator_misc.obj -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-calibrator_misc.Tpo -c -o comedi_soft_calibrate-calibrator_misc.obj `if test -f 'calibrator_misc.cpp'; then $(CYGPATH_W) 'calibrator_misc.cpp'; else $(CYGPATH_W) '$(srcdir)/calibrator_misc.cpp'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-calibrator_misc.Tpo $(DEPDIR)/comedi_soft_calibrate-calibrator_misc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='calibrator_misc.cpp' object='comedi_soft_calibrate-calibrator_misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-calibrator_misc.obj `if test -f 'calibrator_misc.cpp'; then $(CYGPATH_W) 'calibrator_misc.cpp'; else $(CYGPATH_W) '$(srcdir)/calibrator_misc.cpp'; fi` comedi_soft_calibrate-calibration_set.o: calibration_set.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-calibration_set.o -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-calibration_set.Tpo -c -o comedi_soft_calibrate-calibration_set.o `test -f 'calibration_set.cpp' || echo '$(srcdir)/'`calibration_set.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-calibration_set.Tpo $(DEPDIR)/comedi_soft_calibrate-calibration_set.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='calibration_set.cpp' object='comedi_soft_calibrate-calibration_set.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-calibration_set.o `test -f 'calibration_set.cpp' || echo '$(srcdir)/'`calibration_set.cpp comedi_soft_calibrate-calibration_set.obj: calibration_set.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -MT comedi_soft_calibrate-calibration_set.obj -MD -MP -MF $(DEPDIR)/comedi_soft_calibrate-calibration_set.Tpo -c -o comedi_soft_calibrate-calibration_set.obj `if test -f 'calibration_set.cpp'; then $(CYGPATH_W) 'calibration_set.cpp'; else $(CYGPATH_W) '$(srcdir)/calibration_set.cpp'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/comedi_soft_calibrate-calibration_set.Tpo $(DEPDIR)/comedi_soft_calibrate-calibration_set.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='calibration_set.cpp' object='comedi_soft_calibrate-calibration_set.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(comedi_soft_calibrate_CXXFLAGS) $(CXXFLAGS) -c -o comedi_soft_calibrate-calibration_set.obj `if test -f 'calibration_set.cpp'; then $(CYGPATH_W) 'calibration_set.cpp'; else $(CYGPATH_W) '$(srcdir)/calibration_set.cpp'; fi` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-data-local install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS .PRECIOUS: Makefile install-data-local: $(INSTALL) -d $(DESTDIR)$(localstatedir)/lib/comedi/calibrations # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: comedi_calibrate-5/comedi_soft_calibrate/ni_m_series_calibrator.cpp0000644000000000000000000007057413062550746023105 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "ni_m_series_calibrator.hpp" #include #include "calibrator_misc.hpp" #include #include #include #include #include #include #include #include #include #include #include #include #include NIMSeries::Calibrator::Calibrator(): ::Calibrator() { } std::vector NIMSeries::Calibrator::supportedDeviceNames() const { std::vector supportedDeviceNames; supportedDeviceNames.push_back("pci-6220"); supportedDeviceNames.push_back("pxi-6220"); supportedDeviceNames.push_back("pci-6221"); supportedDeviceNames.push_back("pci-6221_37pin"); supportedDeviceNames.push_back("pxi-6221"); supportedDeviceNames.push_back("pci-6224"); supportedDeviceNames.push_back("pxi-6224"); supportedDeviceNames.push_back("pci-6225"); supportedDeviceNames.push_back("pxi-6225"); supportedDeviceNames.push_back("pci-6229"); supportedDeviceNames.push_back("pxi-6229"); supportedDeviceNames.push_back("pci-6250"); supportedDeviceNames.push_back("pxi-6250"); supportedDeviceNames.push_back("pci-6251"); supportedDeviceNames.push_back("pxi-6251"); supportedDeviceNames.push_back("pcie-6251"); supportedDeviceNames.push_back("pxie-6251"); supportedDeviceNames.push_back("pci-6254"); supportedDeviceNames.push_back("pxi-6254"); supportedDeviceNames.push_back("pci-6259"); supportedDeviceNames.push_back("pxi-6259"); supportedDeviceNames.push_back("pcie-6259"); supportedDeviceNames.push_back("pxie-6259"); supportedDeviceNames.push_back("pci-6280"); supportedDeviceNames.push_back("pxi-6280"); supportedDeviceNames.push_back("pci-6281"); supportedDeviceNames.push_back("pxi-6281"); supportedDeviceNames.push_back("pci-6284"); supportedDeviceNames.push_back("pxi-6284"); supportedDeviceNames.push_back("pci-6289"); supportedDeviceNames.push_back("pxi-6289"); return supportedDeviceNames; } CalibrationSet NIMSeries::Calibrator::calibrate(const comedi::device &dev) { _dev = dev; _references.reset(new NIMSeries::References(_dev)); CalibrationSet calibration; comedi::subdevice AISubdevice = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); calibration[AISubdevice.index()] = calibrateAISubdevice(); try { comedi::subdevice AOSubdevice = _dev.find_subdevice_by_type(COMEDI_SUBD_AO); calibration[AOSubdevice.index()] = calibrateAOSubdevice(calibration[AISubdevice.index()]); } catch(const std::exception &error) { std::cout << "NOTICE: " << _dev.board_name() << " does not appear to have an analog output subdevice." << std::endl; std::cout << "NOTICE: Skipping the analog output calibration." << std::endl; } return calibration; } // Private functions /* try reading various calibration sources and see what they look like, helpful for debugging new board models */ void NIMSeries::Calibrator::dumpAICalibrationSources() { unsigned posRefSource, negRefSource; static const unsigned maxRefSource = 7; for(posRefSource = 0; posRefSource <= maxRefSource; ++posRefSource) { for(negRefSource = 0; negRefSource <= maxRefSource; ++negRefSource) { std::cout << "trying positive reference " << posRefSource << ", negative reference " << negRefSource << std::endl; _references->setReference(static_cast(posRefSource << References::positive_cal_shift), static_cast(negRefSource << References::negative_cal_shift)); std::cout << "pwm set high" << std::endl; _references->setPWM(1000, 0); std::vector readings = _references->readReferenceDouble(numSamples, _references->getMinSamplePeriodNanosec(), 0, settleNanosec); double mean = estimateMean(readings); std::cout << "estimate of mean = " << mean << "\n"; std::cout << "estimate of standard deviation = " << estimateStandardDeviation(readings, mean) << "\n"; std::cout << "estimate of standard deviation of mean = " << estimateStandardDeviationOfMean(readings, mean) << "\n"; std::cout << "pwm set low" << std::endl; _references->setPWM(0, 1000); readings = _references->readReferenceDouble(numSamples, _references->getMinSamplePeriodNanosec(), 0, settleNanosec); mean = estimateMean(readings); std::cout << "estimate of mean = " << mean << "\n"; std::cout << "estimate of standard deviation = " << estimateStandardDeviation(readings, mean) << "\n"; std::cout << "estimate of standard deviation of mean = " << estimateStandardDeviationOfMean(readings, mean) << "\n"; std::cout << "\n"; } } abort(); } const SubdeviceCalibration NIMSeries::Calibrator::calibrateAISubdevice() { checkAIBufferSize(); // dumpAICalibrationSources(); std::map PWMCharacterization = characterizePWM(NIMSeries::References::POS_CAL_PWM_10V, baseRange); Polynomial nonlinearityCorrection = calibrateAINonlinearity(PWMCharacterization); comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); const unsigned numAIRanges = ADSubdev.n_ranges(); SubdeviceCalibration AICalibration(true); std::vector calibrated(numAIRanges, false); std::cout << "calibrating base range " << baseRange << " ..." << std::endl; AICalibration.insertPolynomial(calibrateAIBaseRange(nonlinearityCorrection), SubdeviceCalibration::allChannels, baseRange); calibrated.at(baseRange) = true; std::cout << "done." << std::endl; Polynomial PWMCalibration = calibratePWM(PWMCharacterization, AICalibration.polynomial(0, baseRange)); // calibrate low-gain ranges const double largeRangeThreshold = 1.99; calibrateAIRangesAboveThreshold(PWMCalibration, nonlinearityCorrection, NIMSeries::References::POS_CAL_PWM_10V, &AICalibration, &calibrated, largeRangeThreshold); // calibrate medium-gain ranges unsigned range = smallestCalibratedAIRangeContaining(calibrated, largeRangeThreshold); assert(calibrated.at(range) == true); PWMCharacterization = characterizePWM(NIMSeries::References::POS_CAL_PWM_2V, range); PWMCalibration = calibratePWM(PWMCharacterization, AICalibration.polynomial(0, range)); const double mediumRangeThreshold = 0.499; calibrateAIRangesAboveThreshold(PWMCalibration, nonlinearityCorrection, NIMSeries::References::POS_CAL_PWM_2V, &AICalibration, &calibrated, mediumRangeThreshold); // calibrate high-gain ranges range = smallestCalibratedAIRangeContaining(calibrated, mediumRangeThreshold); assert(calibrated.at(range) == true); PWMCharacterization = characterizePWM(NIMSeries::References::POS_CAL_PWM_500mV, range); PWMCalibration = calibratePWM(PWMCharacterization, AICalibration.polynomial(0, range)); calibrateAIRangesAboveThreshold(PWMCalibration, nonlinearityCorrection, NIMSeries::References::POS_CAL_PWM_500mV, &AICalibration, &calibrated, 0.); return AICalibration; } Polynomial NIMSeries::Calibrator::calibrateAINonlinearity(const std::map &PWMCharacterization) { lsampl_t maxData = _dev.find_subdevice_by_type(COMEDI_SUBD_AI).max_data(); std::map::const_iterator it; std::vector nominalCodes; std::vector measuredCodes; for(it = PWMCharacterization.begin(); it != PWMCharacterization.end() ; ++it) { const unsigned upTicks = it->first; const unsigned downTicks = PWMPeriodTicks() - upTicks; nominalCodes.push_back((0. * upTicks + static_cast(maxData) * downTicks) / PWMPeriodTicks()); measuredCodes.push_back(it->second); } Polynomial fit; fit.expansionOrigin = maxData / 2; fit.coefficients = fitPolynomial(nominalCodes, measuredCodes, fit.expansionOrigin, 3); printPolynomial(fit); return fit; } Polynomial NIMSeries::Calibrator::calibrateAIBaseRange(const Polynomial &nonlinearityCorrection) { NIMSeries::EEPROM eeprom(_dev); const double referenceVoltage = eeprom.referenceVoltage(); Polynomial fullCorrection = calibrateAIGainAndOffset(nonlinearityCorrection, References::POS_CAL_REF, referenceVoltage, baseRange); return fullCorrection; } Polynomial NIMSeries::Calibrator::calibrateAIRange(const Polynomial &PWMCalibration, const Polynomial &nonlinearityCorrection, enum NIMSeries::References::PositiveCalSource posSource, unsigned range) { assert(PWMCalibration.order() == 1); Polynomial inversePWMCalibration; inversePWMCalibration.expansionOrigin = PWMCalibration.coefficients.at(0); inversePWMCalibration.coefficients.resize(2); inversePWMCalibration.coefficients.at(0) = PWMCalibration.expansionOrigin; inversePWMCalibration.coefficients.at(1) = 1. / PWMCalibration.coefficients.at(1); comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); const comedi_range *cRange = ADSubdev.range(0, range); unsigned upTicks = lrint(inversePWMCalibration(cRange->max * 0.9)); if(upTicks + minimumPWMPulseTicks > PWMPeriodTicks()) upTicks = PWMPeriodTicks() - minimumPWMPulseTicks; setPWMUpTicks(upTicks); const double referenceVoltage = PWMCalibration(upTicks); Polynomial fullCorrection = calibrateAIGainAndOffset(nonlinearityCorrection, posSource, referenceVoltage, range); return fullCorrection; } std::map NIMSeries::Calibrator::characterizePWM(enum NIMSeries::References::PositiveCalSource posReferenceSource, unsigned ADRange) { _references->setReference(posReferenceSource, NIMSeries::References::NEG_CAL_GROUND); std::map results; const unsigned numCalibrationPoints = TargetPWMPeriodTicks / minimumPWMPulseTicks - 1; unsigned i; for(i = 1; i <= numCalibrationPoints ; ++i) { /* For 6289, results become nonlinear if upPeriod or downPeriod ever drops below about 1 usec. Also, the PWM output is not linear unless you keep (upPeriod + downPeriod) constant. */ const unsigned upTicks = minimumPWMPulseTicks * i; setPWMUpTicks(upTicks); std::vector readings = _references->readReferenceDouble(PWMRoundedNumSamples(numSamples, _references->getMinSamplePeriodNanosec()), _references->getMinSamplePeriodNanosec(), ADRange, settleNanosec); std::cout << "i = " << i << "\n"; double mean = estimateMean(readings); std::cout << "\testimate of mean = " << mean << "\n"; std::cout << "\testimate of standard deviation = " << estimateStandardDeviation(readings, mean) << "\n"; std::cout << "\testimate of standard deviation of mean = " << estimateStandardDeviationOfMean(readings, mean) << "\n"; results[upTicks] = mean; } return results; }; Polynomial NIMSeries::Calibrator::calibratePWM(const std::map &PWMCharacterization, const Polynomial &ADRangeCalibration) { std::map::const_iterator it; std::vector upTicks; std::vector measuredVoltages; for(it = PWMCharacterization.begin(); it != PWMCharacterization.end() ; ++it) { upTicks.push_back(it->first); measuredVoltages.push_back(ADRangeCalibration(it->second)); } Polynomial fit; fit.expansionOrigin = PWMPeriodTicks() / 2; fit.coefficients = fitPolynomial(upTicks, measuredVoltages, fit.expansionOrigin, 1); std::cout << "sanity check:\n"; const double approxVoltsPerBit = ADRangeCalibration(1) - ADRangeCalibration(0); for(it = PWMCharacterization.begin(); it != PWMCharacterization.end() ; ++it) { const double PWMCal = fit(it->first); const double ADRangeCal = ADRangeCalibration(it->second); const double LSBError = (ADRangeCal - PWMCal) / approxVoltsPerBit; std::cout << "upTicks=" << it->first << " code=" << it->second << " PWMCal=" << PWMCal << " ADRangeCal=" << ADRangeCal << " LSBError=" << LSBError << std::endl; } return fit; } void NIMSeries::Calibrator::setPWMUpTicks(unsigned upTicks) { const unsigned upPeriod = upTicks * masterClockPeriodNanosec; const unsigned downPeriod = (PWMPeriodTicks() - upTicks) * masterClockPeriodNanosec; unsigned actualUpPeriod, actualDownPeriod; _references->setPWM(upPeriod, downPeriod, &actualUpPeriod, &actualDownPeriod); assert(upPeriod == actualUpPeriod && downPeriod == actualDownPeriod); } Polynomial NIMSeries::Calibrator::calibrateAIGainAndOffset(const Polynomial &nonlinearityCorrection, enum NIMSeries::References::PositiveCalSource posReferenceSource, double referenceVoltage, unsigned range) { _references->setReference(References::POS_CAL_GROUND, References::NEG_CAL_GROUND); std::vector readings = _references->readReferenceDouble( PWMRoundedNumSamples(numSamples, _references->getMinSamplePeriodNanosec()), _references->getMinSamplePeriodNanosec(), range, settleNanosec); const double measuredGroundCode = estimateMean(readings); const double linearizedGroundCode = nonlinearityCorrection(measuredGroundCode); _references->setReference(posReferenceSource, References::NEG_CAL_GROUND); readings = _references->readReferenceDouble( PWMRoundedNumSamples(numSamples, _references->getMinSamplePeriodNanosec()), _references->getMinSamplePeriodNanosec(), range, settleNanosec); const double measuredReferenceCode = estimateMean(readings); const double linearizedReferenceCode = nonlinearityCorrection(measuredReferenceCode); const double gain = referenceVoltage / (linearizedReferenceCode - linearizedGroundCode); Polynomial fullCorrection = nonlinearityCorrection; unsigned i; for(i = 0; i < fullCorrection.coefficients.size(); ++i) { fullCorrection.coefficients.at(i) *= gain; } const double offset = fullCorrection(measuredGroundCode); fullCorrection.coefficients.at(0) -= offset; std::cout << "referenceVoltage=" << referenceVoltage << std::endl; std::cout << "measuredGroundCode=" << measuredGroundCode << " linearizedGroundCode=" << linearizedGroundCode << std::endl; std::cout << "measuredReferenceCode=" << measuredReferenceCode << " linearizedReferenceCode=" << linearizedReferenceCode << std::endl; std::cout << "fullCorrection(measuredGroundCode)=" << fullCorrection(measuredGroundCode) << std::endl; std::cout << "fullCorrection(measuredReferenceCode)=" << fullCorrection(measuredReferenceCode) << std::endl; printPolynomial(fullCorrection); return fullCorrection; } unsigned NIMSeries::Calibrator::smallestCalibratedAIRangeContaining(const std::vector &calibrated, double rangeThreshold) { comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); const unsigned numAIRanges = ADSubdev.n_ranges(); unsigned i; const comedi_range *smallestCRange = 0; unsigned smallestRange = 0; for(i = 0; i < numAIRanges; ++i) { if(calibrated.at(i) == false) continue; const comedi_range *cRange = ADSubdev.range(0, i); if(cRange->max > rangeThreshold && (smallestCRange == 0 || cRange->max < smallestCRange->max)) { smallestRange = i; smallestCRange = cRange; } } if(smallestCRange == 0) { std::ostringstream message; message << __FUNCTION__ << ": no calibrated range with maxium voltage above " << rangeThreshold << "V found."; throw std::invalid_argument(message.str()); } return smallestRange; } void NIMSeries::Calibrator::calibrateAIRangesAboveThreshold(const Polynomial &PWMCalibration, const Polynomial &nonlinearityCorrection, enum NIMSeries::References::PositiveCalSource posReferenceSource, SubdeviceCalibration *AICalibration, std::vector *calibrated, double maxRangeThreshold) { comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); const unsigned numAIRanges = ADSubdev.n_ranges(); unsigned i; for(i = 0; i < numAIRanges; ++i) { if(calibrated->at(i) == true) continue; const comedi_range *cRange = ADSubdev.range(0, i); if(cRange->max < maxRangeThreshold) continue; std::cout << "calibrating range " << i << " ..." << std::endl; AICalibration->insertPolynomial(calibrateAIRange(PWMCalibration, nonlinearityCorrection, posReferenceSource, i), SubdeviceCalibration::allChannels, i); calibrated->at(i) = true; std::cout << "done." << std::endl; } } unsigned NIMSeries::Calibrator::PWMRoundedNumSamples(unsigned numSamples, unsigned samplePeriodNS) const { unsigned PWMPeriodNS = PWMPeriodTicks() * masterClockPeriodNanosec; unsigned totalSamplingPeriod = (((numSamples * samplePeriodNS) + PWMPeriodNS / 2) / PWMPeriodNS) * PWMPeriodNS; return totalSamplingPeriod / samplePeriodNS; } void NIMSeries::Calibrator::checkAIBufferSize() { comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); unsigned bytesPerSample; if(ADSubdev.flags() & SDF_LSAMPL) { bytesPerSample = sizeof(lsampl_t); }else { bytesPerSample = sizeof(sampl_t); } const unsigned requiredSize = bytesPerSample * PWMRoundedNumSamples(numSamples, _references->getMinSamplePeriodNanosec()); if(ADSubdev.max_buffer_size() < requiredSize) { std::cerr << "Analog input buffer maximum size is " << ADSubdev.max_buffer_size() << " bytes, but we want " << requiredSize << " .\n" << "If this fails (it will if you aren't root), you will need to use comedi_config to increase the size of the read buffer." << std::endl; ADSubdev.set_max_buffer_size(requiredSize); } if(ADSubdev.buffer_size() < requiredSize) { ADSubdev.set_buffer_size(requiredSize); } } /* tweak PWM period to be 1 tick longer than a multiple of the sampling period. This insures the PWM waveform is not sampled at the same points in its waveform over and over again, giving a better measure of the average value. */ unsigned NIMSeries::Calibrator::PWMPeriodTicks() const { const unsigned samplePeriodTicks = _references->getMinSamplePeriodNanosec() / masterClockPeriodNanosec; // round up to nearest multiple of samplePeriod. unsigned ticks = ((TargetPWMPeriodTicks + samplePeriodTicks - 1) / samplePeriodTicks) * samplePeriodTicks; return ++ticks; } const SubdeviceCalibration NIMSeries::Calibrator::calibrateAOSubdevice(const SubdeviceCalibration &AICalibration) { comedi::subdevice AOSubdevice = _dev.find_subdevice_by_type(COMEDI_SUBD_AO); const unsigned numAORanges = AOSubdevice.n_ranges(); const unsigned numAOChannels = AOSubdevice.n_channels(); unsigned channel, range; SubdeviceCalibration AOCalibrations(false); for(channel = 0; channel < numAOChannels; ++channel) { for(range = 0; range < numAORanges; ++range) { if(AOSubdevice.range(0, range)->unit != UNIT_volt) continue; const unsigned AIRange = findAIRangeForAO(range); Polynomial calibration = calibrateAOChannelAndRange(AICalibration.polynomial(0, AIRange), AIRange, channel, range); AOCalibrations.insertPolynomial(calibration, channel, range); } } return AOCalibrations; } Polynomial NIMSeries::Calibrator::calibrateAOChannelAndRange(const Polynomial &AICalibration, unsigned AIRange, unsigned AOChannel, unsigned AORange) { comedi::subdevice AOSubdevice = _dev.find_subdevice_by_type(COMEDI_SUBD_AO); _references->setReference(AOChannel); std::vector codes; std::vector measuredVoltages; const lsampl_t lowCode = lrint(AOSubdevice.max_data() * 0.1); codes.push_back(static_cast(lowCode)); AOSubdevice.data_write(AOChannel, AORange, AREF_GROUND, lowCode); std::vector readings = _references->readReferenceDouble( numSamples, _references->getMinSamplePeriodNanosec(), AIRange, settleNanosec); const double measuredLowCode = estimateMean(readings); measuredVoltages.push_back(AICalibration(measuredLowCode)); AOSubdevice.data_write(AOChannel, AORange, AREF_GROUND, highCode(AIRange, AORange)); codes.push_back(static_cast(highCode(AIRange, AORange))); readings = _references->readReferenceDouble( numSamples, _references->getMinSamplePeriodNanosec(), AIRange, settleNanosec); const double measuredHighCode = estimateMean(readings); measuredVoltages.push_back(AICalibration(measuredHighCode)); Polynomial fit; fit.expansionOrigin = 0.; fit.coefficients = fitPolynomial(measuredVoltages, codes, fit.expansionOrigin, 1); std::cout << "AO calibration for channel " << AOChannel << ", range " << AORange << " .\n"; unsigned i; for(i = 0; i < codes.size(); ++i) std::cout << "set ao to " << codes.at(i) << ", measured " << measuredVoltages.at(i) << " .\n"; printPolynomial(fit); return fit; } lsampl_t NIMSeries::Calibrator::highCode(unsigned AIRange, unsigned AORange) const { comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); comedi::subdevice DASubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AO); const comedi_range *AICRange = ADSubdev.range(0, AIRange); const comedi_range *AOCRange = DASubdev.range(0, AORange); if(AICRange->max >= AOCRange->max) return lrint(DASubdev.max_data() * 0.9); double fractionalCode = (0.9 * AICRange->max - AOCRange->min) / (AOCRange->max - AOCRange->min); assert(fractionalCode >= 0. && fractionalCode <= 1.); return lrint(DASubdev.max_data() * fractionalCode); } unsigned NIMSeries::Calibrator::findAIRangeForAO(unsigned AORange) const { comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); comedi::subdevice DASubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AO); const unsigned numAIRanges = ADSubdev.n_ranges(); const double maxAOVoltage = DASubdev.range(0, AORange)->max; unsigned i; const comedi_range *AICRange = 0; unsigned AIRange = 0; for(i = 0; i < numAIRanges; ++i) { const comedi_range *cRange = ADSubdev.range(0, i); if(AICRange == 0 || (cRange->max >= maxAOVoltage && cRange->max < AICRange->max) || (AICRange->max < maxAOVoltage && cRange->max > AICRange->max)) { AIRange = i; AICRange = cRange; } } if(AICRange == 0) { std::ostringstream message; message << __FUNCTION__ << ": failed to find AI range appropriate for AO range " << AORange << " ."; throw std::logic_error(message.str()); } return AIRange; } // References NIMSeries::References::References(const comedi::device &dev): _dev(dev) { } void NIMSeries::References::setPWM(unsigned high_ns, unsigned low_ns, unsigned *actual_high_ns, unsigned *actual_low_ns) { comedi_insn pwm_insn; comedi::subdevice pwm_subdev = _dev.find_subdevice_by_type(COMEDI_SUBD_CALIB); memset(&pwm_insn, 0, sizeof(pwm_insn)); pwm_insn.insn = INSN_CONFIG; pwm_insn.n = 5; pwm_insn.subdev = pwm_subdev.index(); std::vector config_data(pwm_insn.n); config_data.at(0) = INSN_CONFIG_PWM_OUTPUT; config_data.at(1) = TRIG_ROUND_NEAREST; config_data.at(2) = high_ns; config_data.at(3) = TRIG_ROUND_NEAREST; config_data.at(4) = low_ns; pwm_insn.data = &config_data.at(0); _dev.do_insn(&pwm_insn); if(actual_high_ns) *actual_high_ns = config_data.at(2); if(actual_low_ns) *actual_low_ns = config_data.at(4); } void NIMSeries::References::setReference(enum PositiveCalSource posSource, enum NegativeCalSource negSource) { setReferenceBits(posSource | negSource); } void NIMSeries::References::setReference(unsigned AOChannel) { assert((AOChannel & 0xf) == AOChannel); setReferenceBits(POS_CAL_AO | NEG_CAL_GROUND | (AOChannel << 15)); } std::vector NIMSeries::References::readReference(unsigned numSamples, unsigned samplePeriodNS, unsigned inputRange, unsigned settleNanosec) const { if(settleNanosec >= 1000000000) { std::ostringstream message; message << __FUNCTION__ << ": invalid settleNanosec=" << settleNanosec << " ."; throw std::invalid_argument(message.str()); } if(numSamples < 1) { return std::vector(); } comedi::subdevice ADSubdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI); ADSubdev.data_read_hint(0 | CR_ALT_SOURCE | CR_ALT_FILTER, inputRange, AREF_DIFF); struct timespec req; req.tv_sec = 0; req.tv_nsec = settleNanosec; if(nanosleep(&req, 0)) { std::ostringstream message; message << __FUNCTION__ << ": nanosleep() returned error, errno=" << errno << std::endl; throw std::runtime_error(message.str()); } comedi_cmd cmd; memset(&cmd, 0, sizeof(cmd)); static const unsigned numChannels = 1; cmd.subdev = ADSubdev.index(); cmd.start_src = TRIG_NOW; cmd.scan_begin_src = TRIG_TIMER; cmd.scan_begin_arg = samplePeriodNS; cmd.convert_src = TRIG_TIMER; cmd.convert_arg = 0; cmd.scan_end_src = TRIG_COUNT; cmd.scan_end_arg = numChannels; cmd.stop_src = TRIG_COUNT; cmd.stop_arg = numSamples; boost::array chanlist; chanlist.at(0) = CR_PACK(0 | CR_ALT_SOURCE | CR_ALT_FILTER, inputRange, AREF_DIFF); cmd.chanlist = &chanlist.at(0); cmd.chanlist_len = chanlist.size(); unsigned i; static const unsigned maxTests = 4; int retval = 0; for(i = 0; i < maxTests; ++i) { retval = _dev.command_test(&cmd); if(retval == 0) break; } if(i == maxTests) { std::ostringstream message; message << __FUNCTION__ << ": comedi_command_test failed, last retval = " << retval; throw std::runtime_error(message.str()); } assert(cmd.scan_begin_arg == samplePeriodNS); _dev.command(&cmd); std::vector longData(numSamples); std::size_t samplesRead; int fd = dup(_dev.fileno()); if(fd < 0) { std::ostringstream message; message << __FUNCTION__ << ": dup failed with errno = " << errno; throw std::runtime_error(message.str()); } FILE *file = fdopen(fd, "r"); if(file == 0) { std::ostringstream message; message << __FUNCTION__ << ": fdopen failed with errno = " << errno; throw std::runtime_error(message.str()); } if(ADSubdev.flags() & SDF_LSAMPL) { samplesRead = fread(&longData.at(0), sizeof(lsampl_t), numSamples, file); }else { std::vector data(numSamples); samplesRead = fread(&data.at(0), sizeof(sampl_t), numSamples, file); std::copy(data.begin(), data.end(), longData.begin()); } fclose(file); ADSubdev.cancel(); if(samplesRead != numSamples) { std::ostringstream message; message << __FUNCTION__ << ": failed to read " << numSamples << " samples from comedi device file, count = " << samplesRead; throw std::runtime_error(message.str()); } return longData; } std::vector NIMSeries::References::readReferenceDouble(unsigned numSamples, unsigned samplePeriodNS, unsigned inputRange, unsigned settleNanosec) const { std::vector rawData = readReference(numSamples, samplePeriodNS, inputRange, settleNanosec); std::vector readings(rawData.size()); std::copy(rawData.begin(), rawData.end(), readings.begin()); return readings; } unsigned NIMSeries::References::getMinSamplePeriodNanosec() const { comedi_cmd cmd; static const unsigned numChannels = 1; memset(&cmd, 0, sizeof(cmd)); cmd.subdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI).index(); cmd.start_src = TRIG_NOW; cmd.scan_begin_src = TRIG_TIMER; cmd.scan_begin_arg = 0; cmd.convert_src = TRIG_TIMER; cmd.convert_arg = 0; cmd.scan_end_src = TRIG_COUNT; cmd.scan_end_arg = numChannels; cmd.stop_src = TRIG_COUNT; cmd.stop_arg = 1; unsigned chanlist[] = {0}; cmd.chanlist = chanlist; cmd.chanlist_len = numChannels; int retval = _dev.command_test(&cmd); assert(retval == 0 || retval >=3); return cmd.scan_begin_arg; } // private functions void NIMSeries::References::setReferenceBits(unsigned bits) { comedi_insn referenceSourceConfig; boost::array refData; memset(&referenceSourceConfig, 0, sizeof(referenceSourceConfig)); referenceSourceConfig.insn = INSN_CONFIG; referenceSourceConfig.n = refData.size(); referenceSourceConfig.subdev = _dev.find_subdevice_by_type(COMEDI_SUBD_AI).index(); refData.at(0) = INSN_CONFIG_ALT_SOURCE; refData.at(1) = bits; referenceSourceConfig.data = &refData.at(0); _dev.do_insn(&referenceSourceConfig); } // EEPROM NIMSeries::EEPROM::EEPROM(const comedi::device &dev): _dev(dev) { } float NIMSeries::EEPROM::referenceVoltage() const { return readFloat(calibrationAreaBaseAddress() + voltageReferenceOffset); } // private functions unsigned NIMSeries::EEPROM::readByte(unsigned address) const { unsigned value = _dev.find_subdevice_by_type(COMEDI_SUBD_MEMORY).data_read(address, 0, 0); assert(value <= 0xff); return value; } unsigned NIMSeries::EEPROM::readUInt16(unsigned startAddress) const { unsigned value = readByte(startAddress) << 8; value |= readByte(startAddress + 1); return value; } float NIMSeries::EEPROM::readFloat(unsigned startAddress) const { union FloatConverter { uint32_t integer; float floatingPoint; }; union FloatConverter myConverter; assert(sizeof(float) == sizeof(uint32_t)); unsigned address = startAddress; myConverter.integer = readByte(address++) << 24; myConverter.integer |= readByte(address++) << 16; myConverter.integer |= readByte(address++) << 8; myConverter.integer |= readByte(address++); return myConverter.floatingPoint; } unsigned NIMSeries::EEPROM::calibrationAreaBaseAddress() const { return readUInt16(24); } comedi_calibrate-5/comedi_soft_calibrate/calibrator.hpp0000644000000000000000000000247712416542124020524 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _CALIBRATOR_HPP #define _CALIBRATOR_HPP #include #include "calibration_set.hpp" #include #include #include /* Abstract base class for hardware-specific classes. Calibrators * determine the proper soft calibration coefficients for a piece of hardware * using its onboard calibration references. */ class Calibrator { public: Calibrator() {} virtual ~Calibrator() {} virtual std::string supportedDriverName() const = 0; virtual std::vector supportedDeviceNames() const = 0; virtual CalibrationSet calibrate(const comedi::device &dev) = 0; private: }; #endif // _CALIBRATOR_HPP comedi_calibrate-5/comedi_soft_calibrate/ni_m_series_calibrator.hpp0000644000000000000000000001254112416542124023071 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _NI_M_SERIES_CALIBRATOR_HPP #define _NI_M_SERIES_CALIBRATOR_HPP #include "calibrator.hpp" #include "calibrator_misc.hpp" #include #include #include namespace NIMSeries { class References { public: static const int positive_cal_shift = 7; static const int negative_cal_shift = 10; enum PositiveCalSource { POS_CAL_REF = 2 << positive_cal_shift, POS_CAL_PWM_500mV = 3 << positive_cal_shift, POS_CAL_PWM_2V = 4 << positive_cal_shift, POS_CAL_PWM_10V = 5 << positive_cal_shift, POS_CAL_GROUND = 6 << positive_cal_shift, POS_CAL_AO = 7 << positive_cal_shift }; enum NegativeCalSource { NEG_CAL_1V = 2 << negative_cal_shift, NEG_CAL_1mV = 3 << negative_cal_shift, NEG_CAL_GROUND = 5 << negative_cal_shift, NEG_CAL_GROUND2 = 6 << negative_cal_shift, NEG_CAL_PWM_10V = 7 << negative_cal_shift, }; References(const comedi::device &dev); void setPWM(unsigned high_ns, unsigned low_ns, unsigned *actual_high_ns = 0, unsigned *actual_low_ns = 0); void setReference(enum PositiveCalSource posSource, enum NegativeCalSource NegSource); void setReference(unsigned AOChannel); std::vector readReference(unsigned numSamples, unsigned samplePeriodNanosec, unsigned inputRange, unsigned settleNanosec) const; std::vector readReferenceDouble(unsigned numSamples, unsigned samplePeriodNanosec, unsigned inputRange, unsigned settleNanosec) const; unsigned getMinSamplePeriodNanosec() const; private: void setReferenceBits(unsigned bits); comedi::device _dev; }; /* Calibrator for National Instruments M-Series boards. */ class Calibrator: public ::Calibrator { public: Calibrator(); virtual std::string supportedDriverName() const {return "ni_pcimio";} virtual std::vector supportedDeviceNames() const; virtual CalibrationSet calibrate(const comedi::device &dev); private: static const unsigned numSamples = 15000; static const unsigned settleNanosec = 1000000; static const unsigned baseRange = 0; static const unsigned masterClockPeriodNanosec = 50; static const unsigned minimumPWMPulseTicks = 0x20; static const unsigned TargetPWMPeriodTicks = 20 * minimumPWMPulseTicks; const SubdeviceCalibration calibrateAISubdevice(); Polynomial calibrateAINonlinearity(const std::map &PWMCharacterization); // calibrate the one range that can actually read the onboard voltage reference directly Polynomial calibrateAIBaseRange(const Polynomial &nonlinearityCorrection); Polynomial calibrateAIRange(const Polynomial &PWMCalibration, const Polynomial &nonlinearityCorrection, enum NIMSeries::References::PositiveCalSource posSource, unsigned range); Polynomial calibratePWM(const std::map &PWMCharacterization, const Polynomial &baseRangeCalibration); Polynomial calibrateAIGainAndOffset(const Polynomial &nonlinearityCorrection, enum NIMSeries::References::PositiveCalSource posReferenceSource, double referenceVoltage, unsigned range); void setPWMUpTicks(unsigned upTicks); std::map characterizePWM(enum NIMSeries::References::PositiveCalSource posReferenceSource, unsigned ADRange); unsigned smallestCalibratedAIRangeContaining(const std::vector &calibrated, double rangeThreshold); void calibrateAIRangesAboveThreshold(const Polynomial &PWMCalibration, const Polynomial &nonlinearityCorrection, enum NIMSeries::References::PositiveCalSource posReferenceSource, SubdeviceCalibration *AICalibration, std::vector *calibrated, double maxRangeThreshold); // round numSamples so we sample over an integer number of PWM periods unsigned PWMRoundedNumSamples(unsigned numSamples, unsigned samplePeriodNS) const; void checkAIBufferSize(); unsigned PWMPeriodTicks() const; const SubdeviceCalibration calibrateAOSubdevice(const SubdeviceCalibration &AICalibration); Polynomial calibrateAOChannelAndRange(const Polynomial &AICalibration, unsigned AIRange, unsigned AOChannel, unsigned AORange); unsigned findAIRangeForAO(unsigned AORange) const; // returns an AO code that will produce a high voltage inside the specified ai input range lsampl_t highCode(unsigned AIRange, unsigned AORange) const; void dumpAICalibrationSources(); comedi::device _dev; boost::shared_ptr _references; }; class EEPROM { public: EEPROM(const comedi::device &dev); float referenceVoltage() const; private: enum CalibrationAreaOffsets { voltageReferenceOffset = 12 }; unsigned calibrationAreaBaseAddress() const; unsigned readByte(unsigned address) const; unsigned readUInt16(unsigned startAddress) const; float readFloat(unsigned startAddress) const; comedi::device _dev; }; }; #endif // _NI_M_SERIES_CALIBRATOR_HPP comedi_calibrate-5/comedi_soft_calibrate/results/0000755000000000000000000000000012416542124017440 500000000000000comedi_calibrate-5/comedi_soft_calibrate/results/README0000644000000000000000000000024712416542124020243 00000000000000This file is a place-holder for the empty 'results' directory. The results of running 'comedi_soft_calibrate' for different devices will be placed in this directory. comedi_calibrate-5/comedi_soft_calibrate/comedi_soft_calibrate.cpp0000644000000000000000000001350512416542124022670 00000000000000/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include "calibrator.hpp" #include "../libcomedi_calibrate/comedi_calibrate_shared.h" #include #include #include "ni_m_series_calibrator.hpp" #include #include #include #include void writeCalibrationSet(const CalibrationSet &calibration, const std::string &driverName, const std::string &boardName, const std::string &filePath) { comedi_calibration_t *c_cal = static_cast(malloc(sizeof(comedi_calibration_t))); if(c_cal == 0) throw std::runtime_error("writeCalibrationSet: malloc failed\n"); memset(c_cal, 0, sizeof(comedi_calibration_t)); c_cal->driver_name = static_cast(malloc(driverName.size() + 1)); strcpy(c_cal->driver_name, driverName.c_str()); c_cal->board_name = static_cast(malloc(boardName.size() + 1)); strcpy(c_cal->board_name, boardName.c_str()); CalibrationSet::const_iterator it; for(it = calibration.begin(); it != calibration.end(); ++it) { const SubdeviceCalibration &subdeviceCalibration = it->second; std::map, Polynomial>::const_iterator jt; for(jt = it->second.polynomials().begin(); jt != it->second.polynomials().end(); ++jt) { comedi_calibration_setting_t *setting = sc_alloc_calibration_setting(c_cal); setting->subdevice = it->first; unsigned channel = jt->first.first; if(channel != SubdeviceCalibration::allChannels) { sc_push_channel(setting, channel); } unsigned range = jt->first.second; if(range != SubdeviceCalibration::allRanges) { sc_push_range(setting, range); } const Polynomial &polynomial = jt->second; comedi_polynomial_t *comediPolynomial = static_cast(malloc(sizeof(comedi_polynomial_t))); assert(comediPolynomial); comediPolynomial->expansion_origin = polynomial.expansionOrigin; comediPolynomial->order = polynomial.order(); unsigned i; for(i = 0; i < polynomial.coefficients.size(); ++i) { assert(i < COMEDI_MAX_NUM_POLYNOMIAL_COEFFICIENTS); comediPolynomial->coefficients[i] = polynomial.coefficients.at(i); } if(subdeviceCalibration.toPhys()) { setting->soft_calibration.to_phys = comediPolynomial; }else { setting->soft_calibration.from_phys = comediPolynomial; } } } int retval = write_calibration_file(filePath.c_str(), c_cal); comedi_cleanup_calibration(c_cal); if(retval) { std::ostringstream message; message << __FUNCTION__ << ": write_calibration_file() failed."; throw std::runtime_error(message.str()); } } class ComediSoftCalibrateApp { public: ComediSoftCalibrateApp(int argc, char **argv); virtual ~ComediSoftCalibrateApp(); void exec(); private: boost::program_options::options_description desc; boost::program_options::variables_map vm; std::string _deviceFile; std::string _saveFile; comedi::device _comediDev; std::vector > _calibrators; }; ComediSoftCalibrateApp::ComediSoftCalibrateApp(int argc, char **argv): desc("Allowed options") { desc.add_options() ("help", "produce this help message and exit") ("file,f", boost::program_options::value(&_deviceFile)->default_value("/dev/comedi0"), "device file") ("save-file,S", boost::program_options::value(&_saveFile)->default_value(""), "calibration save file") ; try { boost::program_options::store(boost::program_options::parse_command_line(argc, argv, desc), vm); } catch(const std::exception &err) { std::cerr << "Caught exception: " << err.what() << std::endl; std::cout << desc << std::endl; throw; } boost::program_options::notify(vm); _calibrators.push_back(boost::shared_ptr(new NIMSeries::Calibrator())); } ComediSoftCalibrateApp::~ComediSoftCalibrateApp() {} void ComediSoftCalibrateApp::exec() { if(vm.count("help")) { std::cout << desc << std::endl; return; } _comediDev.open(_deviceFile); std::vector >::iterator it; for(it = _calibrators.begin(); it != _calibrators.end(); ++it) { if((*it)->supportedDriverName() != _comediDev.driver_name()) continue; std::vector devices = (*it)->supportedDeviceNames(); std::vector::iterator dit; for(dit = devices.begin(); dit != devices.end(); ++dit) { if(*dit == _comediDev.board_name()) break; } if(dit == devices.end()) continue; break; } if(it == _calibrators.end()) { std::ostringstream message; message << "Failed to find calibrator for " << _comediDev.driver_name() << " driver."; std::cerr << message.str() << std::endl; throw std::invalid_argument(message.str().c_str()); } CalibrationSet calibration = (*it)->calibrate(_comediDev); if(_saveFile == "") { _saveFile = _comediDev.default_calibration_path(); } writeCalibrationSet(calibration, _comediDev.driver_name(), _comediDev.board_name(), _saveFile); } int main(int argc, char **argv) { try { ComediSoftCalibrateApp app(argc, argv); app.exec(); } catch(const std::exception &err) { std::cerr << "Caught exception: " << err.what() << std::endl; return 1; } return 0; } comedi_calibrate-5/install-sh0000755000000000000000000003546312726246326013406 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2014-09-12.12; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) # $RANDOM is not portable (e.g. dash); use it when possible to # lower collision chance tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so # create the $tmpdir first (and fail if unsuccessful) to make sure # that nobody tries to guess the $tmpdir name. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: