Source code for RsFsw.Implementations.Display.Window.Pspectrum.Color.Lower

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LowerCls: """Lower commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("lower", core, parent)
[docs] def set(self, percentage: float, window=repcap.Window.Default) -> None: """SCPI: DISPlay[:WINDow<n>]:PSPectrum:COLor:LOWer \n Snippet: driver.display.window.pspectrum.color.lower.set(percentage = 1.0, window = repcap.Window.Default) \n Sets the lower percentage boundary of the persistence spectrum. \n :param percentage: Statistical frequency percentage. Range: 0 to 65,6, Unit: % :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ param = Conversions.decimal_value_to_str(percentage) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:PSPectrum:COLor:LOWer {param}')
[docs] def get(self, window=repcap.Window.Default) -> float: """SCPI: DISPlay[:WINDow<n>]:PSPectrum:COLor:LOWer \n Snippet: value: float = driver.display.window.pspectrum.color.lower.get(window = repcap.Window.Default) \n Sets the lower percentage boundary of the persistence spectrum. \n :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :return: percentage: Statistical frequency percentage. Range: 0 to 65,6, Unit: %""" window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) response = self._core.io.query_str(f'DISPlay:WINDow{window_cmd_val}:PSPectrum:COLor:LOWer?') return Conversions.str_to_float(response)