コード例 #1
0
    def startThread(self):

        if self.singleFreqCheckBox.isChecked():
            self.StopFreq = 0
            self.Steps = 0

        self.duty = self.dutyCycleSlider.value()
        self.edgeTimes = self.edgeTimeSlider.value()

        parameterArray = [
            self.Scope, self.Load, self.Waveform, self.StartFreq,
            self.StopFreq, self.Steps, self.vregSelection, self.vregText,
            self.configID, self.pcbaSN, self.productSN, self.scopeType,
            self.probeType, self.runNotes, self.duty, self.edgeTimes,
            self.amplitude, self.slammer, self.sense_Resistor, self.slamLoad,
            self.chromaLoad
        ]
        #        self.work = TimerThread(self.Scope, self.Load, self.Waveform, self.StartFreq, self.StopFreq, self.Steps, self.vregSelection)
        self.work = timerThread.TimerThread(parameterArray)
        self.work.timerSignal.connect(self.runLoop)
        self.work.quitSignal.connect(self.quitLoop)
        self.scopeShot_Signal.connect(self.work.scopeShot_Slot)
        self.thread = QThread()

        self.work.moveToThread(self.thread)
        self.thread.started.connect(self.work.run)
        self.thread.start()
コード例 #2
0
    def startThread(self):
        #We're only using one Chroma mainframe here. Config file functionality not fully implemented
        self.work = timerThread.TimerThread(self.load, self.str_load_frame_id,
                                            self.step_Count, self.dutList,
                                            self.testList)
        self.work.timerSignal.connect(self.runLoop)
        self.work.quitSignal.connect(self.quitLoop)
        self.work.testInfoSignal.connect(self.testInfo)
        self.thread = QThread()

        self.work.moveToThread(self.thread)
        self.thread.started.connect(self.work.run)
        self.thread.finished.connect(self.close)
        self.thread.start()
    def startThread(self):

        parameterArray = [self.Scope, self.Load, self.Waveform, self.slamLoadSlider.value(), self.dutyCycleSlider.value(), self.onTimeSlider.value(), self.microSlam.isChecked()]
        self.work = timerThread.TimerThread(parameterArray) 
        self.work.timerSignal.connect(self.runLoop)
        self.work.quitSignal.connect(self.quitLoop)
        self.scopeShot_Signal.connect(self.work.scopeShot_Slot)
        self.dutyCycle_Signal.connect(self.work.dutyCycle_Slot)
        self.onTime_Signal.connect(self.work.onTime_Slot)
        self.slamLoad_Signal.connect(self.work.slamLoad_Slot)
        self.thread = QThread()

        self.work.moveToThread(self.thread)
        self.thread.started.connect(self.work.run)
        self.thread.start()
コード例 #4
0
ファイル: CFTAC.py プロジェクト: Korrigan36/CFTAC
    def startThread(self):

        self.adInstr = "NI"

        parameterArray = [
            self.Scope, self.logFilePointer, self.configFileName[0],
            self.configID, self.pcbaSN, self.productSN, self.runNotes,
            self.workBook, self.SummarySheet
        ]

        self.logFilePointer.write("Starting Thread\n")
        self.work = timerThread.TimerThread(parameterArray)
        self.work.timerSignal.connect(self.runLoop)
        self.work.quitSignal.connect(self.quitLoop)
        self.continue_Signal.connect(self.work.continue_Slot)
        self.thread = QThread()

        self.work.moveToThread(self.thread)
        self.thread.started.connect(self.work.run)
        self.thread.start()
コード例 #5
0
    def startThread(self):

        self.adInstr = "NI"

        if self.lockhartCB.isChecked():
            self.logFilePointer.write("Lockhart Board\n")
        else:
            self.logFilePointer.write("Anaconda Board\n")
            if self.lowCurrentCB.isChecked():
                self.logFilePointer.write("Low Current Mode\n")
            else:
                self.logFilePointer.write("High Current Mode\n")
        self.logFilePointer.write("GFX Kcs " + self.gfxKcs.text() + "\n")
        self.logFilePointer.write("GFX Gain " + self.gfxGain.text() + "\n")
        self.logFilePointer.write("GFX Rimon " + self.gfxRimon.text() + "\n")
        self.logFilePointer.write("GFX TDC " + self.gfxTdc.text() + "\n")
        self.logFilePointer.write("CPU Kcs " + self.cpuKcs.text() + "\n")
        self.logFilePointer.write("CPU Gain " + self.cpuGain.text() + "\n")
        self.logFilePointer.write("CPU Rimon " + self.cpuRimon.text() + "\n")
        self.logFilePointer.write("CPU TDC " + self.cpuTdc.text() + "\n")
        self.logFilePointer.write("Memphy Kcs " + self.memphyKcs.text() + "\n")
        self.logFilePointer.write("Memphy Gain " + self.memphyGain.text() +
                                  "\n")
        self.logFilePointer.write("Memphy Rimon " + self.memphyRimon.text() +
                                  "\n")
        self.logFilePointer.write("Memphy TDC " + self.memphyTdc.text() + "\n")
        self.logFilePointer.write("SOC Kcs " + self.socKcs.text() + "\n")
        self.logFilePointer.write("SOC Gain " + self.socGain.text() + "\n")
        self.logFilePointer.write("SOC Rimon " + self.socRimon.text() + "\n")
        self.logFilePointer.write("SOC TDC " + self.socTdc.text() + "\n")

        parameterArray = [
            self.Load, self.DMM, self.adInstr,
            self.vimonCB.isChecked(),
            self.bitWeightCB.isChecked(),
            self.tempCB.isChecked(),
            self.voltCB.isChecked(),
            self.calCB.isChecked(),
            self.loadCB.isChecked(), self.logFilePointer,
            self.lockhartCB.isChecked(),
            self.lowCurrentCB.isChecked(), self.vregUnderTest, self.configID,
            self.pcbaSN, self.productSN, self.runNotes, self.workBook,
            self.SummarySheet, self.PlotSheet,
            self.gfxKcs.text(),
            self.cpuKcs.text(),
            self.memphyKcs.text(),
            self.socKcs.text(),
            self.gfxGain.text(),
            self.cpuGain.text(),
            self.memphyGain.text(),
            self.socGain.text(),
            self.gfxRimon.text(),
            self.cpuRimon.text(),
            self.memphyRimon.text(),
            self.socRimon.text(),
            self.gfxTdc.text(),
            self.cpuTdc.text(),
            self.memphyTdc.text(),
            self.socTdc.text(),
            self.gfxMinload.text(),
            self.cpuMinload.text(),
            self.memphyMinload.text(),
            self.socMinload.text()
        ]

        self.logFilePointer.write("Starting Thread for " + self.vregUnderTest +
                                  "\n")
        self.work = timerThread.TimerThread(parameterArray)
        self.work.timerSignal.connect(self.runLoop)
        self.work.quitSignal.connect(self.quitLoop)
        self.thread = QThread()

        self.work.moveToThread(self.thread)
        self.thread.started.connect(self.work.run)
        self.thread.start()