fix analog output targets
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 1 Jul 2003 21:14:15 +0000 (21:14 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 1 Jul 2003 21:14:15 +0000 (21:14 +0000)
comedi_calibrate/ni.c

index ada29baadc480903477515a524e61c934caa30bd..aee9d585bf8f4a2f6be1f1a2721acd9bcca08088 100644 (file)
@@ -362,7 +362,7 @@ static void ni_setup_ao_observables( calibration_setup_t *setup )
                                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);
+                       set_target( setup, ni_ao_unip_zero_offset( channel ),0.0);
 
                        /* ao unipolar gain */
                        o = setup->observables + ni_ao_unip_reference( channel );
@@ -376,7 +376,7 @@ static void ni_setup_ao_observables( calibration_setup_t *setup )
                                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);
+                       set_target( setup, ni_ao_unip_reference( channel ),8.0);
 
                        /* ao unipolar linearity, negative */
                        o = setup->observables + ni_ao_unip_linearity( channel );
@@ -390,7 +390,7 @@ static void ni_setup_ao_observables( calibration_setup_t *setup )
                                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_linearity( channel ),4.0);
+                       set_target( setup, ni_ao_unip_linearity( channel ),4.0);
                }
        }
 }