--+------------------------------------------------------------------------+ --+ SOHO Project -- Control File --+ ---------------------------- --+ --+ Name : MDI_OBS , !Print --+ Purpose : MDI OBSERVATION PHASE --+ --+ Sub_system : PLM --+ Drawing No : 3137-ZA042-SCB Issue : A/00 --+ Project No : SH-MAR-SW-70224 --+ Origin : UK --+ Author : Jon B. CARTER --+------------------------------------------------------------------------+ --+ Principle : --+ --------- --+ To perform a typical MDI Experiment Observation. It consists of a --+ telecommand focus series and an MDI sequence run by the DEP. --+ --+ Passed parameters : --+ ----------------- --+ !Print : CF Log print indicator ( "yes" (default) | "no" ). --+ --+ Prerequisites : --+ ------------- --+ The MDI experiment is in SAFE/STANDBY mode. --+ --+ History : --+ ------- --+ Issue SIC Note Time Date Name/Updates --+ +---+ +------+ +---+ +-------+ +-------------------------------------+ --+ 1/00 211 19:53 10/01/94 A.J. TURK -- Conversion from MDI language. --+ 1/01 289 08:03 02/02/94 A.J. TURK -- During debug phase. --+ 1/02 360 10:08 18/04/94 Ed COBB -- FM Rationalization --+ 1/03 393 09:08 17/05/94 Ed COBB -- MDI Updates --+ 1/09 448 15:35 21/06/94 Ed COBB -- MDI Updates --+ --+------------------------------------------------------------------------+ Common Var Bool !GZ_Window -- Open window flag (on CF start) Bool !GZ_Spool -- Automatic Spool (at End of CF exec) Bool !GZ_Halt -- Check Error flag (to halt if error) Bool !GZ_Test -- Execution test flag (to not send TC) Int !GZ_Trace -- Level of Trace (TBD) Int !GM_Conf -- MDI Configuration Int !GM_NbErr -- MDI Global Error Count Int !GM_I0 Int !GM_I1 Int !GM_I9 End Common -------------------------------------------------------------------------------< Extern Cfile MDI_FOCUS , MDI_LOBSMODE , MDI_LIP , MDI_LSEQ , MDI_MODE , MDI_LCM Cfile MDI_IMAGE Group MWTM , PWP12TM Procedure AskReal , AskStr , AskInt Procedure CheckAna , CheckDig , CheckReg Procedure CheckArgReal , CheckArgStr , CheckArgInt Procedure DispMess Procedure ExConnect , ExDisconnect Procedure ExitCF Procedure Message Procedure OpenWindow Procedure PrintAna , PrintDig , PrintReg , PrintParam Procedure SendCommand Procedure Lower , Upper Procedure WaitAna , WaitDig , WaitReg , WaitTime End Extern -------------------------------------------------------------------------------< Program MDI_OBS , Unique Defarg Str(3) !Print = "yes" End Defarg Var Str( 3) !ExpName = "MDI" -- Experiment name Str(80) !S = &80s(" ") -- To save the display messages Str(10) !Phase = " " -- Phase label (e.g. 3.3.1.2) Str(49) !Title = "" Main @OpenWindow() !Title = "-START OF MDI OBSERVATION: 'MDI_OBS'" @Message( "DCL", "date", !ExpName, !Phase, !Title, *!S) !Title = "~Telecommand Focus Sequence" @Message( "DCL", "date", !ExpName, !Phase, !Title, *!S) !GM_NbErr = 0 PERFORM/NO MDI_FOCUS , "mdifocus" , "no" PERFORM/NO MDI_IMAGE , "mdiltc" , "no" !GM_I0 = 1000 !GM_I1 = 1 !GM_I9 = 10 PERFORM/NO MDI_LCM , "lcmtap" , "no" PERFORM/NO MDI_LSEQ , "lsqcom" , "no" Cflog !Title = "*MDI IS NOW IN SAFE/STANDBY MODE" @Message( "DC", "date", !ExpName, !Phase, !Title, *!S) !Title = "-END OF MDI OBSERVATION: 'MDI_OBS'" @Message( "DCL", "date", !ExpName, !Phase, !Title, *!S) @ExitCF ( !GM_NbErr ) @PrintCF ( !ExpName , !Print ) Return !Rstat End Program -------------------------------------------------------------------------------< Procedure PrintCF(str(3) !ExpName, Str(3) !Print) --. Print the control file log file if required by !Print ; --. - using the 'Spool' statement if the variable !GZ_Spool is TRUE, --. - using the dialog box window if the variable !GZ_Spool is FALSE. --. Var str(80) !S = &80s("") Main If !Print = "yes" Then If !GZ_Spool = TRUE Then Spool CF Else Cflog @Message ("DC", "date", !ExpName, " ", \ "++++Print the CFLog, then type CONT+++", *!S) Halt @Message ("DC", "date", !ExpName, " ", \ "+Operator continue.", *!S) End If End If Return End Procedure -------------------------------------------------------------------------------<