Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Frequency.Center.Step.Link.Factor

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FactorCls: """Factor commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("factor", core, parent)
[docs] def set(self, factor: float) -> None: """SCPI: [SENSe]:FREQuency:CENTer:STEP:LINK:FACTor \n Snippet: driver.applications.k14Xnr5G.sense.frequency.center.step.link.factor.set(factor = 1.0) \n Defines a step size factor if the center frequency step size is coupled to the span or the resolution bandwidth. \n :param factor: 1 to 100 PCT Unit: PCT """ param = Conversions.decimal_value_to_str(factor) self._core.io.write(f'SENSe:FREQuency:CENTer:STEP:LINK:FACTor {param}')
[docs] def get(self) -> float: """SCPI: [SENSe]:FREQuency:CENTer:STEP:LINK:FACTor \n Snippet: value: float = driver.applications.k14Xnr5G.sense.frequency.center.step.link.factor.get() \n Defines a step size factor if the center frequency step size is coupled to the span or the resolution bandwidth. \n :return: factor: 1 to 100 PCT Unit: PCT""" response = self._core.io.query_str(f'SENSe:FREQuency:CENTer:STEP:LINK:FACTor?') return Conversions.str_to_float(response)