Source code for RsFsw.Implementations.Applications.K14x_Nr5G.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, axes: enums.AxesUnits) -> None: """ ``UNIT:CAXes`` \n Snippet: ``driver.applications.k14Xnr5G.unit.caxes.set(axes = enums.AxesUnits.CARRier)`` \n Selects the scale of the x-axis for result displays that show subcarrier results. :param axes: 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(axes, enums.AxesUnits) self._core.io.write(f'UNIT:CAXes {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.AxesUnits: """ ``UNIT:CAXes`` \n Snippet: ``value: enums.AxesUnits = driver.applications.k14Xnr5G.unit.caxes.get()`` \n Selects the scale of the x-axis for result displays that show subcarrier results. """ response = self._core.io.query_str(f'UNIT:CAXes?') return Conversions.str_to_scalar_enum(response, enums.AxesUnits)