def rxInit(): scriptUtilities.openPorts() # set atten scriptUtilities.setAtten(defaultAtten) # setup each active com ports comIdx = 0 for usePort in scriptGlobals.DutMainPortsList: if (usePort < 0): comIdx = comIdx + 1 continue myPort = scriptGlobals.DutPortManagersList[comIdx] myPort.comm.RxCtrl.SaveTestSetup("RX COM Port", "Com" + ` usePort `) myPort.comm.RxCtrl.SaveTestSetup("RX Serial Number", scriptGlobals.DutNamesList[comIdx]) myPort.comm.RxCtrl.PollSWVersion() myPort.comm.ReadAutoReplyData(scriptGlobals.ScriptConfigFilePath) myPort.comm.RxCtrl.SetValidatePostionFlag(True) myPort.comm.RxCtrl.OpenChannel("SSB") myPort.comm.RxCtrl.OpenChannel("STAT") comIdx = comIdx + 1 # Send cold so SGEE would work scriptUtilities.init("COLD")
def rxInit(): scriptUtilities.openPorts() # Initialize # set atten scriptUtilities.setAtten(defaultAtten) # setup each active com ports comIdx = 0 for usePort in scriptGlobals.DutMainPortsList: if (usePort < 0): comIdx = comIdx + 1 continue myPort = scriptGlobals.DutPortManagersList[comIdx] myPort.comm.RxCtrl.SaveTestSetup("RX COM Port","Com" + `usePort`) myPort.comm.RxCtrl.SaveTestSetup("RX Serial Number",scriptGlobals.DutNamesList[comIdx]) myPort.comm.LowPowerParams.Mode = 0 myPort.comm.RxCtrl.SetPowerMode(False) myPort.comm.Toggle4eWakeupPort() myPort.comm.RxCtrl.PollSWVersion() myPort.comm.ReadAutoReplyData(scriptGlobals.ScriptConfigFilePath) myPort.comm.RxCtrl.SetValidatePostionFlag(True) myPort.comm.RxCtrl.OpenChannel("SSB") myPort.comm.RxCtrl.OpenChannel("STAT") comIdx = comIdx + 1 # Send cold so SGEE would work scriptUtilities.init("COLD")
def rxInit(): scriptUtilities.openPorts() # Initialize # set atten scriptUtilities.setAtten(defaultAtten) # setup each active com ports comIdx = 0 for usePort in scriptGlobals.DutMainPortsList: if usePort < 0: comIdx = comIdx + 1 continue myPort = scriptGlobals.DutPortManagersList[comIdx] myPort.comm.RxCtrl.SaveTestSetup("RX COM Port", "Com" + ` usePort `) myPort.comm.RxCtrl.SaveTestSetup("RX Serial Number", scriptGlobals.DutNamesList[comIdx]) myPort.comm.RxCtrl.PollSWVersion() myPort.comm.ReadAutoReplyData(scriptGlobals.ScriptConfigFilePath) myPort.comm.RxCtrl.SetValidatePostionFlag(True) myPort.comm.RxCtrl.OpenChannel("SSB") myPort.comm.RxCtrl.OpenChannel("STAT") comIdx = comIdx + 1 scriptUtilities.init()
if (myPort.comm.OpenPort() == False): portList[comIdx] = -1 continue myPort.RunAsyncProcess() if (myPort.SignalViewLocation.IsOpen == False): mainFrame.CreateSignalViewWin(myPort) if (myPort.DebugViewLocation.IsOpen == False): mainFrame.CreateDebugViewWin(myPort) myPort.comm.RxCtrl.OpenChannel("SSB") myPort.comm.RxCtrl.PollSWVersion() myPort.comm.ReadAutoReplyData(scriptGlobals.ScriptConfigFilePath) myPort.comm.RxCtrl.ResetCtrl.Reset(General.clsGlobal.HOT) comIdx = comIdx + 1 scriptUtilities.init() mainFrame.UpdateGUIFromScript() mainFrame.Delay(10) # setup each active com ports comIdx = 0 for usePort in scriptGlobals.DutMainPortsList: if (usePort < 0): comIdx = comIdx + 1 continue myPort = scriptGlobals.DutPortManagersList[comIdx] myPort.comm.RxCtrl.OpenChannel("SSB") myPort.comm.RxCtrl.OpenChannel("STAT") myPort.comm.RxCtrl.PollSWVersion() comId = comIdx + 1 # Loop for TP configuration for TPIndex in range(len(TPOnTimeArray)):