Source code for rsrtx.Implementations.Bus.Parallel.Data.Values

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


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

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

[docs] def get(self, bus=repcap.Bus.Default) -> float: """ ``BUS<*>:PARallel:DATA[:VALues]`` \n Snippet: ``value: float = driver.bus.parallel.data.values.get(bus = repcap.Bus.Default)`` \n Returns the data of the indicated parallel bus. Requirements: \n - method ``RsRtx.bus.parallel.state.set()`` is set to ON. - method ``RsRtx.bus.parallel.display.shbu.set()`` is set to ON. - Number format is set with method ``RsRtx.bus.parallel.data.formatPy.set()`` . :param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus') :return: data: List of values according to the format setting. """ bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus) response = self._core.io.query_str(f'BUS{bus_cmd_val}:PARallel:DATA:VALues?') return Conversions.str_to_float(response)