Source code for rsrtx.Implementations.Zvc.Z.Icurrent.ZerComp.State

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StateCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("state", core, parent)

[docs] def get(self, zvcProbe=repcap.ZvcProbe.Default, zvcChannel=repcap.ZvcChannel.Default) -> bool: """ ``ZVC:Z<*>:I<*>:ZERComp:STATe`` \n Snippet: ``value: bool = driver.zvc.z.icurrent.zerComp.state.get(zvcProbe = repcap.ZvcProbe.Default, zvcChannel = repcap.ZvcChannel.Default)`` \n Returns the status of the zero compensation of the indicated current channel. :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: zero_comp_state: ON: Zero compensation is used Off: Zero Compensation is not used """ 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_with_opc(f'ZVC:Z{zvcProbe_cmd_val}:I{zvcChannel_cmd_val}:ZERComp:STATe?') return Conversions.str_to_bool(response)