diff options
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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; |