[docs]classTxCls:"""Tx commands group definition. 6 total commands, 2 Subgroups, 3 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("tx",core,parent)@propertydefantenna(self):"""antenna commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_antenna'):from.AntennaimportAntennaClsself._antenna=AntennaCls(self._core,self._cmd_group)returnself._antenna@propertydefcoordinates(self):"""coordinates commands group. 1 Sub-classes, 1 commands."""ifnothasattr(self,'_coordinates'):from.CoordinatesimportCoordinatesClsself._coordinates=CoordinatesCls(self._core,self._cmd_group)returnself._coordinates
[docs]defget_heading(self)->float:"""SCPI: [SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing \n Snippet: value: float = driver.source.fsimulator.dsSimulation.shiptoship.tx.get_heading() \n No command help available \n :return: heading: No help available """response=self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing?')returnConversions.str_to_float(response)
[docs]defset_heading(self,heading:float)->None:"""SCPI: [SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing \n Snippet: driver.source.fsimulator.dsSimulation.shiptoship.tx.set_heading(heading = 1.0) \n No command help available \n :param heading: No help available """param=Conversions.decimal_value_to_str(heading)self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing {param}')
[docs]defget_speed(self)->float:"""SCPI: [SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed \n Snippet: value: float = driver.source.fsimulator.dsSimulation.shiptoship.tx.get_speed() \n No command help available \n :return: speed: No help available """response=self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed?')returnConversions.str_to_float(response)
[docs]defset_speed(self,speed:float)->None:"""SCPI: [SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed \n Snippet: driver.source.fsimulator.dsSimulation.shiptoship.tx.set_speed(speed = 1.0) \n No command help available \n :param speed: No help available """param=Conversions.decimal_value_to_str(speed)self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed {param}')
# noinspection PyTypeChecker
[docs]defget_type_py(self)->enums.FadDssVehTypeShip:"""SCPI: [SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE \n Snippet: value: enums.FadDssVehTypeShip = driver.source.fsimulator.dsSimulation.shiptoship.tx.get_type_py() \n No command help available \n :return: ship_type: No help available """response=self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE?')returnConversions.str_to_scalar_enum(response,enums.FadDssVehTypeShip)
[docs]defset_type_py(self,ship_type:enums.FadDssVehTypeShip)->None:"""SCPI: [SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE \n Snippet: driver.source.fsimulator.dsSimulation.shiptoship.tx.set_type_py(ship_type = enums.FadDssVehTypeShip.SCARrier) \n No command help available \n :param ship_type: No help available """param=Conversions.enum_scalar_to_str(ship_type,enums.FadDssVehTypeShip)self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE {param}')
defclone(self)->'TxCls':"""Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group"""new_group=TxCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group