Source code for RsSmw.Implementations.Source.Cemulation.DsSimulation.User.Profile

from typing import List

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


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

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

[docs] def get_catalog(self) -> List[str]: """ ``[SOURce<HW>]:CEMulation:DSSimulation:USER:PROFile:CATalog`` \n Snippet: ``value: List[str] = driver.source.cemulation.dsSimulation.user.profile.get_catalog()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:DSSimulation:USER:PROFile:CATalog?') return Conversions.str_to_str_list(response)
[docs] def get_select(self) -> str: """ ``[SOURce<HW>]:CEMulation:DSSimulation:USER:PROFile:SELect`` \n Snippet: ``value: str = driver.source.cemulation.dsSimulation.user.profile.get_select()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:DSSimulation:USER:PROFile:SELect?') return trim_str_response(response)
[docs] def set_select(self, prof_select: str) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:USER:PROFile:SELect`` \n Snippet: ``driver.source.cemulation.dsSimulation.user.profile.set_select(prof_select = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(prof_select) self._core.io.write(f'SOURce<HwInstance>:CEMulation:DSSimulation:USER:PROFile:SELect {param}')
# noinspection PyTypeChecker
[docs] def get_source(self) -> enums.FadDssUsrProfSour: """ ``[SOURce<HW>]:CEMulation:DSSimulation:USER:PROFile:SOURce`` \n Snippet: ``value: enums.FadDssUsrProfSour = driver.source.cemulation.dsSimulation.user.profile.get_source()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:DSSimulation:USER:PROFile:SOURce?') return Conversions.str_to_scalar_enum(response, enums.FadDssUsrProfSour)
[docs] def set_source(self, prof_source: enums.FadDssUsrProfSour) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:USER:PROFile:SOURce`` \n Snippet: ``driver.source.cemulation.dsSimulation.user.profile.set_source(prof_source = enums.FadDssUsrProfSour.PROFile)`` \n No help available """ param = Conversions.enum_scalar_to_str(prof_source, enums.FadDssUsrProfSour) self._core.io.write(f'SOURce<HwInstance>:CEMulation:DSSimulation:USER:PROFile:SOURce {param}')