Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Equalizer.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:EQUalizer:LOAD`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.equalizer.load.set(filename = 'abc')`` \n Selects a user-defined equalizer. The equalizer mode is automatically switched to USER (see method ``RsFsw.applications.k70Vsa.sense.ddemod.equalizer.mode.set()`` ) . :param filename: Path and file name (without extension) """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SENSe:DDEMod:EQUalizer:LOAD {param}')
[docs] def get(self) -> str: """ ``[SENSe]:DDEMod:EQUalizer:LOAD`` \n Snippet: ``value: str = driver.applications.k70Vsa.sense.ddemod.equalizer.load.get()`` \n Selects a user-defined equalizer. The equalizer mode is automatically switched to USER (see method ``RsFsw.applications.k70Vsa.sense.ddemod.equalizer.mode.set()`` ) . :return: filename: Path and file name (without extension) """ response = self._core.io.query_str(f'SENSe:DDEMod:EQUalizer:LOAD?') return trim_str_response(response)