Source code for RsSmbv.Implementations.Source.Iq.Doherty.Amam.Value

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
from ...... import enums


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

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

[docs] def get(self, xvalue: float, xunit: enums.Unknown) -> float: """ ``[SOURce<HW>]:IQ:DOHerty:AMAM:VALue`` \n Snippet: ``value: float = driver.source.iq.doherty.amam.value.get(xvalue = 1.0, xunit = enums.Unknown.DBM)`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('xvalue', xvalue, DataType.Float), ArgSingle('xunit', xunit, DataType.Enum, enums.Unknown)) response = self._core.io.query_str(f'SOURce<HwInstance>:IQ:DOHerty:AMAM:VALue? {param}'.rstrip()) return Conversions.str_to_float(response)
[docs] def get_level(self) -> float: """ ``[SOURce<HW>]:IQ:DOHerty:AMAM:VALue:LEVel`` \n Snippet: ``value: float = driver.source.iq.doherty.amam.value.get_level()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DOHerty:AMAM:VALue:LEVel?') return Conversions.str_to_float(response)
[docs] def get_pep(self) -> float: """ ``[SOURce<HW>]:IQ:DOHerty:AMAM:VALue:PEP`` \n Snippet: ``value: float = driver.source.iq.doherty.amam.value.get_pep()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DOHerty:AMAM:VALue:PEP?') return Conversions.str_to_float(response)