summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:24:36 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:24:36 +0900
commit806c11efaf3f4189bb2025fd9b4c4a9224249a8f (patch)
tree625f64226426d2d57432dfbd54f1dd9b8ef932f6 /device-functions.c
parent2447a224358745186f862d55fc2996286abc0681 (diff)
Dump valid points to console when querying range info, to debug errant cal points
Diffstat (limited to 'device-functions.c')
-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);
}
}