From: Frank Mori Hess Date: Thu, 28 Jul 2005 01:03:00 +0000 (+0000) Subject: first try at at-mio-16de-10 calibration X-Git-Tag: v0_8_0~96 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62264c38054580ebdaefeac27e1b500e68efe081;p=comedilib.git first try at at-mio-16de-10 calibration --- diff --git a/comedi_calibrate/ni.c b/comedi_calibrate/ni.c index 7e8bfd8..94a6613 100644 --- a/comedi_calibrate/ni.c +++ b/comedi_calibrate/ni.c @@ -49,6 +49,7 @@ static void ni_setup_observables( calibration_setup_t *setup ); static void ni_setup_observables_611x( calibration_setup_t *setup ); static void 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); @@ -81,7 +82,7 @@ static double ni_get_reference( calibration_setup_t *setup, int lsb_loc,int msb_ static struct board_struct boards[]={ { "at-ai-16xe-10", STATUS_UNKNOWN, NULL, ni_setup_observables, 0x1b7, 0x1b8 }, - { "at-mio-16de-10", STATUS_UNKNOWN, NULL, ni_setup_observables, 0x1a7, 0x1a8 }, + { "at-mio-16de-10", STATUS_GUESS, 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 }, @@ -804,6 +805,16 @@ static int cal_ni_pci_6034e(calibration_setup_t *setup) 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 */