Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Rlength.Value

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


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

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

[docs] def set(self, record_length: float) -> None: """ ``[SENSe]:DDEMod:RLENgth[:VALue]`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.rlength.value.set(record_length = 1.0)`` \n Defines or queries the capture length for further processing, e.g. for burst search. Note that the maximum capture length depends on the sample rate for signal capture (see method ``RsFsw.applications.k70Vsa.sense.ddemod.prate.set()`` ) . :param record_length: The capture length can be defined in time (seconds) or symbols (SYM) . The return value is always in time (s) . To query the capture length in symbols, use the method ``RsFsw.applications.k70Vsa.sense.ddemod.rlength.symbols.value.set()`` command. Unit: S """ param = Conversions.decimal_value_to_str(record_length) self._core.io.write(f'SENSe:DDEMod:RLENgth:VALue {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DDEMod:RLENgth[:VALue]`` \n Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.rlength.value.get()`` \n Defines or queries the capture length for further processing, e.g. for burst search. Note that the maximum capture length depends on the sample rate for signal capture (see method ``RsFsw.applications.k70Vsa.sense.ddemod.prate.set()`` ) . :return: record_length: The capture length can be defined in time (seconds) or symbols (SYM) . The return value is always in time (s) . To query the capture length in symbols, use the method ``RsFsw.applications.k70Vsa.sense.ddemod.rlength.symbols.value.set()`` command. Unit: S """ response = self._core.io.query_str(f'SENSe:DDEMod:RLENgth:VALue?') return Conversions.str_to_float(response)