Source code for RsSmw.Implementations.Source.Bb.Mccw.Edit.Carrier.Phase

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


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

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

[docs] def get_step(self) -> float: """ ``[SOURce<HW>]:BB:MCCW:EDIT:CARRier:PHASe:STEP`` \n Snippet: ``value: float = driver.source.bb.mccw.edit.carrier.phase.get_step()`` \n For disabled optimization of the crest factor, sets the step width by which the start phase of the carriers in the defined carrier range is incremented. :return: step: float Range: -359.99 to 359.99 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:MCCW:EDIT:CARRier:PHASe:STEP?') return Conversions.str_to_float(response)
[docs] def get_start(self) -> float: """ ``[SOURce<HW>]:BB:MCCW:EDIT:CARRier:PHASe:[STARt]`` \n Snippet: ``value: float = driver.source.bb.mccw.edit.carrier.phase.get_start()`` \n Sets the power/pahse for the starting carrier. The power of the remaining carriers is stepped up or down by the power specified with the method ``RsSmw.source.bb.mccw.edit.carrier.power.step()`` command. :return: start: float Range: -80 to 0 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:MCCW:EDIT:CARRier:PHASe:STARt?') return Conversions.str_to_float(response)