Source code for RsSmw.Implementations.Source.Iq.Output.Analog.Envelope.Shaping.Clipping

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


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

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

[docs] def get_from_py(self) -> int: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:CLIPping:FROM`` \n Snippet: ``value: int = driver.source.iq.output.analog.envelope.shaping.clipping.get_from_py()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:CLIPping:FROM?') return Conversions.str_to_int(response)
[docs] def set_from_py(self, clipping_from: int) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:CLIPping:FROM`` \n Snippet: ``driver.source.iq.output.analog.envelope.shaping.clipping.set_from_py(clipping_from = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(clipping_from) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:CLIPping:FROM {param}')
[docs] def get_to(self) -> int: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:CLIPping:TO`` \n Snippet: ``value: int = driver.source.iq.output.analog.envelope.shaping.clipping.get_to()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:CLIPping:TO?') return Conversions.str_to_int(response)
[docs] def set_to(self, clipping_to: int) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:CLIPping:TO`` \n Snippet: ``driver.source.iq.output.analog.envelope.shaping.clipping.set_to(clipping_to = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(clipping_to) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:CLIPping:TO {param}')