Source code for rsmxo.Implementations.Channel.Data.Values

from typing import List

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, channel=repcap.Channel.Default) -> List[float]: """ ``CHANnel<1..8>:DATA[:VALues]`` \n Snippet: ``value: List[float] = driver.channel.data.values.get(channel = repcap.Channel.Default)`` \n Returns the data of the specified channel waveform. To set the export format, use method ``RsMxo.formatPy.data.set()`` . :param channel: optional repeated capability selector. Default value: Ch1 (settable in the interface 'Channel') :return: waveform_data: List of values according to the format and content settings. """ channel_cmd_val = self._cmd_group.get_repcap_cmd_value(channel, repcap.Channel) response = self._core.io.query_bin_or_ascii_float_list(f'FORMAT REAL,32;CHANnel{channel_cmd_val}:DATA:VALues?') return response