Source code for rsmxo.Implementations.Power.Switching.Region.Toff.Start

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


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

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

[docs] def set(self, t_3_position: float, power=repcap.Power.Default) -> None: """ ``POWer<*>:SWITching:REGion:TOFF[:STARt]`` \n Snippet: ``driver.power.switching.region.toff.start.set(t_3_position = 1.0, power = repcap.Power.Default)`` \n Sets the start time for the turn off area in relation to the trigger point. This value is also the end time of the conduction area. :param t_3_position: -500 to 500 :param power: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Power') """ param = Conversions.decimal_value_to_str(t_3_position) power_cmd_val = self._cmd_group.get_repcap_cmd_value(power, repcap.Power) self._core.io.write(f'POWer{power_cmd_val}:SWITching:REGion:TOFF:STARt {param}')
[docs] def get(self, power=repcap.Power.Default) -> float: """ ``POWer<*>:SWITching:REGion:TOFF[:STARt]`` \n Snippet: ``value: float = driver.power.switching.region.toff.start.get(power = repcap.Power.Default)`` \n Sets the start time for the turn off area in relation to the trigger point. This value is also the end time of the conduction area. :param power: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Power') :return: t_3_position: -500 to 500 """ power_cmd_val = self._cmd_group.get_repcap_cmd_value(power, repcap.Power) response = self._core.io.query_str(f'POWer{power_cmd_val}:SWITching:REGion:TOFF:STARt?') return Conversions.str_to_float(response)