Beispiel #1
0
                ttffLogFile = baseName + "_ttff.csv"
                # update Test Info
                if (level < 0):
                    testSetupLevelString = "%s%s%s" % ("m", ` -level `.replace(
                        '.', 'p'), scriptGlobals.SignalType)
                else:
                    testSetupLevelString = "%s%s" % ( ` level `.replace(
                        '.', 'p'), scriptGlobals.SignalType)

                scriptGlobals.TestID = "%s-%s" % (scriptGlobals.TestName,
                                                  testSetupLevelString)
                Now = time.localtime(time.time())
                scriptGlobals.StartTime = time.strftime(
                    "%m/%d/%Y %H:%M:%S", Now)
                myPort.comm.RxCtrl.DutStationSetup.SignalLevel = level
                scriptUtilities.updateDUTInfo(comIdx)
                myPort.comm.m_TestSetup.Atten = atten

                myPort.comm.Log.OpenFile(portLogFile)
                myPort.comm.RxCtrl.ResetCtrl.OpenTTFFLog(ttffLogFile)
                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()
Beispiel #2
0
	    myPort.comm.RxCtrl.PollSWVersion()
	    baseName = "%s%s_%s_%s_%s_%s" %(scriptGlobals.TestResultsDirectory,timeNowStr,scriptGlobals.DutNamesList[comIdx],myPort.comm.PortName,scriptGlobals.ScriptName,scriptGlobals.TestSignalLevelsList[0])		
	    portLogFile = baseName + scriptGlobals.LogFileExtsList[comIdx]
	    ttffLogFile = baseName + "_ttff.csv"
	    
	    # update Test Info	    
	    if (scriptGlobals.TestSignalLevelsList[0] < 0):
		testSetupLevelString = "%s%s%s" %("m",`-scriptGlobals.TestSignalLevelsList[0]`.replace('.','p'),scriptGlobals.SignalType) 	
	    else:
		testSetupLevelString = "%s%s" %(`scriptGlobals.TestSignalLevelsList[0]`.replace('.','p'),scriptGlobals.SignalType) 
		
	    scriptGlobals.TestID = "%s-%s" % (scriptGlobals.TestName,testSetupLevelString)	 
	    Now = time.localtime(time.time())
	    scriptGlobals.StartTime = time.strftime("%m/%d/%Y %H:%M:%S", Now)
	    myPort.comm.RxCtrl.DutStationSetup.SignalLevel = scriptGlobals.TestSignalLevelsList[0]
	    scriptUtilities.updateDUTInfo(comIdx)
	    myPort.comm.m_TestSetup.Atten = atten
	    
	    myPort.comm.Log.OpenFile(portLogFile)		
	    myPort.comm.RxCtrl.ResetCtrl.OpenTTFFLog(ttffLogFile)
	    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)