diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:09:17 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:09:17 +0900 |
commit | f4555765d77b2b3225f7ff5548fb51486ac75492 (patch) | |
tree | 78ec8cec93439506bd4503e9aa1853509d2c518a | |
parent | 5b4a704a219f93496ce47dd25de74e4d2834c82d (diff) |
throw error if burst mode and double pulse mode enabled at the same time
-rw-r--r-- | error_utils.c | 8 | ||||
-rw-r--r-- | globals.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/error_utils.c b/error_utils.c index 4026b76..e0f6446 100644 --- a/error_utils.c +++ b/error_utils.c @@ -425,6 +425,10 @@ void get_error_text(gchar **response, int error_num) format_error_text(response,-221,"Double pulse separation is too high. It must be < 95% of the period."); break; + case Cant_Do_Burst_and_Double: + format_error_text(response,-221,"Can't use burst mode and double pulse mode at the same time."); + break; + case queue_overflow: format_error_text(response,-350,"Clear with *cls or syst:err."); break; @@ -998,6 +1002,10 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels]) report_error=Double_Separation_Too_Large; } } + + if (ChannelStateToTest[i].burst_count>1) { + report_error=Cant_Do_Burst_and_Double; + } } if ((globals.Flash.max_avg_ampl[i]) > 0.0 && (fabs(ChannelStateToTest[i].amplitude)) > 0.0) { @@ -106,6 +106,7 @@ #define CalibrationMinMaxError_rise 92 #define CalibrationMinMaxError_slew 93 #define Dead_Time_Error 94 +#define Cant_Do_Burst_and_Double 95 #define YES 1 #define NO 0 |