def performSetValue(self, quant, value, **kw): if quant.name == 'Waveform': if len(value) > self.max_waveform_size: value = value[:self.max_waveform_size] value = np.array(value) vpp = value.max() - value.min() offs = (value.max() + value.min())/2.0 if vpp == 0: self.DC(offs) return name = kw['name'] if 'name' in kw.keys() else 'ABS' freq = kw['freq'] if 'freq' in kw.keys() else None self.update_waveform(2*(value-offs)/vpp, name=name) self.use_waveform(name, vpp=vpp, offs=offs, freq=freq) else: BaseDriver.performSetValue(self, quant, value, **kw)
def performSetValue(self, quant, value, **kw): if quant.name == '': return else: return BaseDriver.performSetValue(self, quant, value, **kw)
def performSetValue(self, quant, value, **kw): # if quant.name not in ['']: BaseDriver.performSetValue(self, quant, value, **kw) self.config_updated = False