Source code for RsSmw.Implementations.Diagnostic.Point.Configuration

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.StructBase import StructBase
from ....Internal.ArgStruct import ArgStruct
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle


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

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

[docs] def set(self, dev_board: str, point: str, data: str) -> None: """ ``DIAGnostic<HW>:POINt:CONFiguration`` \n Snippet: ``driver.diagnostic.point.configuration.set(dev_board = 'abc', point = 'abc', data = 'abc')`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('dev_board', dev_board, DataType.String), ArgSingle('point', point, DataType.String), ArgSingle('data', data, DataType.String)) self._core.io.write(f'DIAGnostic<HwInstance>:POINt:CONFiguration {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """ Response structure. Fields: \n - 1 Dev_Board: str: No parameter help available - 2 Point: str: No parameter help available """ __meta_args_list = [ ArgStruct.scalar_str('Dev_Board'), ArgStruct.scalar_str('Point')] def __init__(self): StructBase.__init__(self, self) self.Dev_Board: str = None self.Point: str = None
[docs] def get(self) -> GetStruct: """ ``DIAGnostic<HW>:POINt:CONFiguration`` \n Snippet: ``value: GetStruct = driver.diagnostic.point.configuration.get()`` \n No help available :return: structure: for return value, see the help for GetStruct structure arguments. """ return self._core.io.query_struct(f'DIAGnostic<HwInstance>:POINt:CONFiguration?', self.__class__.GetStruct())