Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Rlength.Symbols.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:SYMBols[:VALue]`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.rlength.symbols.value.set(record_length = 1.0)`` \n Defines the capture length for further processing, e.g. for burst search, in symbols. Note that the maximum record length depends on the sample rate for signal capture (see method ``RsFsw.applications.k70Vsa.sense.ddemod.prate.set()`` ) . The maximum record length (in symbols) can be calculated as: RecordlengthMAX = 460000000/ <points per symbol> :param record_length: Unit: SYM """ param = Conversions.decimal_value_to_str(record_length) self._core.io.write(f'SENSe:DDEMod:RLENgth:SYMBols:VALue {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DDEMod:RLENgth:SYMBols[:VALue]`` \n Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.rlength.symbols.value.get()`` \n Defines the capture length for further processing, e.g. for burst search, in symbols. Note that the maximum record length depends on the sample rate for signal capture (see method ``RsFsw.applications.k70Vsa.sense.ddemod.prate.set()`` ) . The maximum record length (in symbols) can be calculated as: RecordlengthMAX = 460000000/ <points per symbol> :return: record_length: Unit: SYM """ response = self._core.io.query_str(f'SENSe:DDEMod:RLENgth:SYMBols:VALue?') return Conversions.str_to_float(response)