[docs]classValueCls:"""Value commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("value",core,parent)
[docs]defset(self,power:float,window=repcap.Window.Default,limitIx=repcap.LimitIx.Default)->None:"""SCPI: CALCulate<n>:LIMit<li>:ESPectrum:VALue \n Snippet: driver.applications.k91Wlan.calculate.limit.espectrum.value.set(power = 1.0, window = repcap.Window.Default, limitIx = repcap.LimitIx.Default) \n Activates the manual limit line selection as and specifies the expected power as a value. Depending on the entered value, the associated predefined limit lines is selected. Has the same effect as a combination of the CALC:LIM:ESP:MODE MAN and the method RsFsw.Calculate.Limit.Espectrum.Pclass.Exclusive.set commands; however, the power class to be used is not defined directly, but via the expected power. As opposed to CALC:LIM:ESP:MODE AUTO, the power class is not re-assigned to the input signal power dynamically, but only once when the command is executed. \n :param power: integer Range: -200 to 199 :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :param limitIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Limit') """param=Conversions.decimal_value_to_str(power)window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)limitIx_cmd_val=self._cmd_group.get_repcap_cmd_value(limitIx,repcap.LimitIx)self._core.io.write(f'CALCulate{window_cmd_val}:LIMit{limitIx_cmd_val}:ESPectrum:VALue {param}')
[docs]defget(self,window=repcap.Window.Default,limitIx=repcap.LimitIx.Default)->float:"""SCPI: CALCulate<n>:LIMit<li>:ESPectrum:VALue \n Snippet: value: float = driver.applications.k91Wlan.calculate.limit.espectrum.value.get(window = repcap.Window.Default, limitIx = repcap.LimitIx.Default) \n Activates the manual limit line selection as and specifies the expected power as a value. Depending on the entered value, the associated predefined limit lines is selected. Has the same effect as a combination of the CALC:LIM:ESP:MODE MAN and the method RsFsw.Calculate.Limit.Espectrum.Pclass.Exclusive.set commands; however, the power class to be used is not defined directly, but via the expected power. As opposed to CALC:LIM:ESP:MODE AUTO, the power class is not re-assigned to the input signal power dynamically, but only once when the command is executed. \n :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :param limitIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Limit') :return: power: integer Range: -200 to 199"""window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)limitIx_cmd_val=self._cmd_group.get_repcap_cmd_value(limitIx,repcap.LimitIx)response=self._core.io.query_str(f'CALCulate{window_cmd_val}:LIMit{limitIx_cmd_val}:ESPectrum:VALue?')returnConversions.str_to_float(response)