From 1163e2bba1e275580d7baa62b3090ea344f1f284 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:27:12 -0500 Subject: added delay shift diagnostic query --- parser.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/parser.c b/parser.c index 2f6f46c..0670fb6 100644 --- a/parser.c +++ b/parser.c @@ -3354,6 +3354,7 @@ static int Go_dly_shift_82(gchar** response, int channel, char *parameter,char * int value, status; float cal_point; + float min_one_shot_delay; if (status = check_channel_ok (channel, globals.Flash.channels, globals.Flash.ChanKey_delay)) { return status; @@ -3386,6 +3387,20 @@ static int Go_dly_shift_82(gchar** response, int channel, char *parameter,char * return query_min_max_int(response, parameter, 1, num_of_dly_shift_points); break; + case query_simple: + + min_one_shot_delay = globals.Flash.delay_pwl_time[channel][0][0][0]; + + *response = g_strdup_printf ( + "Fixed delay: %f ns, PG-SYNC propagation delay: %f ns, narrowest variable delay: %f ns, all delays valid: %s, delay monotonic in external trigger mode: %s", + globals.Flash.delay_shrink[channel]*1e9, + globals.Flash.propagation_delay[channel]*1e9, + globals.Flash.delay_pwl_time[channel][0][0][0]*1e9, + (globals.Flash.delay_shrink[channel] >= min_one_shot_delay) ? "TRUE" : "FALSE", + (( globals.Flash.delay_shrink[channel] - globals.Flash.propagation_delay[channel] ) >= min_one_shot_delay) ? "TRUE" : "FALSE"); + return OK; + break; + default: return SyntaxError; break; -- cgit