summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:27:12 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:27:12 -0500
commit1163e2bba1e275580d7baa62b3090ea344f1f284 (patch)
treefd1282ab877f9ad0ffb2ea45bf8d00e19b8c9499 /parser.c
parentdc0a1df93b8e5dcc3d5b508244051c1471c345ec (diff)
added delay shift diagnostic query
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c15
1 files changed, 15 insertions, 0 deletions
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;