from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
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, refCurve=repcap.RefCurve.Default) -> bytes:
"""
``REFCurve<*>:DATA[:VALues]`` \n
Snippet: ``value: bytes = driver.refCurve.data.values.get(refCurve = repcap.RefCurve.Default)`` \n
Returns the data of the specified reference waveform. To set the export format, use method ``RsMxo.formatPy.data.set()`` .
:param refCurve: optional repeated capability selector. Default value: Nr1 (settable in the interface 'RefCurve')
:return: data: List of values according to the format and content settings.
"""
refCurve_cmd_val = self._cmd_group.get_repcap_cmd_value(refCurve, repcap.RefCurve)
response = self._core.io.query_bin_block_ERROR(f'REFCurve{refCurve_cmd_val}:DATA:VALues?')
return response