#!/bin/csh -f #+ #OSIRIS library of scripts # #NAME # wait4dm - enables/disables waiting for deformable mirror loop closure # #SYNOPSIS # wait4dm mode # #DESCRIPTION # sets the keyword WFDM to on or off, telling the wfao script whether # or not to wait for the AO deformable mirror to lock. # # If no argument is given, the current settings are shown. # #OPTIONS # mode # set to one of [on,off] # #EXAMPLES # wait4dm on # enables waiting for DM loop closure # #ENVIRONMENT VARIABLES # none # #FILES # none # #SERVERS & KEYWORDS # service = osiris # keywords: wfdm # #SCRIPTS CALLED # help, syncheck # #EXIT STATUS # 0 - normal exit, no error # 1 - script aborted by an interrupt # 2 - syncheck error # #SEE ALSO # ??? #- # # Modification History: # 20050220 - 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 {[on,off]}` unset noglob if ("$CheckStatus" != "OK") then help $0 | more exit 2 endif # End of help/syncheck boiler plate. if ($#argv == 0) then set wfdm = `show -s osiris -terse wfdm` cat <