Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Generator.Relay.Write

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


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

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

[docs] def set(self, command: str) -> None: """ ``CONFigure:GENerator:RELay:WRITe`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.generator.relay.write.set(command = 'abc')`` \n Provides functionality to configure the signal generator directly through the FSW-K18 application. It resends the string parameter as a SCPI command to the connected signal generator. If the command contains a '? ', use method ``RsFsw.configure.generator.relay.read.get()`` to read the answer. """ param = Conversions.value_to_quoted_str(command) self._core.io.write_with_opc(f'CONFigure:GENerator:RELay:WRITe {param}')