[docs]classThresholdCls:"""Threshold commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("threshold",core,parent)
[docs]defset(self,level:float)->None:"""SCPI: [SENSe]:DETect:THReshold \n Snippet: driver.applications.k149Uwb.sense.detect.threshold.set(level = 1.0) \n The threshold determines whether a pulse is detected or not. The top of a pulse must exceed the threshold in order to be detected. The threshold is defined in relation to the reference defined by [SENSe:]DETect:REFerence. \n :param level: numeric value in dB or dBm, depending on reference type """param=Conversions.decimal_value_to_str(level)self._core.io.write(f'SENSe:DETect:THReshold {param}')
[docs]defget(self)->float:"""SCPI: [SENSe]:DETect:THReshold \n Snippet: value: float = driver.applications.k149Uwb.sense.detect.threshold.get() \n The threshold determines whether a pulse is detected or not. The top of a pulse must exceed the threshold in order to be detected. The threshold is defined in relation to the reference defined by [SENSe:]DETect:REFerence. \n :return: level: numeric value in dB or dBm, depending on reference type"""response=self._core.io.query_str(f'SENSe:DETect:THReshold?')returnConversions.str_to_float(response)