Source code for RsSmw.Implementations.Source.Bb.W3Gpp.Ts25141.Awgn.Power

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


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

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

[docs] def get_noise(self) -> float: """ ``[SOURce]:BB:W3GPp:TS25141:AWGN:POWer:NOISe`` \n Snippet: ``value: float = driver.source.bb.w3Gpp.ts25141.awgn.power.get_noise()`` \n Sets/queries the noise level. :return: noise: float """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:AWGN:POWer:NOISe?') return Conversions.str_to_float(response)
[docs] def set_noise(self, noise: float) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:AWGN:POWer:NOISe`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.awgn.power.set_noise(noise = 1.0)`` \n Sets/queries the noise level. :param noise: float """ param = Conversions.decimal_value_to_str(noise) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:AWGN:POWer:NOISe {param}')