Source code for RsSmw.Implementations.MassMemory.Load.State

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle


# 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, data_set: int, source_file: str) -> None: """ ``MMEMory:LOAD:STATe`` \n Snippet: ``driver.massMemory.load.state.set(data_set = 1, source_file = 'abc')`` \n Loads the specified file stored under the specified name in an internal memory. After the file has been loaded, the instrument setting must be activated using an ``*RCL`` command. :param data_set: Determines to the specific number to be used with the ``*RCL`` command, e.g. ``*RCL`` 4. :param source_file: Filename with file extension savrcltxt. """ param = ArgSingleList().compose_cmd_string(ArgSingle('data_set', data_set, DataType.Integer), ArgSingle('source_file', source_file, DataType.String)) self._core.io.write(f'MMEMory:LOAD:STATe {param}'.rstrip())