Source code for rsrtx.Implementations.RefCurve.MultiChannel.Name

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response
from .... import repcap


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

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

[docs] def set(self, mlt_ch_impt_path: str, refCurve=repcap.RefCurve.Default) -> None: """ ``REFCurve<*>:MULTichannel:NAME`` \n Snippet: ``driver.refCurve.multiChannel.name.set(mlt_ch_impt_path = 'abc', refCurve = repcap.RefCurve.Default)`` \n Defines the path and the file to be imported. If not path is given, the default path C:/Users/Public/Public Documents/Rohde-Schwarz/RTx/RefWaveforms is used. :param mlt_ch_impt_path: String with path and filename :param refCurve: optional repeated capability selector. Default value: Nr1 (settable in the interface 'RefCurve') """ param = Conversions.value_to_quoted_str(mlt_ch_impt_path) refCurve_cmd_val = self._cmd_group.get_repcap_cmd_value(refCurve, repcap.RefCurve) self._core.io.write_with_opc(f'REFCurve{refCurve_cmd_val}:MULTichannel:NAME {param}')
[docs] def get(self, refCurve=repcap.RefCurve.Default) -> str: """ ``REFCurve<*>:MULTichannel:NAME`` \n Snippet: ``value: str = driver.refCurve.multiChannel.name.get(refCurve = repcap.RefCurve.Default)`` \n Defines the path and the file to be imported. If not path is given, the default path C:/Users/Public/Public Documents/Rohde-Schwarz/RTx/RefWaveforms is used. :param refCurve: optional repeated capability selector. Default value: Nr1 (settable in the interface 'RefCurve') :return: mlt_ch_impt_path: String with path and filename """ refCurve_cmd_val = self._cmd_group.get_repcap_cmd_value(refCurve, repcap.RefCurve) response = self._core.io.query_str_with_opc(f'REFCurve{refCurve_cmd_val}:MULTichannel:NAME?') return trim_str_response(response)