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, measIndex=repcap.MeasIndex.Default) -> bytes:
"""
``EXPort:HMEasurement<*>:DATA[:VALues]`` \n
Snippet: ``value: bytes = driver.export.hmeasurement.data.values.get(measIndex = repcap.MeasIndex.Default)`` \n
Returns the data of the specified waveform histogram or of the histogram on measurement results. To set the export format,
use method ``RsMxo.formatPy.data.set()`` . For histogram data, only ASCii and REAL,32 and REAL,64 are supported.
The normalization setting is considered: method ``RsMxo.export.histogram.normalize.set()`` or method
``RsMxo.export.hmeasurement.normalize.set()`` .
:param measIndex: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Hmeasurement')
:return: data: Comma-separated list of values according to the format setting.
"""
measIndex_cmd_val = self._cmd_group.get_repcap_cmd_value(measIndex, repcap.MeasIndex)
response = self._core.io.query_bin_block_ERROR(f'EXPort:HMEasurement{measIndex_cmd_val}:DATA:VALues?')
return response