Source code for RsFsw.Implementations.Applications.K10x_Lte.Unit.Caxes

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


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

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

[docs] def set(self, unit: enums.LimitUnitLte) -> None: """ ``UNIT:CAXes`` \n Snippet: ``driver.applications.k10Xlte.unit.caxes.set(unit = enums.LimitUnitLte.CARR)`` \n Selects the scale of the x-axis for result displays that show subcarrier results. :param unit: CARR Shows the number of the subcarriers on the x-axis. HZ Shows the frequency of the subcarriers on the x-axis. """ param = Conversions.enum_scalar_to_str(unit, enums.LimitUnitLte) self._core.io.write(f'UNIT:CAXes {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.LimitUnitLte: """ ``UNIT:CAXes`` \n Snippet: ``value: enums.LimitUnitLte = driver.applications.k10Xlte.unit.caxes.get()`` \n Selects the scale of the x-axis for result displays that show subcarrier results. :return: unit: CARR Shows the number of the subcarriers on the x-axis. HZ Shows the frequency of the subcarriers on the x-axis. """ response = self._core.io.query_str(f'UNIT:CAXes?') return Conversions.str_to_scalar_enum(response, enums.LimitUnitLte)