Source code for RsSmw.Implementations.Source.Bb.Gnss.Sv.Selection.Channels

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


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

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

[docs] def get_max(self) -> int: """ ``[SOURce<HW>]:BB:GNSS:SV:SELection:CHANnels:MAX`` \n Snippet: ``value: int = driver.source.bb.gnss.sv.selection.channels.get_max()`` \n Queries the maximum number of GNSS channels. :return: max_numb_channels: integer Range: 6 to 612 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:SELection:CHANnels:MAX?') return Conversions.str_to_int(response)
[docs] def set_max(self, max_numb_channels: int) -> None: """ ``[SOURce<HW>]:BB:GNSS:SV:SELection:CHANnels:MAX`` \n Snippet: ``driver.source.bb.gnss.sv.selection.channels.set_max(max_numb_channels = 1)`` \n Queries the maximum number of GNSS channels. :param max_numb_channels: integer Range: 6 to 612 """ param = Conversions.decimal_value_to_str(max_numb_channels) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:SELection:CHANnels:MAX {param}')