--+------------------------------------------------------------------------+ --+ SOHO Project -- Control File --+ ---------------------------- --+ --+ Name : MDI_LT , !Proc_s , !Print --+ Purpose : (See Procedure header) --+ --+ Sub_system : PLM --+ Drawing No : 3137-ZA042-SCB Issue : A/00 --+ Project No : SH-MAR-SW-70224 --+ Origin : UK --+ Author : Jon B. CARTER --+------------------------------------------------------------------------+ --+ Principle : --+ --------- --+ Holding CF for a group of related Procedures, originally written in --+ MDI's own Control File language. --+ --+ Passed parameters : --+ ----------------- --+ !Proc_s : Name of required Procedure. --+ !Print : CF Log print indicator ( "yes" (default) | "no" ). --+ --+ Prerequisites : --+ ------------- --+ Control File MDI_ON must have been successfully performed. --+ --+ History : --+ ------- --+ Issue SIC Note Time Date Name/Updates --+ +---+ +------+ +---+ +------+ +-------------------------------------+ --+ 1/00 211 16:53 30/11/93 A.J. TURK -- Conversion from MDI language. --+ 1/01 289 17:46 07/02/94 Ph. IATRINO -- During debug phase. --+ 1/02 360 13:10 05/05/94 Ed COBB/Ph. IATRINO -- Rationalization. --+ 1/03 393 16:33 11/05/94 Ed COBB/Ph. IATRINO -- 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_NbErr -- MDI Global Error Count Int !GM_Conf -- MDI Configuration End Common -------------------------------------------------------------------------------< Extern 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_LT , Unique Defarg Str(80) !Proc_s Str(3) !Print = "yes" End Defarg Var Str( 3) !ExpName = "MDI" Str(10) !Phase = " " Str(49) !Title = " " Str(80) !S = &80s(" ") Str(80) !Question = " " Str(80) !Check = " " Int !NbErr = 0 Main @OpenWindow() Select !Proc_s Case "ltemps" @ltemps() Default !Title = "*ERROR: UNKNOWN PROCEDURE: "+!Proc_s @Message("DCL" , "date" , !ExpName , " " , !Title , *!S) -- Beep Halt !Title = "*Operator CONTinue" @Message("DC" , "date" , !ExpName , " " , !Title , *!S) Return !Rstat End Select @ExitCF (!NbErr) @PrintCF (!ExpName , !Print ) Return !Rstat End Program ----------------------------------------------------------------------------------< Procedure ltemps ( ) --. --. This procedure outputs the values of all temperature monitors --. Var Str( 3) !ExpName = "MDI" Str(10) !Phase = " " Str(49) !Title = " " Str(80) !S = &80s(" ") Int !NbErr = 0 Real !Get_real = 0.0 Main !Title = "-EXECUTING PROCEDURE: ltemps." @Message( "DCL" , "date" , !ExpName , !Phase , !Title , *!S ) !Title = "~Optics Package temperature monitors" @Message( "DC" , "time" , !ExpName , !Phase , !Title , *!S ) @PrintParam( "MTOPTS1" , "ANA" ) @PrintParam( "MTOPTS2" , "ANA" ) @PrintParam( "MTOPTS3" , "ANA" ) @PrintParam( "MTOPTS4" , "ANA" ) @PrintParam( "MTOPTS5" , "ANA" ) @PrintParam( "MTOPTS6" , "ANA" ) @PrintParam( "MTOPTS7" , "ANA" ) @PrintParam( "MTOPTS8" , "ANA" ) @PrintParam( "MTOPTS9" , "ANA" ) @PrintParam( "MTOPTS10" , "ANA" ) @PrintParam( "MTOPTS11" , "ANA" ) @PrintParam( "MTOPTS12" , "ANA" ) @PrintParam( "MTOPTS13" , "ANA" ) @PrintParam( "MTOPTS14" , "ANA" ) @PrintParam( "MTOPTS15" , "ANA" ) @PrintParam( "MTOPTS16" , "ANA" ) !Title = "~DEP Sequence temperature monitors" @Message( "DC" , "time" , !ExpName , !Phase , !Title , *!S ) @PrintParam( "MTSQOPT1" , "ANA" ) @PrintParam( "MTSQOPT4" , "ANA" ) @PrintParam( "MTSQOPT5" , "ANA" ) @PrintParam( "MTSQOPT6" , "ANA" ) !Title = "~Electronics Package temperature monitors" @Message( "DC" , "time" , !ExpName , !Phase , !Title , *!S ) @PrintParam( "MTEPTS1" , "ANA" ) @PrintParam( "MTEPTS2" , "ANA" ) @PrintParam( "MTEPTS3" , "ANA" ) @PrintParam( "MTEPTS4" , "ANA" ) !Title = "~Spacecraft temperature monitors" @Message( "DC" , "time" , !ExpName , !Phase , !Title , *!S ) @PrintParam( "QTMI1A" , "ANA" ) @PrintParam( "QTMI1B" , "ANA" ) @PrintParam( "QTMI1C" , "ANA" ) @PrintParam( "QTMI1D" , "ANA" ) @PrintParam( "QTMI2" , "ANA" ) !GM_NbErr = !GM_NbErr + !NbErr !Title = "-FINISHED PROCEDURE: ltemps." @Message( "DCL" , "date" , !ExpName , !Phase , !Title , *!S ) Return End Procedure -------------------------------------------------------------------------------< Procedure PrintCF( str(3) !ExpName, str(8) !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 ----------------------------------------------------------------------------------<