Source code for rsmxo.Implementations.Export.Result.Select

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


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

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

	@property
	def fra(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_fra'):
			from .Fra import FraCls
			self._fra = FraCls(self._core, self._cmd_group)
		return self._fra

	@property
	def power(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_power'):
			from .Power import PowerCls
			self._power = PowerCls(self._core, self._cmd_group)
		return self._power

	@property
	def p3Phase(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_p3Phase'):
			from .P3Phase import P3PhaseCls
			self._p3Phase = P3PhaseCls(self._core, self._cmd_group)
		return self._p3Phase

[docs] def get_cursor(self) -> bool: """ ``EXPort:RESult:SELect:CURSor`` \n Snippet: ``value: bool = driver.export.result.select.get_cursor()`` \n Includes the current cursor results in the export file. :return: cursor_result: OFF | ON """ response = self._core.io.query_str('EXPort:RESult:SELect:CURSor?') return Conversions.str_to_bool(response)
[docs] def set_cursor(self, cursor_result: bool) -> None: """ ``EXPort:RESult:SELect:CURSor`` \n Snippet: ``driver.export.result.select.set_cursor(cursor_result = False)`` \n Includes the current cursor results in the export file. :param cursor_result: OFF | ON """ param = Conversions.bool_to_str(cursor_result) self._core.io.write(f'EXPort:RESult:SELect:CURSor {param}')
[docs] def get_measurement(self) -> bool: """ ``EXPort:RESult:SELect:MEASurement`` \n Snippet: ``value: bool = driver.export.result.select.get_measurement()`` \n Includes the current automatic measurement results in the export file. :return: meas_result: OFF | ON """ response = self._core.io.query_str('EXPort:RESult:SELect:MEASurement?') return Conversions.str_to_bool(response)
[docs] def set_measurement(self, meas_result: bool) -> None: """ ``EXPort:RESult:SELect:MEASurement`` \n Snippet: ``driver.export.result.select.set_measurement(meas_result = False)`` \n Includes the current automatic measurement results in the export file. :param meas_result: OFF | ON """ param = Conversions.bool_to_str(meas_result) self._core.io.write(f'EXPort:RESult:SELect:MEASurement {param}')
def clone(self) -> 'SelectCls': """ 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 = SelectCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group