summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device-functions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c
index ef764b4..40ed3b8 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -3557,6 +3557,7 @@ int Get_VI_Rng_Info(int parameter, int channel, int calibration_point_number, in
total=0;
*num_of_ranges=0;
+ printf ("--- nonzero entries ---\n\r");
for (x_polarity=0; x_polarity<max_polarity; x_polarity++)
for (x_range=0; x_range<max_ranges; x_range++) {
@@ -3577,6 +3578,9 @@ int Get_VI_Rng_Info(int parameter, int channel, int calibration_point_number, in
memcpy(&temp, (float *)(pwl + index), sizeof(float));
if ( fabs(temp)<smallest_allowed_number && (num_in_current_range==x_entry+1)) {
--num_in_current_range;
+ } else {
+ printf ("pol %d, range %d, entry %d, array index offset %d, value %e\n\r",
+ x_polarity, x_range, x_entry, index, temp);
}
}