Source code for rsrtx.Implementations.Power.Transient.Result.Actual

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


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

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

[docs] def get(self, meas_type: enums.PwrTransientResultMeasType) -> float: """ ``POWer:TRANsient:RESult[:ACTual]`` \n Snippet: ``value: float = driver.power.transient.result.actual.get(meas_type = enums.PwrTransientResultMeasType.DELay)`` \n Returns the results of the transient response measurement. :param meas_type: OVERshoot | RTIMe | DELay | PEAKtime | SETTling """ param = Conversions.enum_scalar_to_str(meas_type, enums.PwrTransientResultMeasType) response = self._core.io.query_str(f'POWer:TRANsient:RESult:ACTual? {param}') return Conversions.str_to_float(response)