defaultAtten = Utilities.HelperFunctions.GetCalibrationAtten( scriptGlobals.CableLoss, -130, scriptGlobals.SignalType) else: print "Signal Type is not correct" defaultAtten = 0 # set atten scriptUtilities.setAtten(defaultAtten) scriptGlobals.getTTFFs = [] scriptGlobals.getNavs = [] rxInit() # wait for nav waitTTFFLoops = 0 while (waitTTFFLoops < 13): if (scriptUtilities.waitForNav() == True): break else: mainFrame.Delay(10) waitTTFFLoops = waitTTFFLoops + 1 mainFrame.Delay(10) # Begin test scriptUtilities.logApp("*", scriptGlobals.TestBeginLabel) print "Number of test levels %d" % (len( scriptGlobals.TestSignalLevelsList)) for levelIndex in range(0, len(scriptGlobals.TestSignalLevelsList)): level = scriptGlobals.TestSignalLevelsList[levelIndex] atten = Utilities.HelperFunctions.GetCalibrationAtten( scriptGlobals.CableLoss, level, scriptGlobals.SignalType) if (scriptGlobals.TestAborted == True):
myPort.comm.RxCtrl.ResetCtrl.ResetCount = 0 myPort.comm.RxCtrl.ResetCtrl.LoopitInprogress = True myPort.comm.RxCtrl.ResetCtrl.ResetInterval = General.clsGlobal.LoopitTimeout # if not CGEE test disable CGEE since CGEE is enable by default if (mpmTestCondition.Contains("CGEE") == False): # myPort.comm.WriteData("A0 A2 00 06 E8 FE 00 00 00 00 01 E6 B0 B3") myPort.comm.WriteData("A0 A2 00 04 E8 20 00 01 01 09 B0 B3"); comIdx = comIdx + 1 scriptUtilities.setResetInitParams() scriptUtilities.logApp("*", scriptGlobals.InitializedLabel) # wait for nav waitTTFFLoops = 0 while(waitTTFFLoops < 13): if(scriptUtilities.waitForNav() == True): break else: mainFrame.Delay(10) waitTTFFLoops = waitTTFFLoops + 1 mainFrame.Delay(10) if (mpmSoakTimeSecs != 0): displayStr = "%s: Wait %d sec for DUT to collect GPS information%s Press OK to cancel wait time\n" % (time.strftime("%Y/%m/%d %H:%M:%S", time.localtime()),mpmSoakTimeSecs, "\r\n\r\n ") scriptUtilities.logApp("*",displayStr) result = MessageBoxEx.Show(displayStr, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information,int(mpmSoakTimeSecs)*1000); # Begin test scriptUtilities.logApp("*", scriptGlobals.TestBeginLabel) print "Number of test levels %d" % (len(scriptGlobals.TestSignalLevelsList)) for levelIndex in range(0, len(scriptGlobals.TestSignalLevelsList)):