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, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> bytes:
"""
``P3PHase<*>:HARMonics:TOTal:POWer:DATA[:VALues]`` \n
Snippet: ``value: bytes = driver.p3Phase.harmonics.total.power.data.values.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n
Returns the total phase data of the 3-phase power analysis waveform points for transmission from the instrument to the
controlling computer. Without parameters, the complete waveform is retrieved. Using the offset and length parameters,
data can be retrieved in smaller portions, which makes the command faster. If you send only one parameter, it is
interpreted as offset, and the data is retrieved from offset to the end of the waveform. To set the export format, use
method ``RsMxo.formatPy.data.set()`` .
:param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase')
"""
power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas)
response = self._core.io.query_bin_block_ERROR(f'P3PHase{power3PhaseMeas_cmd_val}:HARMonics:TOTal:POWer:DATA:VALues?')
return response