#!/bin/csh -f #+ #OSIRIS library of scripts # #NAME # aodelay - sets wfao delay time # #SYNOPSIS # aodelay [time] # #DESCRIPTION # sets the AO delay (between the time the AO loops are # closed and the time "wfao" returns to allow further # images). Only integers are accepted. # # If no parameter is given, the current value is printed. # #OPTIONS # time # (optional) time to wait, in integer seconds # #EXAMPLES # aodelay 30 # wait for up to 30 seconds when waiting for ao # #ENVIRONMENT VARIABLES # none # #FILES # none # #SERVERS & KEYWORDS # service = osiris # keywords: aodelay # #SCRIPTS CALLED # help, syncheck # #EXIT STATUS # 0 - normal exit, no error # 1 - script aborted by an interrupt # 2 - syncheck error # #SEE ALSO # ??? #- # # Modification History: # 20050219 - MB: Adapted from NIRC2 scripts # # Boiler plate for "-h" support for command autohelp. if ("$1" == "-h") then help $0 | more exit $status endif # Boilerplate for syncheck. # Note that the boiler plate should be transparent for all usages, # but to make correct use of syncheck you will need to specify the # correct pattern. set noglob set CheckStatus = `syncheck -command $0 $* -pattern {int}` unset noglob if ("$CheckStatus" != "OK") then help $0 | more exit 2 endif # End of help/syncheck boiler plate. if ($#argv == 0) then show -s osiris aodelay exit 0 endif modify -s osiris aodelay = $1