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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FactorCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("factor", core, parent)

[docs] def set(self, link_factor: float) -> None: """ ``[SENSe]:FREQuency:CENTer:STEP:LINK:FACTor`` \n Snippet: ``driver.sense.frequency.center.step.link.factor.set(link_factor = 1.0)`` \n Defines a step size factor if the center frequency step size is coupled to the span or the resolution bandwidth. :param link_factor: 1 to 100 PCT Unit: PCT """ param = Conversions.decimal_value_to_str(link_factor) self._core.io.write(f'SENSe:FREQuency:CENTer:STEP:LINK:FACTor {param}')
[docs] def get(self) -> float: """ ``[SENSe]:FREQuency:CENTer:STEP:LINK:FACTor`` \n Snippet: ``value: float = driver.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. """ response = self._core.io.query_str(f'SENSe:FREQuency:CENTer:STEP:LINK:FACTor?') return Conversions.str_to_float(response)