Source code for RsSmw.Implementations.Source.Bb.Pramp.Ramp.Sweep

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


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

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

[docs] def get_time(self) -> float: """ ``[SOURce<HW>]:BB:PRAMp:RAMP:SWEep:TIME`` \n Snippet: ``value: float = driver.source.bb.pramp.ramp.sweep.get_time()`` \n Sets the time of one sweep cycle. :return: sweep_time: float Range: 1E-6 to 20 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:PRAMp:RAMP:SWEep:TIME?') return Conversions.str_to_float(response)
[docs] def set_time(self, sweep_time: float) -> None: """ ``[SOURce<HW>]:BB:PRAMp:RAMP:SWEep:TIME`` \n Snippet: ``driver.source.bb.pramp.ramp.sweep.set_time(sweep_time = 1.0)`` \n Sets the time of one sweep cycle. :param sweep_time: float Range: 1E-6 to 20 """ param = Conversions.decimal_value_to_str(sweep_time) self._core.io.write(f'SOURce<HwInstance>:BB:PRAMp:RAMP:SWEep:TIME {param}')