예제 #1
0
    def setWave(self, inVolGain, probegain, current_value):
        self.voltMin = (current_value / (10**12) / inVolGain) * probegain
        self.voltMax = (current_value / (10**12) / inVolGain) * probegain

        self.measurementThread_currentclamp.wave = blockWave(
            self.sampleRate, self.frequency, self.voltMin, self.voltMax,
            self.dutycycle)
예제 #2
0
    def setWave(self, inVolGain, diffvoltage, lowervoltage):
        self.voltMin = lowervoltage / inVolGain
        self.voltMax = self.voltMin + diffvoltage / inVolGain

        self.measurementThread.wave = blockWave(self.sampleRate,
                                                self.frequency, self.voltMin,
                                                self.voltMax, self.dutycycle)
예제 #3
0
 def setWave(self, inVolGain, holde_volatge):
     self.voltMax = holde_volatge / 1000 / inVolGain
     self.voltMin = holde_volatge / 1000 / inVolGain
     #self.constants.patchSealMaxVol/constant
     self.measurementThread_hold.wave = blockWave(self.sampleRate,
                                                  self.frequency,
                                                  self.voltMin,
                                                  self.voltMax,
                                                  self.dutycycle)
예제 #4
0
    def __init__(self):
        """Initiate all the values."""
        self.constants = MeasurementConstants()
        self.sampleRate = self.constants.patchSealSampRate
        self.frequency = self.constants.patchSealFreq
        self.voltMin = self.constants.patchSealMinVol
        self.voltMax = self.constants.patchSealMaxVol
        self.dutycycle = self.constants.patchSealDuty
        self.readNumber = 1000  #Readnumber for the measurementThread (should be a multiple of the wavelength)

        wave = blockWave(self.sampleRate, self.frequency, self.voltMin,
                         self.voltMax, self.dutycycle)
        self.measurementThread = ContinuousPatchThread(wave, self.sampleRate,
                                                       self.readNumber)
예제 #5
0
 def setWave(self, inVolGain):
     self.voltMax = self.constants.patchSealMaxVol / inVolGain
     self.measurementThread.wave = blockWave(self.sampleRate,
                                             self.frequency, self.voltMin,
                                             self.voltMax, self.dutycycle)