Source code for RsSmw.Implementations.Source.Fsimulator.Cdynamic

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CdynamicCls:
	"""
	| Commands in total: 11
	| Subgroups: 3
	| Direct child commands: 2
	"""

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

	@property
	def catalog(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_catalog'):
			from .Catalog import CatalogCls
			self._catalog = CatalogCls(self._core, self._cmd_group)
		return self._catalog

	@property
	def cweight(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_cweight'):
			from .Cweight import CweightCls
			self._cweight = CweightCls(self._core, self._cmd_group)
		return self._cweight

	@property
	def path(self):
		"""
		| Commands in total: 6
		| Subgroups: 6
		| Direct child commands: 0
		"""
		if not hasattr(self, '_path'):
			from .Path import PathCls
			self._path = PathCls(self._core, self._cmd_group)
		return self._path

[docs] def delete(self, filename: str) -> None: """ ``[SOURce<HW>]:FSIMulator:CDYNamic:DELete`` \n Snippet: ``driver.source.fsimulator.cdynamic.delete(filename = 'abc')`` \n Deletes the specified file. Deleted are user-defined files with file extension fad_udyn. :param filename: 'filename' Complete file path and filename; file extension can be omitted. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:CDYNamic:DELete {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:FSIMulator:CDYNamic:STATe`` \n Snippet: ``value: bool = driver.source.fsimulator.cdynamic.get_state()`` \n Enables the customized dynamic fading configuration. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:CDYNamic:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:FSIMulator:CDYNamic:STATe`` \n Snippet: ``driver.source.fsimulator.cdynamic.set_state(state = False)`` \n Enables the customized dynamic fading configuration. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:CDYNamic:STATe {param}')
def clone(self) -> 'CdynamicCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = CdynamicCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group