Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Generator.IpConnection.Address

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 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, ip_address: str) -> None: """ ``CONFigure:GENerator:IPConnection:ADDRess`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.generator.ipConnection.address.set(ip_address = 'abc')`` \n This command defines the IP address of the connected signal generator. Make sure to synchronize with ``*OPC?`` or ``*WAI`` to make sure that the command was successfully applied on the generator before sending the next command. :param ip_address: String containing the IP address or computer name. """ param = Conversions.value_to_quoted_str(ip_address) self._core.io.write(f'CONFigure:GENerator:IPConnection:ADDRess {param}')
[docs] def get(self) -> str: """ ``CONFigure:GENerator:IPConnection:ADDRess`` \n Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.generator.ipConnection.address.get()`` \n This command defines the IP address of the connected signal generator. Make sure to synchronize with ``*OPC?`` or ``*WAI`` to make sure that the command was successfully applied on the generator before sending the next command. :return: ip_address: String containing the IP address or computer name. """ response = self._core.io.query_str(f'CONFigure:GENerator:IPConnection:ADDRess?') return trim_str_response(response)