from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HbInsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("hbIns", core, parent)
[docs]
def set(self, histg_bins_max: int, advJitter=repcap.AdvJitter.Default) -> None:
"""
``ADVJitter<*>:RESult:VERTical:HBINs`` \n
Snippet: ``driver.advJitter.result.vertical.hbIns.set(histg_bins_max = 1, advJitter = repcap.AdvJitter.Default)`` \n
Sets the number of bins, the number of data intervals, of the histogram.
:param histg_bins_max: 2 to 1000
:param advJitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'AdvJitter')
"""
param = Conversions.decimal_value_to_str(histg_bins_max)
advJitter_cmd_val = self._cmd_group.get_repcap_cmd_value(advJitter, repcap.AdvJitter)
self._core.io.write(f'ADVJitter{advJitter_cmd_val}:RESult:VERTical:HBINs {param}')
[docs]
def get(self, advJitter=repcap.AdvJitter.Default) -> int:
"""
``ADVJitter<*>:RESult:VERTical:HBINs`` \n
Snippet: ``value: int = driver.advJitter.result.vertical.hbIns.get(advJitter = repcap.AdvJitter.Default)`` \n
Sets the number of bins, the number of data intervals, of the histogram.
:param advJitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'AdvJitter')
"""
advJitter_cmd_val = self._cmd_group.get_repcap_cmd_value(advJitter, repcap.AdvJitter)
response = self._core.io.query_str(f'ADVJitter{advJitter_cmd_val}:RESult:VERTical:HBINs?')
return Conversions.str_to_int(response)