Esempio n. 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
        )
Esempio n. 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
        )
Esempio n. 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
     )
Esempio n. 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= 500 #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_currentclamp = ContinuousPatchThread_currentclamp(wave, self.sampleRate, self.readNumber)