Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Equalizer.Save

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

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

[docs] def set(self, filename: str) -> None: """ ``[SENSe]:DDEMod:EQUalizer:SAVE`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.equalizer.save.set(filename = 'abc')`` \n Saves the current equalizer results to a file. :param filename: File name """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SENSe:DDEMod:EQUalizer:SAVE {param}')
[docs] def get(self) -> str: """ ``[SENSe]:DDEMod:EQUalizer:SAVE`` \n Snippet: ``value: str = driver.applications.k70Vsa.sense.ddemod.equalizer.save.get()`` \n Saves the current equalizer results to a file. :return: filename: File name """ response = self._core.io.query_str(f'SENSe:DDEMod:EQUalizer:SAVE?') return trim_str_response(response)