Source code for RsSmw.Implementations.Source.Fsimulator.Globale

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


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

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

[docs] def get_seed(self) -> int: """ ``[SOURce<HW>]:FSIMulator:GLOBal:SEED`` \n Snippet: ``value: int = driver.source.fsimulator.globale.get_seed()`` \n Sets the fading start seed. This value is global for the instrument. :return: seed: integer Range: 0 to 9 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:GLOBal:SEED?') return Conversions.str_to_int(response)
[docs] def set_seed(self, seed: int) -> None: """ ``[SOURce<HW>]:FSIMulator:GLOBal:SEED`` \n Snippet: ``driver.source.fsimulator.globale.set_seed(seed = 1)`` \n Sets the fading start seed. This value is global for the instrument. :param seed: integer Range: 0 to 9 """ param = Conversions.decimal_value_to_str(seed) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:GLOBal:SEED {param}')