[docs]classResultCls:"""Result commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("result",core,parent)
[docs]defget(self,trace_mode:enums.TraceModeB)->float:"""SCPI: [SENSe]:ADEMod:PM:AFSPectrum:RESult \n Snippet: value: float = driver.sense.ademod.pm.afSpectrum.result.get(trace_mode = enums.TraceModeB.AVERage) \n Reads the result data of the evaluated signal in the specified trace mode. The data format of the output data block is defined by the FORMat command (see method RsFsw.FormatPy.Data.set) . The trace results are configured for a specific evaluation. The following table indicates which command syntax refers to which evaluation method, as well as the output unit of the results. Table Header: Command syntax / Evaluation method / Output unit \n - ACV[:TDOMain] / AC-Video time domain / V - ACV:AFSpectrum / AC-Video spectrum / V - AM[:ABSolute][:TDOMain] / RF time domain / dBm - AM:RELative[:TDOMain] / AM time domain / % - AM:RELative:AFSPectrum / AM spectrum / % - FM[:TDOMain] / FM time domain / kHz - FM:AFSPectrum / FM spectrum / kHz - PM[:TDOMain] / PM time domain / rad or ° - PM:AFSPectrum / PM spectrum / rad or ° - SPECtrum / RF spectrum / dBm (logarithmic display) or V (linear display) . \n :param trace_mode: WRITe | AVERage | MAXHold | MINHold :return: trace_mode_result: The specified trace mode must be one of those configured by SENS:ADEM:Evaluation:TYPE, see [SENSe:]ADEMod:SPECtrum[:TYPE]. Otherwise a query error is generated."""param=Conversions.enum_scalar_to_str(trace_mode,enums.TraceModeB)response=self._core.io.query_str(f'SENSe:ADEMod:PM:AFSPectrum:RESult? {param}')returnConversions.str_to_float(response)