Source code for RsCmwWcdmaSig.Implementations.Configure_.Fading_.Carrier_.Fsimulator_.Globale

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Globale: """Globale commands group definition. 1 total commands, 0 Sub-groups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("globale", core, parent)
[docs] def get_seed(self) -> int: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:FADing:CARRier<carrier>:FSIMulator:GLOBal:SEED \n Snippet: value: int = driver.configure.fading.carrier.fsimulator.globale.get_seed() \n Sets the start seed for the pseudo-random fading algorithm. \n :return: seed: Range: 0 to 9 Global Repeated Capabilities: repcap.Carrier""" response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:FADing:CARRier<Carrier>:FSIMulator:GLOBal:SEED?') return Conversions.str_to_int(response)
[docs] def set_seed(self, seed: int) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:FADing:CARRier<carrier>:FSIMulator:GLOBal:SEED \n Snippet: driver.configure.fading.carrier.fsimulator.globale.set_seed(seed = 1) \n Sets the start seed for the pseudo-random fading algorithm. \n :param seed: Range: 0 to 9 Global Repeated Capabilities: repcap.Carrier""" param = Conversions.decimal_value_to_str(seed) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:FADing:CARRier<Carrier>:FSIMulator:GLOBal:SEED {param}')