Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Nr5G.Segment.Select

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


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

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

[docs] def set(self, segment: float) -> None: """ ``[SENSe]:NR5G:SEGMent:SELect`` \n Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.segment.select.set(segment = 1.0)`` \n Selects the analyzed segment for a segmented capture. Prerequisites for this command \n - Turn on segmented capture (method ``RsFsw.applications.k14Xnr5G.sense.sweep.scapture.state.set()`` ) . :param segment: numeric value (integer only) The value range depends on the number of captured segments (method ``RsFsw.sense.sweep.scapture.events.set()`` ) . """ param = Conversions.decimal_value_to_str(segment) self._core.io.write(f'SENSe:NR5G:SEGMent:SELect {param}')
[docs] def get(self) -> float: """ ``[SENSe]:NR5G:SEGMent:SELect`` \n Snippet: ``value: float = driver.applications.k14Xnr5G.sense.nr5G.segment.select.get()`` \n Selects the analyzed segment for a segmented capture. Prerequisites for this command \n - Turn on segmented capture (method ``RsFsw.applications.k14Xnr5G.sense.sweep.scapture.state.set()`` ) . :return: segment: numeric value (integer only) The value range depends on the number of captured segments (method ``RsFsw.sense.sweep.scapture.events.set()`` ) . """ response = self._core.io.query_str(f'SENSe:NR5G:SEGMent:SELect?') return Conversions.str_to_float(response)