From 92a02273c3e2fd3b63a4196227ef13a1074d83b2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 18 Mar 2002 21:49:08 +0000 Subject: [PATCH] Fix for 6025. Other 602x boards probably have the same problem. --- comedi_calibrate/ni.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/comedi_calibrate/ni.c b/comedi_calibrate/ni.c index ce31cb4..cc4d67a 100644 --- a/comedi_calibrate/ni.c +++ b/comedi_calibrate/ni.c @@ -69,7 +69,7 @@ struct board_struct boards[]={ { "at-mio-16xe-50", STATUS_SOME, cal_ni_at_mio_16xe_50 }, { "at-mio-16e-1", STATUS_SOME, cal_ni_at_mio_16e_1 }, { "pci-mio-16e-1", STATUS_DONE, cal_ni_pci_mio_16e_1 }, - { "pci-6025e", STATUS_GUESS, cal_ni_pci_6025e }, + { "pci-6025e", STATUS_SOME, cal_ni_pci_6025e }, { "pci-6035e", STATUS_GUESS, cal_ni_pci_6035e }, { "pci-6071e", STATUS_SOME, cal_ni_pci_6071e }, { "pxi-6071e", STATUS_GUESS, cal_ni_pxi_6071e }, @@ -466,14 +466,17 @@ void cal_ni_pci_6024e(void) void cal_ni_pci_6025e(void) { - postgain_cal(ni_zero_offset_low,ni_zero_offset_high,1); - cal1(ni_zero_offset_high,0); - cal1(ni_reference_low,3); + postgain_cal(ni_zero_offset_low,ni_zero_offset_high,4); // was 1 + cal1(ni_zero_offset_high,XXX); // was 10 + cal1(ni_zero_offset_high,8); // was 0 + cal1(ni_reference_low,2); // was 3 if(do_output){ - cal1(ni_ao0_zero_offset,4); // guess - cal1(ni_ao0_reference,5); // guess - cal1(ni_ao1_zero_offset,8); // guess - cal1(ni_ao1_reference,9); // guess + cal1(ni_ao0_zero_offset,6); // was 5 + //cal1(ni_ao0_zero_offset,10); // nonlinearity was 4 + //cal1(ni_ao0_reference,XXX); // was 6 + cal1(ni_ao1_zero_offset,9); // was 8 + //cal1(ni_ao1_zero_offset,1); // nonlinearity was 7 + cal1(ni_ao1_reference,5); // was 9 } } -- 2.26.2