Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.RefSignal.Cwf.Fpath

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

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

[docs] def set(self, filename: str) -> None: """ ``CONFigure:REFSignal:CWF:FPATh`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.refSignal.cwf.fpath.set(filename = 'abc')`` \n This command selects a waveform file containing a reference signal. :param filename: String containing the name and path to the waveform file. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'CONFigure:REFSignal:CWF:FPATh {param}')
[docs] def get(self) -> str: """ ``CONFigure:REFSignal:CWF:FPATh`` \n Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.refSignal.cwf.fpath.get()`` \n This command selects a waveform file containing a reference signal. :return: filename: String containing the name and path to the waveform file. """ response = self._core.io.query_str(f'CONFigure:REFSignal:CWF:FPATh?') return trim_str_response(response)