Source code for RsSmw.Implementations.Source.Fsimulator.Mdelay.Channel

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


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

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

	# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.FadMpRopChanMode: """ ``[SOURce<HW>]:FSIMulator:MDELay:CHANnel:MODE`` \n Snippet: ``value: enums.FadMpRopChanMode = driver.source.fsimulator.mdelay.channel.get_mode()`` \n Sets if one or all moving channels are simulated. :return: mode: ONE | ALL """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:CHANnel:MODE?') return Conversions.str_to_scalar_enum(response, enums.FadMpRopChanMode)
[docs] def set_mode(self, mode: enums.FadMpRopChanMode) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:CHANnel:MODE`` \n Snippet: ``driver.source.fsimulator.mdelay.channel.set_mode(mode = enums.FadMpRopChanMode.ALL)`` \n Sets if one or all moving channels are simulated. :param mode: ONE | ALL """ param = Conversions.enum_scalar_to_str(mode, enums.FadMpRopChanMode) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MDELay:CHANnel:MODE {param}')