Source code for RsAreg800.Implementations.Source.AreGenerator.Object.All

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class AllCls: """All commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("all", core, parent)
[docs] def get_state(self) -> bool: """SCPI: [SOURce<HW>]:AREGenerator:OBJect:ALL:[STATe] \n Snippet: value: bool = driver.source.areGenerator.object.all.get_state() \n Activates all available radar objects for a specific channel. \n :return: global_obj_stat: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:AREGenerator:OBJect:ALL:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, global_obj_stat: bool) -> None: """SCPI: [SOURce<HW>]:AREGenerator:OBJect:ALL:[STATe] \n Snippet: driver.source.areGenerator.object.all.set_state(global_obj_stat = False) \n Activates all available radar objects for a specific channel. \n :param global_obj_stat: 1| ON| 0| OFF """ param = Conversions.bool_to_str(global_obj_stat) self._core.io.write(f'SOURce<HwInstance>:AREGenerator:OBJect:ALL:STATe {param}')