try: General.clsGlobal.Abort = False General.clsGlobal.AbortSingle = False scriptGlobals.Exiting = False scriptGlobals.TestAborted = False # Read configuration parameters # Data in pair key and value sCfg = ConfigParser.ConfigParser() sCfg.read(scriptGlobals.ScriptConfigFilePath) # timeout = 26 General.clsGlobal.LoopitTimeout = int( scriptUtilities.ConvertToDouble(sCfg.get('TEST_PARAM', 'TIMEOUT'))) General.clsGlobal.LoopitIteration = sCfg.getint('TEST_PARAM', 'NUMBER_OF_LOOP') General.clsGlobal.LoopitResetType = sCfg.get('TEST_PARAM', 'RESET_TYPE') #scriptGlobals.MainFrame.AutoTestAbortHdlr.SetSiRFLiveEventHdlr += scriptUtilities.abortTest testContinue = True if (scriptGlobals.SignalSource == General.clsGlobal.SIM): if (scriptSim.isSimRunning() == True): result = MessageBoxEx.Show("SIM is running -- Proceed?", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Information, 20000) if (result == DialogResult.Yes): testContinue = True scriptSim.simStop() scriptSim.simLoad(scriptGlobals.SimFile)
# Send cold so SGEE would work scriptUtilities.init("COLD") try: General.clsGlobal.Abort = False General.clsGlobal.AbortSingle = False scriptGlobals.Exiting = False scriptGlobals.TestAborted = False # Read configuration parameters # Data in pair key and value sCfg = ConfigParser.ConfigParser() sCfg.read(scriptGlobals.ScriptConfigFilePath) # timeout = 26 General.clsGlobal.LoopitTimeout = int(scriptUtilities.ConvertToDouble(sCfg.get('TEST_PARAM','TIMEOUT'))) General.clsGlobal.LoopitIteration = sCfg.getint('TEST_PARAM','NUMBER_OF_LOOP') General.clsGlobal.LoopitResetType = sCfg.get('TEST_PARAM','RESET_TYPE') #scriptGlobals.MainFrame.AutoTestAbortHdlr.SetSiRFLiveEventHdlr += scriptUtilities.abortTest testContinue = True if (scriptGlobals.SignalSource == General.clsGlobal.SIM): if (scriptSim.isSimRunning() == True): result = MessageBoxEx.Show("SIM is running -- Proceed?", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Information,20000) if (result == DialogResult.Yes): testContinue = True scriptSim.simStop() scriptSim.simLoad(scriptGlobals.SimFile) # scriptSim.simSetAllChanAtten(scriptGlobals.SimInitialAtten) scriptSim.simRun() else: