Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Pattern.Frame.Load

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

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

[docs] def set(self, filename: str) -> None: """ ``[SENSe]:DDEMod:PATTern:FRAMe:LOAD`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.pattern.frame.load.set(filename = 'abc')`` \n Loads a user-defined frame structure configuration to be used by the measurement from an xml file. The default storage location for such files is C:/R_S/INSTR/USER/vsa/FrameRangeStructure. Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. :param filename: string Path and file name of the xml file. The default storage location for frame structures is C:/R_S/INSTR/USER/vsa/FrameRange_Structure. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SENSe:DDEMod:PATTern:FRAMe:LOAD {param}')
[docs] def get(self) -> str: """ ``[SENSe]:DDEMod:PATTern:FRAMe:LOAD`` \n Snippet: ``value: str = driver.applications.k70Vsa.sense.ddemod.pattern.frame.load.get()`` \n Loads a user-defined frame structure configuration to be used by the measurement from an xml file. The default storage location for such files is C:/R_S/INSTR/USER/vsa/FrameRangeStructure. Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. :return: filename: string Path and file name of the xml file. The default storage location for frame structures is C:/R_S/INSTR/USER/vsa/FrameRange_Structure. """ response = self._core.io.query_str(f'SENSe:DDEMod:PATTern:FRAMe:LOAD?') return trim_str_response(response)