From: Frank Mori Hess Date: Tue, 1 Jul 2003 21:14:15 +0000 (+0000) Subject: fix analog output targets X-Git-Tag: r0_7_21~69 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5de65aa11de4cec133923c6b42a4affdbfd1323f;p=comedilib.git fix analog output targets --- diff --git a/comedi_calibrate/ni.c b/comedi_calibrate/ni.c index ada29ba..aee9d58 100644 --- a/comedi_calibrate/ni.c +++ b/comedi_calibrate/ni.c @@ -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); } } }