Source code for rsmxo.Implementations.P3Phase.Harmonics.Power.Data.Values

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, power=repcap.Power.Default) -> bytes: """ ``P3PHase<*>:HARMonics:POWer<*>:DATA[:VALues]`` \n Snippet: ``value: bytes = driver.p3Phase.harmonics.power.data.values.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default, power = repcap.Power.Default)`` \n Returns the individual 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') :param power: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Power') """ power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) power_cmd_val = self._cmd_group.get_repcap_cmd_value(power, repcap.Power) response = self._core.io.query_bin_block_ERROR(f'P3PHase{power3PhaseMeas_cmd_val}:HARMonics:POWer{power_cmd_val}:DATA:VALues?') return response