[docs]classStateCls:"""State commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("state",core,parent)
[docs]defset(self,state:bool,baseStation=repcap.BaseStation.Default)->None:"""SCPI: [SOURce<HW>]:BB:W3GPp:BSTation<ST>:CMODe:STATe \n Snippet: driver.source.bb.w3Gpp.bstation.cmode.state.set(state = False, baseStation = repcap.BaseStation.Default) \n The command activates/deactivates the compressed mode. \n :param state: ON| OFF :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') """param=Conversions.bool_to_str(state)baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CMODe:STATe {param}')
[docs]defget(self,baseStation=repcap.BaseStation.Default)->bool:"""SCPI: [SOURce<HW>]:BB:W3GPp:BSTation<ST>:CMODe:STATe \n Snippet: value: bool = driver.source.bb.w3Gpp.bstation.cmode.state.get(baseStation = repcap.BaseStation.Default) \n The command activates/deactivates the compressed mode. \n :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') :return: state: ON| OFF"""baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)response=self._core.io.query_str(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CMODe:STATe?')returnConversions.str_to_bool(response)