[docs]classCodeCls:"""Code commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("code",core,parent)
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:[BB]:[ILS]:LOCalizer:COMid:CODE:STATe \n Snippet: value: bool = driver.source.bb.ils.localizer.comid.code.get_state() \n No command help available \n :return: state: No help available """response=self._core.io.query_str('SOURce<HwInstance>:BB:ILS:LOCalizer:COMid:CODE:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:[BB]:[ILS]:LOCalizer:COMid:CODE:STATe \n Snippet: driver.source.bb.ils.localizer.comid.code.set_state(state = False) \n No command help available \n :param state: No help available """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:BB:ILS:LOCalizer:COMid:CODE:STATe {param}')
[docs]defget_value(self)->str:"""SCPI: [SOURce<HW>]:[BB]:[ILS]:LOCalizer:COMid:CODE \n Snippet: value: str = driver.source.bb.ils.localizer.comid.code.get_value() \n Sets the coding of the COM/ID signal by the international short name of the airport (e.g. MUC for the Munich airport) . The COM/ID tone is sent according to the selected code, see 'Morse code settings'. If no coding is set, the COM/ID tone is sent uncoded (key down) . \n :return: code: string """response=self._core.io.query_str('SOURce<HwInstance>:BB:ILS:LOCalizer:COMid:CODE?')returntrim_str_response(response)
[docs]defset_value(self,code:str)->None:"""SCPI: [SOURce<HW>]:[BB]:[ILS]:LOCalizer:COMid:CODE \n Snippet: driver.source.bb.ils.localizer.comid.code.set_value(code = 'abc') \n Sets the coding of the COM/ID signal by the international short name of the airport (e.g. MUC for the Munich airport) . The COM/ID tone is sent according to the selected code, see 'Morse code settings'. If no coding is set, the COM/ID tone is sent uncoded (key down) . \n :param code: string """param=Conversions.value_to_quoted_str(code)self._core.io.write(f'SOURce<HwInstance>:BB:ILS:LOCalizer:COMid:CODE {param}')