Esempio n. 1
0
                        comIdx = comIdx + 1
                        continue
                    myPort = scriptGlobals.DutPortManagersList[comIdx]
                    myPort.comm.RxCtrl.ResetCtrl.ResetTTFFAvailable = False
                    myPort.comm.RxCtrl.ResetCtrl.LogTTFFCsv()
                    myPort.comm.RxCtrl.ResetCtrl.ResetPositionAvailable = False

                    comIdx = comIdx + 1

                # stop/rewind sim and run sim
                scriptSim.simStop()
                mainFrame.Delay(20)
                scriptSim.simRewind()
                scriptSim.simRun()
                scriptUtilities.logApp("*", "Reset since Sim restarts")
                scriptUtilities.reset("COLD")

            comIdx = 0
            for usePort in scriptGlobals.DutMainPortsList:
                if (usePort < 0):
                    comIdx = comIdx + 1
                    continue
                myPort = scriptGlobals.DutPortManagersList[comIdx]
                myPort.comm.LowPowerParams.Mode = 0
                myPort.comm.RxCtrl.SetPowerMode(False)
                myPort.comm.Toggle4eWakeupPort()
                comIdx = comIdx + 1

            almCollectionTime = 300
            displayStr = "%s: Wait %d sec for DUT to collect ALM information%s Press OK to cancel wait time" % (
                time.strftime("%Y/%m/%d %H:%M:%S", time.localtime()),
Esempio n. 2
0
		    # if ((General.clsGlobal.Abort == True) or (General.clsGlobal.AbortSingle == True)):
			# scriptGlobals.TestAborted = True
			# break
		    mainFrame.Delay(3)
				
		for loopCnt in range(0, LoopNumber):
		    logStr = "Trials %d/%d"% (loopCnt+1,LoopNumber)
		    scriptUtilities.logApp("*",logStr)
		    for delayIndex in range(0,len(DelayOffTimeArray)):
			offT = DelayOffTimeArray[delayIndex]
			onT = DelayOnTimeArray[delayIndex]
			# turn off 
			scriptUtilities.rfOnOff(False,atten)
			mainFrame.Delay(5)
			#reset
			scriptUtilities.reset(resetType)
			# wait for off time
			logStr = "RF for %d seconds" % (offT)
			scriptUtilities.logApp("*",logStr)
			mainFrame.Delay(offT)
			# turn on RF
			# wait for on time
			scriptUtilities.rfOnOff(True,atten)
			logStr = "RF on for %d seconds" % (onT)
			scriptUtilities.logApp("*",logStr)
			mainFrame.Delay(onT)
	
		#cleanup
    
		comIdx = 0	
		for usePort in scriptGlobals.DutMainPortsList:	
            while resetIdx < resetTotal:
                if scriptGlobals.TestAborted == True:
                    break
                stopTime = time.clock()
                elapsedTestTime = stopTime - startTestTime
                if (
                    (General.clsGlobal.LoopitIteration < 0)
                    and (collectionTime > 0)
                    and (elapsedTestTime > collectionTime)
                ):
                    # stop test now
                    break

                rLogStr = "####### Reset Number %d #######" % (resetIdx + 1)
                scriptUtilities.logApp("*", rLogStr)
                scriptUtilities.reset(General.clsGlobal.LoopitResetType)
                navStatusArray = len(scriptGlobals.DutMainPortsList) * [False]
                count = 0
                startDelay = General.clsGlobal.LoopitTimeout / 10
                while count <= startDelay:
                    if scriptGlobals.TestAborted == True:
                        break
                    print "Wait for nav loop %d" % (count)
                    comIdx = 0
                    for usePort in scriptGlobals.DutMainPortsList:
                        if usePort < 0:
                            comIdx = comIdx + 1
                            continue
                        myPort = scriptGlobals.DutPortManagersList[comIdx]
                        if navStatusArray[comIdx] == False:
                            navStatusArray[comIdx] = mainFrame.GetNavStatus(myPort.comm.PortName)
                resetTotal = General.clsGlobal.LoopitIteration
            # for resetIdx in range(0,General.clsGlobal.LoopitIteration):
            while (resetIdx < resetTotal):
                if (scriptGlobals.TestAborted == True):
                    break
                stopTime = time.clock()
                elapsedTestTime = stopTime - startTestTime
                if ((General.clsGlobal.LoopitIteration < 0)
                        and (collectionTime > 0)
                        and (elapsedTestTime > collectionTime)):
                    # stop test now
                    break

                rLogStr = "####### Reset Number %d #######" % (resetIdx + 1)
                scriptUtilities.logApp("*", rLogStr)
                scriptUtilities.reset(General.clsGlobal.LoopitResetType)
                navStatusArray = len(scriptGlobals.DutMainPortsList) * [False]
                count = 0
                startDelay = General.clsGlobal.LoopitTimeout / 10
                while (count <= startDelay):
                    if (scriptGlobals.TestAborted == True):
                        break
                    print "Wait for nav loop %d" % (count)
                    comIdx = 0
                    for usePort in scriptGlobals.DutMainPortsList:
                        if (usePort < 0):
                            comIdx = comIdx + 1
                            continue
                        myPort = scriptGlobals.DutPortManagersList[comIdx]
                        if (navStatusArray[comIdx] == False):
                            navStatusArray[comIdx] = mainFrame.GetNavStatus(
Esempio n. 5
0
			comIdx = comIdx + 1
			continue
		    myPort = scriptGlobals.DutPortManagersList[comIdx]
		    myPort.comm.RxCtrl.ResetCtrl.ResetTTFFAvailable = False
		    myPort.comm.RxCtrl.ResetCtrl.LogTTFFCsv()    
		    myPort.comm.RxCtrl.ResetCtrl.ResetPositionAvailable = False	
		    		
		    comIdx = comIdx + 1
		    
		# stop/rewind sim and run sim
		scriptSim.simStop()
		mainFrame.Delay(20)
		scriptSim.simRewind()
		scriptSim.simRun()
		scriptUtilities.logApp("*", "Reset since Sim restarts")
		scriptUtilities.reset("COLD")
	    
	    comIdx = 0    
	    for usePort in scriptGlobals.DutMainPortsList:	
		if (usePort < 0):
		    comIdx = comIdx + 1
		    continue
		myPort = scriptGlobals.DutPortManagersList[comIdx]
		myPort.comm.LowPowerParams.Mode = 0		    
		myPort.comm.RxCtrl.SetPowerMode(False)
		myPort.comm.Toggle4eWakeupPort()
		comIdx = comIdx + 1
	    
	    almCollectionTime = 300
	    displayStr = "%s: Wait %d sec for DUT to collect ALM information%s Press OK to cancel wait time" % (time.strftime("%Y/%m/%d %H:%M:%S", time.localtime()),almCollectionTime, "\r\n\r\n    ")
	    scriptUtilities.logApp("*",displayStr)
Esempio n. 6
0
                    # if ((General.clsGlobal.Abort == True) or (General.clsGlobal.AbortSingle == True)):
                        # scriptGlobals.TestAborted = True
                        # break
                    mainFrame.Delay(3)

                for loopCnt in range(0, LoopNumber):
                    logStr = "Trials %d/%d" % (loopCnt + 1, LoopNumber)
                    scriptUtilities.logApp("*", logStr)
                    for delayIndex in range(0, len(DelayOffTimeArray)):
                        offT = DelayOffTimeArray[delayIndex]
                        onT = DelayOnTimeArray[delayIndex]
                        # turn off
                        scriptUtilities.rfOnOff(False, atten)
                        mainFrame.Delay(5)
                        #reset
                        scriptUtilities.reset(resetType)
                        # wait for off time
                        logStr = "RF for %d seconds" % (offT)
                        scriptUtilities.logApp("*", logStr)
                        mainFrame.Delay(offT)
                        # turn on RF
                        # wait for on time
                        scriptUtilities.rfOnOff(True, atten)
                        logStr = "RF on for %d seconds" % (onT)
                        scriptUtilities.logApp("*", logStr)
                        mainFrame.Delay(onT)

                #cleanup

                comIdx = 0
                for usePort in scriptGlobals.DutMainPortsList: