Source code for RsSmbv.Implementations.Source.Bb.Nr5G.LogGen

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response


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

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

[docs] def get_output(self) -> str: """ ``[SOURce<HW>]:BB:NR5G:LOGGen:OUTPut`` \n Snippet: ``value: str = driver.source.bb.nr5G.logGen.get_output()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:LOGGen:OUTPut?') return trim_str_response(response)
[docs] def set_output(self, log_gen_output_path: str) -> None: """ ``[SOURce<HW>]:BB:NR5G:LOGGen:OUTPut`` \n Snippet: ``driver.source.bb.nr5G.logGen.set_output(log_gen_output_path = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(log_gen_output_path) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:LOGGen:OUTPut {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:NR5G:LOGGen:STATe`` \n Snippet: ``value: bool = driver.source.bb.nr5G.logGen.get_state()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:LOGGen:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, log_gen_state: bool) -> None: """ ``[SOURce<HW>]:BB:NR5G:LOGGen:STATe`` \n Snippet: ``driver.source.bb.nr5G.logGen.set_state(log_gen_state = False)`` \n No help available """ param = Conversions.bool_to_str(log_gen_state) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:LOGGen:STATe {param}')