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 /error_utils.c | |
parent | 5b4a704a219f93496ce47dd25de74e4d2834c82d (diff) |
throw error if burst mode and double pulse mode enabled at the same time
Diffstat (limited to 'error_utils.c')
-rw-r--r-- | error_utils.c | 8 |
1 files changed, 8 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) { |