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
[docs]class AddressCls: """Address commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("address", core, parent)
[docs] def set(self, ip_address: str) -> None: """SCPI: 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. \n :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: """SCPI: 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. \n :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)