Source code for RsSmw.Implementations.Source.Bb.W3Gpp.Mstation.Enhanced.Dpdch.DpControl.Range

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


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

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

[docs] def get_down(self) -> float: """ ``[SOURce<HW>]:BB:W3GPp:MSTation:[ENHanced]:[DPDCh]:DPControl:RANGe:DOWN`` \n Snippet: ``value: float = driver.source.bb.w3Gpp.mstation.enhanced.dpdch.dpControl.range.get_down()`` \n The command selects the dynamic range for ranging up the channel power. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:DPControl:RANGe:DOWN?') return Conversions.str_to_float(response)
[docs] def set_down(self, down: float) -> None: """ ``[SOURce<HW>]:BB:W3GPp:MSTation:[ENHanced]:[DPDCh]:DPControl:RANGe:DOWN`` \n Snippet: ``driver.source.bb.w3Gpp.mstation.enhanced.dpdch.dpControl.range.set_down(down = 1.0)`` \n The command selects the dynamic range for ranging up the channel power. :param down: float Range: 0 to 60, Unit: dB """ param = Conversions.decimal_value_to_str(down) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:DPControl:RANGe:DOWN {param}')
[docs] def get_up(self) -> float: """ ``[SOURce<HW>]:BB:W3GPp:MSTation:[ENHanced]:[DPDCh]:DPControl:RANGe:UP`` \n Snippet: ``value: float = driver.source.bb.w3Gpp.mstation.enhanced.dpdch.dpControl.range.get_up()`` \n The command selects the dynamic range for ranging up the channel power. :return: up: float Range: 0 to 60, Unit: dB """ response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:DPControl:RANGe:UP?') return Conversions.str_to_float(response)
[docs] def set_up(self, up: float) -> None: """ ``[SOURce<HW>]:BB:W3GPp:MSTation:[ENHanced]:[DPDCh]:DPControl:RANGe:UP`` \n Snippet: ``driver.source.bb.w3Gpp.mstation.enhanced.dpdch.dpControl.range.set_up(up = 1.0)`` \n The command selects the dynamic range for ranging up the channel power. :param up: float Range: 0 to 60, Unit: dB """ param = Conversions.decimal_value_to_str(up) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:DPControl:RANGe:UP {param}')