from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ImpedanceCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("impedance", core, parent)
[docs]
def set(self, impedance: int) -> None:
"""
``[SENSe]:IQ:IMPedance`` \n
Snippet: ``driver.applications.iqAnalyzer.sense.iq.impedance.set(impedance = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(impedance)
self._core.io.write(f'SENSe:IQ:IMPedance {param}')
[docs]
def get(self) -> int:
"""
``[SENSe]:IQ:IMPedance`` \n
Snippet: ``value: int = driver.applications.iqAnalyzer.sense.iq.impedance.get()`` \n
No help available
"""
response = self._core.io.query_str(f'SENSe:IQ:IMPedance?')
return Conversions.str_to_int(response)