Source code for RsFsw.Implementations.Applications.K30_NoiseFigure.System.Communicate.Gpib.Rdevice.Generator.Address

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


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

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

[docs] def set(self, number: int) -> None: """ ``SYSTem:COMMunicate:GPIB:RDEVice:GENerator:ADDRess`` \n Snippet: ``driver.applications.k30NoiseFigure.system.communicate.gpib.rdevice.generator.address.set(number = 1)`` \n Changes the IEC/IEEE-bus address of the external generator. Is only valid if External Generator Control (R&S FSW-B10) is installed. :param number: Range: 0 to 30 """ param = Conversions.decimal_value_to_str(number) self._core.io.write(f'SYSTem:COMMunicate:GPIB:RDEVice:GENerator:ADDRess {param}')
[docs] def get(self) -> int: """ ``SYSTem:COMMunicate:GPIB:RDEVice:GENerator:ADDRess`` \n Snippet: ``value: int = driver.applications.k30NoiseFigure.system.communicate.gpib.rdevice.generator.address.get()`` \n Changes the IEC/IEEE-bus address of the external generator. Is only valid if External Generator Control (R&S FSW-B10) is installed. :return: number: Range: 0 to 30 """ response = self._core.io.query_str(f'SYSTem:COMMunicate:GPIB:RDEVice:GENerator:ADDRess?') return Conversions.str_to_int(response)