Source code for RsFsw.Implementations.Sense.Sweep.Scapture.Gap

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


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

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

[docs] def set(self, seg_cap_gap_len: int) -> None: """ ``[SENSe]:SWEep:SCAPture:GAP`` \n Snippet: ``driver.sense.sweep.scapture.gap.set(seg_cap_gap_len = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(seg_cap_gap_len) self._core.io.write(f'SENSe:SWEep:SCAPture:GAP {param}')
[docs] def get(self) -> int: """ ``[SENSe]:SWEep:SCAPture:GAP`` \n Snippet: ``value: int = driver.sense.sweep.scapture.gap.get()`` \n No help available """ response = self._core.io.query_str(f'SENSe:SWEep:SCAPture:GAP?') return Conversions.str_to_int(response)