[docs]classGpsCls:"""Gps commands group definition. 12 total commands, 1 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("gps",core,parent)@propertydefsignal(self):"""signal commands group. 3 Sub-classes, 0 commands."""ifnothasattr(self,'_signal'):from.SignalimportSignalClsself._signal=SignalCls(self._core,self._cmd_group)returnself._signal
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:BB:GNSS:SYSTem:GPS:[STATe] \n Snippet: value: bool = driver.source.bb.gnss.system.gps.get_state() \n Defines if satellites from the selected GNSS system are included in the simulated satellites constellation. \n :return: state: 1| ON| 0| OFF Disabling a GNSS system deactivates all SVID and signals from this system. """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SYSTem:GPS:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:SYSTem:GPS:[STATe] \n Snippet: driver.source.bb.gnss.system.gps.set_state(state = False) \n Defines if satellites from the selected GNSS system are included in the simulated satellites constellation. \n :param state: 1| ON| 0| OFF Disabling a GNSS system deactivates all SVID and signals from this system. """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SYSTem:GPS:STATe {param}')
defclone(self)->'GpsCls':"""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=GpsCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group