Source code for RsFsw.Implementations.Applications.K91_Wlan.MassMemory.Load.Sem.State

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StateCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, filename: str) -> None: """ ``MMEMory:LOAD:SEM:STATe`` \n Snippet: ``driver.applications.k91Wlan.massMemory.load.sem.state.set(filename = 'abc')`` \n Loads a spectrum emission mask setup from an xml file. Note that this command is maintained for compatibility reasons only. Use the SENS:ESP:PRES command for new remote control programs. (See method ``RsFsw.sense.espectrum.preset.standard.set()`` ) . See the FSW User Manual, 'Remote commands for SEM measurements' section. :param filename: string Path and name of the .xml file that contains the SEM setup information. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write_with_opc(f'MMEMory:LOAD:SEM:STATe 1, {param}')