Source code for rsmxo.Implementations.Franalysis.Margin.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_frequency(self) -> float: """ ``FRANalysis:MARGin:PHASe:FREQuency`` \n Snippet: ``value: float = driver.franalysis.margin.phase.get_frequency()`` \n Returns the frequency of the phase margin. """ response = self._core.io.query_str('FRANalysis:MARGin:PHASe:FREQuency?') return Conversions.str_to_float(response)
[docs] def get_value(self) -> float: """ ``FRANalysis:MARGin:PHASe:VALue`` \n Snippet: ``value: float = driver.franalysis.margin.phase.get_value()`` \n Returns the value of the phase margin. """ response = self._core.io.query_str('FRANalysis:MARGin:PHASe:VALue?') return Conversions.str_to_float(response)