from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PoCountCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("poCount", core, parent)
[docs]
def get_set(self) -> int:
"""
``DIAGnostic:INFO:POCount:SET`` \n
Snippet: ``value: int = driver.diagnostic.info.poCount.get_set()`` \n
No help available
"""
response = self._core.io.query_str('DIAGnostic:INFO:POCount:SET?')
return Conversions.str_to_int(response)
[docs]
def set_set(self, set_py: int) -> None:
"""
``DIAGnostic:INFO:POCount:SET`` \n
Snippet: ``driver.diagnostic.info.poCount.set_set(set_py = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(set_py)
self._core.io.write(f'DIAGnostic:INFO:POCount:SET {param}')
[docs]
def get_value(self) -> int:
"""
``DIAGnostic:INFO:POCount`` \n
Snippet: ``value: int = driver.diagnostic.info.poCount.get_value()`` \n
Queris how often the instrument has been turned on so far.
:return: power_on_count: integer Range: 0 to INT_MAX
"""
response = self._core.io.query_str('DIAGnostic:INFO:POCount?')
return Conversions.str_to_int(response)