From d6b3b66cfd5266be9f20dd17f9c21082b83a4357 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 00:15:27 +0900 Subject: added a 100 ns minimum dead time requirement --- error_utils.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'error_utils.c') diff --git a/error_utils.c b/error_utils.c index 713fe0a..9dd45b0 100644 --- a/error_utils.c +++ b/error_utils.c @@ -571,6 +571,10 @@ void get_error_text(gchar **response, int error_num) format_error_text(response,-222,"Burst width can not exceed period."); break; + case Dead_Time_Error: + format_error_text(response,-222,"Insufficient time between end of one pulse and start of next."); + break; + case password_change_error: format_error_text(response,-222,"Incorrect old password, or new password is too long or short. "); break; @@ -979,6 +983,15 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels]) } if (ChannelStateToTest[i].trigger_source==source_internal) { + + temp=(1/ChannelStateToTest[i].frequency) - globals.Flash.dead_time[i]; + if (temp(1.001*globals.Constraints.err_max_pw[i])) { + report_error=Dead_Time_Error; + } + } + temp=1/ChannelStateToTest[i].frequency; if (temp