hmm, should have left postgain offset caldac as argument to
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 26 Apr 2003 22:24:37 +0000 (22:24 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 26 Apr 2003 22:24:37 +0000 (22:24 +0000)
cal_postgain() for 6062e

comedi_calibrate/ni.c

index c910911906c0a4ac2091cf0d8968cb1ff8ef2e72..6f4830ddef17d57d532e7ee40b5e93c99946da2c 100644 (file)
@@ -861,8 +861,8 @@ static int cal_ni_daqcard_6062e( calibration_setup_t *setup )
 
        memset( saved_cals, 0, sizeof( saved_cals ) );
 
-       cal_postgain_binary( setup, ni_zero_offset_low, ni_zero_offset_high, ADC_PREGAIN_OFFSET );
-       cal_binary( setup, ni_zero_offset_high, ADC_POSTGAIN_OFFSET );
+       cal_postgain_binary( setup, ni_zero_offset_low, ni_zero_offset_high, ADC_POSTGAIN_OFFSET );
+       cal_binary( setup, ni_zero_offset_high, ADC_PREGAIN_OFFSET );
        cal_binary( setup, ni_reference_low, ADC_GAIN );
 
        current_cal->subdevice = setup->ad_subdev;