summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 01:28:12 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 01:28:12 +0900
commitd461f7e68e63ce84b48bc63759596d7ab39c6278 (patch)
treebd2217c3c224b07f5e7531d74cd94a16c88636eb /error_utils.c
parent4d96d6bbd773583e3f3713b3afb273194213ce47 (diff)
more specific errors during cal min/max check, and more initial cal points
Diffstat (limited to 'error_utils.c')
-rw-r--r--error_utils.c43
1 files changed, 40 insertions, 3 deletions
diff --git a/error_utils.c b/error_utils.c
index 9965b23..38a83ff 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -57,7 +57,14 @@ void set_gpib_error_flags (int error_num)
case queue_overflow:
case CalibrationPercentError:
case CalibrationZeroError:
- case CalibrationMinMaxError:
+ case CalibrationMinMaxError_ampl:
+ case CalibrationMinMaxError_pw:
+ case CalibrationMinMaxError_os:
+ case CalibrationMinMaxError_freq:
+ case CalibrationMinMaxError_delay:
+ case CalibrationMinMaxError_burst:
+ case CalibrationMinMaxError_rise:
+ case CalibrationMinMaxError_slew:
case CalibrationClosenessError:
case CalibrationRangeError:
case CalibrationPolarityError:
@@ -462,10 +469,40 @@ void get_error_text(gchar **response, int error_num)
format_error_text(response,-340,"Zero point can not be changed.");
break;
- case CalibrationMinMaxError:
- format_error_text(response,-340,"Would prevent operation at the minimum or maximum settings.");
+ case CalibrationMinMaxError_ampl:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum amplitude.");
break;
+ case CalibrationMinMaxError_pw:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum pulse width.");
+ break;
+
+ case CalibrationMinMaxError_os:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum offset.");
+ break;
+
+ case CalibrationMinMaxError_freq:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum frequency.");
+ break;
+
+ case CalibrationMinMaxError_delay:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum delay.");
+ break;
+
+ case CalibrationMinMaxError_burst:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum burst separation.");
+ break;
+
+ case CalibrationMinMaxError_rise:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum rise time.");
+ break;
+
+ case CalibrationMinMaxError_slew:
+ format_error_text(response,-340,"Would prevent operation at the minimum or maximum slew rate.");
+ break;
+
+
+
case CalibrationClosenessError:
format_error_text(response,-340,"Too few calibration points, or they are too closely spaced.");
break;