Source code for RsSmw.Implementations.Source.Bb.Dm.AqPsk

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


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

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

[docs] def get_angle(self) -> float: """ ``[SOURce<HW>]:BB:DM:AQPSk:ANGLe`` \n Snippet: ``value: float = driver.source.bb.dm.aqPsk.get_angle()`` \n For AQPSK modulation, sets the angle alpha between the point (0,0) and the I axis. :return: angle: float Range: 0 to 180, Unit: Deg """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DM:AQPSk:ANGLe?') return Conversions.str_to_float(response)
[docs] def set_angle(self, angle: float) -> None: """ ``[SOURce<HW>]:BB:DM:AQPSk:ANGLe`` \n Snippet: ``driver.source.bb.dm.aqPsk.set_angle(angle = 1.0)`` \n For AQPSK modulation, sets the angle alpha between the point (0,0) and the I axis. :param angle: float Range: 0 to 180, Unit: Deg """ param = Conversions.decimal_value_to_str(angle) self._core.io.write(f'SOURce<HwInstance>:BB:DM:AQPSk:ANGLe {param}')