Source code for RsFsw.Implementations.System.Rsweep

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


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

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

[docs] def set(self, state: bool) -> None: """ ``SYSTem:RSWeep`` \n Snippet: ``driver.system.rsweep.set(state = False)`` \n Controls a repeated sweep of the E1 and MKPK HI HP model commands (for details on the commands refer to 'Reference: GPIB commands of emulated HP models') . If the repeated sweep is OFF, the marker is set without sweeping before. This command is only available if a HP language is selected using method ``RsFsw.system.language.set()`` :param state: ON | OFF | 1 | 0 """ param = Conversions.bool_to_str(state) self._core.io.write(f'SYSTem:RSWeep {param}')
[docs] def get(self) -> bool: """ ``SYSTem:RSWeep`` \n Snippet: ``value: bool = driver.system.rsweep.get()`` \n Controls a repeated sweep of the E1 and MKPK HI HP model commands (for details on the commands refer to 'Reference: GPIB commands of emulated HP models') . If the repeated sweep is OFF, the marker is set without sweeping before. This command is only available if a HP language is selected using method ``RsFsw.system.language.set()`` :return: state: ON | OFF | 1 | 0 """ response = self._core.io.query_str(f'SYSTem:RSWeep?') return Conversions.str_to_bool(response)