From 0aa3b9ec80108e690c2ca5157cb6d83087a40788 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Thu, 3 May 2018 09:20:22 -0400 Subject: original number of points in each range was 10 --- device-functions.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'device-functions.c') diff --git a/device-functions.c b/device-functions.c index 5c2ed2c..8847d92 100644 --- a/device-functions.c +++ b/device-functions.c @@ -2311,7 +2311,7 @@ int Set_VI_Cal_Pnt(int parameter,int channel,int calibration_point_number,float pwl = 0; pwl_distort = 0; - max_points=points_in_range; + max_points=old_range_size_ten; switch (parameter) { case (pwl_ampl_values): max_polarity=ampl_polarities; @@ -2499,7 +2499,7 @@ int Set_VI_Del_Cal(int parameter,int channel,int calibration_point_number) true_channel=channel; - max_points=points_in_range; + max_points=old_range_size_ten; pointer_short2=0; switch (parameter) { @@ -2605,10 +2605,10 @@ int Set_VI_Del_Cal(int parameter,int channel,int calibration_point_number) } } - *(float *)(&pointer_float1[index+points_in_range-1])=0.0; - *(short *)(&pointer_short1[index+points_in_range-1])=0; + *(float *)(&pointer_float1[index+old_range_size_ten-1])=0.0; + *(short *)(&pointer_short1[index+old_range_size_ten-1])=0; if (pointer_short2) { - *(short *)(&pointer_short2[index+points_in_range-1])=0; + *(short *)(&pointer_short2[index+old_range_size_ten-1])=0; } /* see if new point prevents min/max from being obtained */ @@ -2710,7 +2710,7 @@ int Set_VI_Control(int parameter,int channel,float new_ampl,int *point_found,int top_range_only=0; starting_range=0; - max_points=points_in_range; + max_points=old_range_size_ten; reciprocal_relationship=NO; decreasing_values_allowed=NO; min_os_in_range=max_os_in_range=0.0; @@ -3006,7 +3006,7 @@ int Set_VI_Control(int parameter,int channel,float new_ampl,int *point_found,int *point_found=1; if ((parameter==pwl_ampl_values) && globals.Flash.ampl_os_ranges_related[channel]) { - for (i=0; i