[docs]defget_cfrequency(self)->int:"""SCPI: [SOURce<HW>]:BB:GNSS:CFRequency \n Snippet: value: int = driver.source.bb.gnss.get_cfrequency() \n Queries the central RF frequency. The response is a mean value depending on enabled RF bands and GNSS systems. \n :return: central_rf_freq: integer Range: 1E9 to 2E9, Unit: Hz """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:CFRequency?')returnConversions.str_to_int(response)
[docs]defpreset(self)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:PRESet \n Snippet: driver.source.bb.gnss.preset() \n Sets the parameters of the digital standard to their default values (*RST values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:GNSS:STATe. \n """self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:PRESet')
[docs]defpreset_with_opc(self,opc_timeout_ms:int=-1)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:PRESet \n Snippet: driver.source.bb.gnss.preset_with_opc() \n Sets the parameters of the digital standard to their default values (*RST values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:GNSS:STATe. \n Same as preset, but waits for the operation to complete before continuing further. Use the RsSmbv.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:GNSS:PRESet',opc_timeout_ms)
[docs]defget_scenario(self)->str:"""SCPI: [SOURce<HW>]:BB:GNSS:SCENario \n Snippet: value: str = driver.source.bb.gnss.get_scenario() \n Queries the current scenario. \n :return: scenario: string NONE Indicates the preset configuration or a user-defined configuration. Scenario name Returns the scenario name of a predefined scenario, e.g. '3GPP TS 37.571-2: S7 Signaling ST1'. See 'Predefined GNSS scenarios'. Filename Returns the filename of a saved, user-defined scenario. The scenario file has the extension *.gnss. """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SCENario?')returntrim_str_response(response)
[docs]defget_ss_values(self)->bool:"""SCPI: [SOURce<HW>]:BB:GNSS:SSValues \n Snippet: value: bool = driver.source.bb.gnss.get_ss_values() \n Defines if the navigation message parameters are set as scaled or unscaled values and thus which subset of remote-control commands is used. \n :return: show_scaled_value: 1| ON| 0| OFF 0 Used are unscaled values The SOURcehw:BB:GNSS:...:UNSCaled commands apply. 1 Used are scaled values Commands without the mnemonic UNSCaled apply. """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SSValues?')returnConversions.str_to_bool(response)
[docs]defset_ss_values(self,show_scaled_value:bool)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:SSValues \n Snippet: driver.source.bb.gnss.set_ss_values(show_scaled_value = False) \n Defines if the navigation message parameters are set as scaled or unscaled values and thus which subset of remote-control commands is used. \n :param show_scaled_value: 1| ON| 0| OFF 0 Used are unscaled values The SOURcehw:BB:GNSS:...:UNSCaled commands apply. 1 Used are scaled values Commands without the mnemonic UNSCaled apply. """param=Conversions.bool_to_str(show_scaled_value)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SSValues {param}')
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:BB:GNSS:STATe \n Snippet: value: bool = driver.source.bb.gnss.get_state() \n Enables/disables the GNSS signal simulation. \n :return: state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:STATe \n Snippet: driver.source.bb.gnss.set_state(state = False) \n Enables/disables the GNSS signal simulation. \n :param state: 1| ON| 0| OFF """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:STATe {param}')
# noinspection PyTypeChecker
[docs]defget_tmode(self)->enums.SimMode:"""SCPI: [SOURce<HW>]:BB:GNSS:TMODe \n Snippet: value: enums.SimMode = driver.source.bb.gnss.get_tmode() \n Sets the test mode. \n :return: smode: TRACking| NAVigation| SINGle """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TMODe?')returnConversions.str_to_scalar_enum(response,enums.SimMode)
[docs]defset_tmode(self,smode:enums.SimMode)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:TMODe \n Snippet: driver.source.bb.gnss.set_tmode(smode = enums.SimMode.NAVigation) \n Sets the test mode. \n :param smode: TRACking| NAVigation| SINGle """param=Conversions.enum_scalar_to_str(smode,enums.SimMode)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TMODe {param}')
defclone(self)->'GnssCls':"""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=GnssCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group