Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.RefSignal.Gos.Path

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 PathCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, filename: str) -> None: """ ``CONFigure:REFSignal:GOS:PATH`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.refSignal.gos.path.set(filename = 'abc')`` \n Defines the path to load user-defined reference waveform files to. If you do not specify a path, the file is loaded to C:/R_S/INSTR/USER/K18/ReferenceFiles. :param filename: String containing the path of the file. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'CONFigure:REFSignal:GOS:PATH {param}')
[docs] def get(self) -> str: """ ``CONFigure:REFSignal:GOS:PATH`` \n Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.refSignal.gos.path.get()`` \n Defines the path to load user-defined reference waveform files to. If you do not specify a path, the file is loaded to C:/R_S/INSTR/USER/K18/ReferenceFiles. :return: filename: String containing the path of the file. """ response = self._core.io.query_str(f'CONFigure:REFSignal:GOS:PATH?') return trim_str_response(response)