Source code for RsFsw.Implementations.Applications.K50_Spurious.Sense.Directed

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


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

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

	@property
	def settings(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_settings'):
			from .Settings import SettingsCls
			self._settings = SettingsCls(self._core, self._cmd_group)
		return self._settings

	@property
	def nfft(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_nfft'):
			from .Nfft import NfftCls
			self._nfft = NfftCls(self._core, self._cmd_group)
		return self._nfft

	@property
	def refLevel(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_refLevel'):
			from .RefLevel import RefLevelCls
			self._refLevel = RefLevelCls(self._core, self._cmd_group)
		return self._refLevel

	@property
	def inputPy(self):
		"""
		| Commands in total: 3
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_inputPy'):
			from .InputPy import InputPyCls
			self._inputPy = InputPyCls(self._core, self._cmd_group)
		return self._inputPy

	@property
	def loffset(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_loffset'):
			from .Loffset import LoffsetCls
			self._loffset = LoffsetCls(self._core, self._cmd_group)
		return self._loffset

	@property
	def mfRbw(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_mfRbw'):
			from .MfRbw import MfRbwCls
			self._mfRbw = MfRbwCls(self._core, self._cmd_group)
		return self._mfRbw

	@property
	def pexcursion(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_pexcursion'):
			from .Pexcursion import PexcursionCls
			self._pexcursion = PexcursionCls(self._core, self._cmd_group)
		return self._pexcursion

[docs] def save(self, filename: str) -> None: """ ``[SENSe]:DIRected:SAVE`` \n Snippet: ``driver.applications.k50Spurious.sense.directed.save(filename = 'abc')`` \n Saves the current directed search configuration to a user-defined .csv file for later use. The result is a comma-separated list of values with the following syntax for each span: <No>,<Frequency>,<SearchSpan>, <DetThreshold>,<SNR>,<DetectMode> For details on the parameters see 'Directed Search Measurement settings') . """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SENSe:DIRected:SAVE {param}')
[docs] def load(self, filename: str) -> None: """ ``[SENSe]:DIRected:LOAD`` \n Snippet: ``driver.applications.k50Spurious.sense.directed.load(filename = 'abc')`` \n Loads a stored search configuration from a .csv file. The current settings in the table are overwritten by the settings in the file! """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SENSe:DIRected:LOAD {param}')
def clone(self) -> 'DirectedCls': """ 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 = DirectedCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group