Source code for rsrtx.Implementations.Zvc.Z.Icurrent.Data.Values

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
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, zvcProbe=repcap.ZvcProbe.Default, zvcChannel=repcap.ZvcChannel.Default) -> float: """ ``ZVC:Z<*>:I<*>:DATA[:VALues]`` \n Snippet: ``value: float = driver.zvc.z.icurrent.data.values.get(zvcProbe = repcap.ZvcProbe.Default, zvcChannel = repcap.ZvcChannel.Default)`` \n Return the waveform data of the amperemeter and voltmeter for transmission from the instrument to the controlling computer. The data can be used in MATLAB, for example. Set the export format to ASCii or REAL,32 using method ``RsRtx.formatPy.data.set()`` . Export of raw data is not supported. :param zvcProbe: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Z') :param zvcChannel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Icurrent') :return: data: Liste of values according to the format setting. """ zvcProbe_cmd_val = self._cmd_group.get_repcap_cmd_value(zvcProbe, repcap.ZvcProbe) zvcChannel_cmd_val = self._cmd_group.get_repcap_cmd_value(zvcChannel, repcap.ZvcChannel) response = self._core.io.query_str(f'ZVC:Z{zvcProbe_cmd_val}:I{zvcChannel_cmd_val}:DATA:VALues?') return Conversions.str_to_float(response)