#!dimctrl --exec # ========================================================================== # Ratescan # ========================================================================== # Script for taking a Ratescan # call it by: .x ScriptsForDimCtrl/Ratescan.dim mode= ra= dec= source= # ---------------------------------------------------- > ====================================== > RATESCAN > ====================================== >- > Preparing Drive > ...stop tracking .j ${mode} # -------------------------------------- :0 .x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim > Manual tracking Mode > --------------------- > OPERATOR > change tracking in drivectrl manually >_ > script will wait for drive > to be in state tracking >- .j 9 # -------------------------------------- :1 .x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim > ...change tracking of telescope to: > ...Ra = ${ra} > ...Dec = ${dec} >- DRIVE_CONTROL/TRACK ${ra} ${dec} .j 9 # -------------------------------------- :2 .x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim > ...change tracking of telescope to: > ...${source} >- DRIVE_CONTROL/TRACK_SOURCE 0 0 \"${source}\" .j 9 # -------------------------------------- :9 .x ScriptsForDimCtrl/ServiceScripts/IsTracking.dim >--------------------------------------- > Preparing FTM_CONTROL > ...configure Ratescan FTM_CONTROL/CONFIGURE ratescan >--------------------------------------- > Starting Ratescan > ...waiting for Ratescan > to be in state 4: Connected .s RATE_SCAN 4 5000 256 RATE_SCAN/START_THRESHOLD_SCAN 50 1000 -10 .s RATE_SCAN 6 10000 257 > ...processing ratescan > ====================================== > Ratescan finished > ====================================== .j 301 :256 >--------------------------------------- > Rate_Scan not in correct state >- > OPERATOR: > + check connection to ftm control >--------------------------------------- .j 300 :257 >--------------------------------------- > ratescan not started >--------------------------------------- :300 > ====================================== > Ratescan NOT successfull > ====================================== :301