Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Nr5G.Rsummary.Show

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


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

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

[docs] def set(self, result: enums.SummaryMode) -> None: """ ``[SENSe]:NR5G:RSUMmary:SHOW`` \n Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.rsummary.show.set(result = enums.SummaryMode.AVERage)`` \n Selects the way the contents of the result summary are calculated. :param result: AVERage Shows the average over all analyzed frames. SINGle Shows the result for the frame selected with method ``RsFsw.applications.k14Xnr5G.sense.nr5G.cc.frame.select.set()`` . If only one frame has been captured, the results are the same in both cases. """ param = Conversions.enum_scalar_to_str(result, enums.SummaryMode) self._core.io.write(f'SENSe:NR5G:RSUMmary:SHOW {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.SummaryMode: """ ``[SENSe]:NR5G:RSUMmary:SHOW`` \n Snippet: ``value: enums.SummaryMode = driver.applications.k14Xnr5G.sense.nr5G.rsummary.show.get()`` \n Selects the way the contents of the result summary are calculated. :return: result: AVERage Shows the average over all analyzed frames. SINGle Shows the result for the frame selected with method ``RsFsw.applications.k14Xnr5G.sense.nr5G.cc.frame.select.set()`` . If only one frame has been captured, the results are the same in both cases. """ response = self._core.io.query_str(f'SENSe:NR5G:RSUMmary:SHOW?') return Conversions.str_to_scalar_enum(response, enums.SummaryMode)