[docs]defget_brate(self)->float:"""SCPI: [SOURce<HW>]:AWGN:BRATe \n Snippet: value: float = driver.source.awgn.get_brate() \n Sets the bit rate used for calculation of bit energy to noise power ratio. Valid units are bps, kbps and mabps as well as b/s, kb/s and mab/s. \n :return: brate: float Range: 400 to depends on the installed options """response=self._core.io.query_str('SOURce<HwInstance>:AWGN:BRATe?')returnConversions.str_to_float(response)
[docs]defset_brate(self,brate:float)->None:"""SCPI: [SOURce<HW>]:AWGN:BRATe \n Snippet: driver.source.awgn.set_brate(brate = 1.0) \n Sets the bit rate used for calculation of bit energy to noise power ratio. Valid units are bps, kbps and mabps as well as b/s, kb/s and mab/s. \n :param brate: float Range: 400 to depends on the installed options """param=Conversions.decimal_value_to_str(brate)self._core.io.write(f'SOURce<HwInstance>:AWGN:BRATe {param}')
[docs]defget_en_ratio(self)->float:"""SCPI: [SOURce<HW>]:AWGN:ENRatio \n Snippet: value: float = driver.source.awgn.get_en_ratio() \n Sets the ratio of bit energy to noise power density. \n :return: en_ratio: float Range: -50 to depends on the installed options, Unit: dB """response=self._core.io.query_str('SOURce<HwInstance>:AWGN:ENRatio?')returnConversions.str_to_float(response)
[docs]defset_en_ratio(self,en_ratio:float)->None:"""SCPI: [SOURce<HW>]:AWGN:ENRatio \n Snippet: driver.source.awgn.set_en_ratio(en_ratio = 1.0) \n Sets the ratio of bit energy to noise power density. \n :param en_ratio: float Range: -50 to depends on the installed options, Unit: dB """param=Conversions.decimal_value_to_str(en_ratio)self._core.io.write(f'SOURce<HwInstance>:AWGN:ENRatio {param}')
# noinspection PyTypeChecker
[docs]defget_mode(self)->enums.NoisAwgnMode:"""SCPI: [SOURce<HW>]:AWGN:MODE \n Snippet: value: enums.NoisAwgnMode = driver.source.awgn.get_mode() \n Determines how the interfering signal is generated. \n :return: mode: ONLY| ADD| CW ADD The AWGN noise signal is added to the baseband signal. ONLY The pure AWGN noise signal is modulated to the carrier. The connection to the baseband is interrupted CW The sine interfering signal is added to the baseband signal. """response=self._core.io.query_str('SOURce<HwInstance>:AWGN:MODE?')returnConversions.str_to_scalar_enum(response,enums.NoisAwgnMode)
[docs]defset_mode(self,mode:enums.NoisAwgnMode)->None:"""SCPI: [SOURce<HW>]:AWGN:MODE \n Snippet: driver.source.awgn.set_mode(mode = enums.NoisAwgnMode.ADD) \n Determines how the interfering signal is generated. \n :param mode: ONLY| ADD| CW ADD The AWGN noise signal is added to the baseband signal. ONLY The pure AWGN noise signal is modulated to the carrier. The connection to the baseband is interrupted CW The sine interfering signal is added to the baseband signal. """param=Conversions.enum_scalar_to_str(mode,enums.NoisAwgnMode)self._core.io.write(f'SOURce<HwInstance>:AWGN:MODE {param}')
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:AWGN:STATe \n Snippet: value: bool = driver.source.awgn.get_state() \n Activates or deactivates the AWGN generator. \n :return: state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:AWGN:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:AWGN:STATe \n Snippet: driver.source.awgn.set_state(state = False) \n Activates or deactivates the AWGN generator. \n :param state: 1| ON| 0| OFF """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:AWGN:STATe {param}')
defclone(self)->'AwgnCls':"""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=AwgnCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group