Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Sweep.Egate.Continuous.Plength

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


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

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

[docs] def set(self, arg_0: float) -> None: """ ``[SENSe]:SWEep:EGATe:CONTinuous:PLENgth`` \n Snippet: ``driver.applications.k14Xnr5G.sense.sweep.egate.continuous.plength.set(arg_0 = 1.0)`` \n Defines the length in seconds of a single gate period in continuous gating. The length is determined from the beginning of one gate measurement to the beginning of the next one. :param arg_0: Range: 125 ns to 30 s, Unit: S """ param = Conversions.decimal_value_to_str(arg_0) self._core.io.write(f'SENSe:SWEep:EGATe:CONTinuous:PLENgth {param}')
[docs] def get(self) -> float: """ ``[SENSe]:SWEep:EGATe:CONTinuous:PLENgth`` \n Snippet: ``value: float = driver.applications.k14Xnr5G.sense.sweep.egate.continuous.plength.get()`` \n Defines the length in seconds of a single gate period in continuous gating. The length is determined from the beginning of one gate measurement to the beginning of the next one. """ response = self._core.io.query_str(f'SENSe:SWEep:EGATe:CONTinuous:PLENgth?') return Conversions.str_to_float(response)