[docs]classImpulsiveCls:"""Impulsive commands group definition. 7 total commands, 1 Subgroups, 6 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("impulsive",core,parent)@propertydefburst(self):"""burst commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_burst'):from.BurstimportBurstClsself._burst=BurstCls(self._core,self._cmd_group)returnself._burst
[docs]defget_ci(self)->float:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:CI \n Snippet: value: float = driver.source.noise.impulsive.get_ci() \n Specifies the ratio of the wanted signal (C) to the impulsive noise signal (I) . \n :return: ipls_ci: float Range: -35 to 60 """response=self._core.io.query_str('SOURce<HwInstance>:NOISe:IMPulsive:CI?')returnConversions.str_to_float(response)
[docs]defset_ci(self,ipls_ci:float)->None:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:CI \n Snippet: driver.source.noise.impulsive.set_ci(ipls_ci = 1.0) \n Specifies the ratio of the wanted signal (C) to the impulsive noise signal (I) . \n :param ipls_ci: float Range: -35 to 60 """param=Conversions.decimal_value_to_str(ipls_ci)self._core.io.write(f'SOURce<HwInstance>:NOISe:IMPulsive:CI {param}')
[docs]defget_frame(self)->float:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:FRAMe \n Snippet: value: float = driver.source.noise.impulsive.get_frame() \n Sets the time intervals at which the bursts occur. \n :return: ipls_frame_duration: float Range: 0.1E-3 to 1 """response=self._core.io.query_str('SOURce<HwInstance>:NOISe:IMPulsive:FRAMe?')returnConversions.str_to_float(response)
[docs]defset_frame(self,ipls_frame_duration:float)->None:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:FRAMe \n Snippet: driver.source.noise.impulsive.set_frame(ipls_frame_duration = 1.0) \n Sets the time intervals at which the bursts occur. \n :param ipls_frame_duration: float Range: 0.1E-3 to 1 """param=Conversions.decimal_value_to_str(ipls_frame_duration)self._core.io.write(f'SOURce<HwInstance>:NOISe:IMPulsive:FRAMe {param}')
[docs]defget_max_space(self)->float:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:MAXSpace \n Snippet: value: float = driver.source.noise.impulsive.get_max_space() \n If more than 1 pulse per burst are enabled ([:SOURce<hw>]:NOISe:IMPulsive:PULSee.g. 2) , sets the minimum/maximum spacing between 2 pulses within a burst. \n :return: ipls_space_max: float Range: 0.25E-6 to 0.01 """response=self._core.io.query_str('SOURce<HwInstance>:NOISe:IMPulsive:MAXSpace?')returnConversions.str_to_float(response)
[docs]defset_max_space(self,ipls_space_max:float)->None:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:MAXSpace \n Snippet: driver.source.noise.impulsive.set_max_space(ipls_space_max = 1.0) \n If more than 1 pulse per burst are enabled ([:SOURce<hw>]:NOISe:IMPulsive:PULSee.g. 2) , sets the minimum/maximum spacing between 2 pulses within a burst. \n :param ipls_space_max: float Range: 0.25E-6 to 0.01 """param=Conversions.decimal_value_to_str(ipls_space_max)self._core.io.write(f'SOURce<HwInstance>:NOISe:IMPulsive:MAXSpace {param}')
[docs]defget_min_space(self)->float:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:MINSpace \n Snippet: value: float = driver.source.noise.impulsive.get_min_space() \n If more than 1 pulse per burst are enabled ([:SOURce<hw>]:NOISe:IMPulsive:PULSee.g. 2) , sets the minimum/maximum spacing between 2 pulses within a burst. \n :return: ipls_min_space: No help available """response=self._core.io.query_str('SOURce<HwInstance>:NOISe:IMPulsive:MINSpace?')returnConversions.str_to_float(response)
[docs]defset_min_space(self,ipls_min_space:float)->None:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:MINSpace \n Snippet: driver.source.noise.impulsive.set_min_space(ipls_min_space = 1.0) \n If more than 1 pulse per burst are enabled ([:SOURce<hw>]:NOISe:IMPulsive:PULSee.g. 2) , sets the minimum/maximum spacing between 2 pulses within a burst. \n :param ipls_min_space: float Range: 0.25E-6 to 0.01 """param=Conversions.decimal_value_to_str(ipls_min_space)self._core.io.write(f'SOURce<HwInstance>:NOISe:IMPulsive:MINSpace {param}')
[docs]defget_pulse(self)->int:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:PULSe \n Snippet: value: int = driver.source.noise.impulsive.get_pulse() \n Sets the number of noise pulses per burst. \n :return: ipls_pulse: integer Range: 1 to 65535 """response=self._core.io.query_str('SOURce<HwInstance>:NOISe:IMPulsive:PULSe?')returnConversions.str_to_int(response)
[docs]defset_pulse(self,ipls_pulse:int)->None:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:PULSe \n Snippet: driver.source.noise.impulsive.set_pulse(ipls_pulse = 1) \n Sets the number of noise pulses per burst. \n :param ipls_pulse: integer Range: 1 to 65535 """param=Conversions.decimal_value_to_str(ipls_pulse)self._core.io.write(f'SOURce<HwInstance>:NOISe:IMPulsive:PULSe {param}')
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:[STATe] \n Snippet: value: bool = driver.source.noise.impulsive.get_state() \n Enables or disables the impulsive noise generator. \n :return: impulsive_state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:NOISe:IMPulsive:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,impulsive_state:bool)->None:"""SCPI: [SOURce<HW>]:NOISe:IMPulsive:[STATe] \n Snippet: driver.source.noise.impulsive.set_state(impulsive_state = False) \n Enables or disables the impulsive noise generator. \n :param impulsive_state: 1| ON| 0| OFF """param=Conversions.bool_to_str(impulsive_state)self._core.io.write(f'SOURce<HwInstance>:NOISe:IMPulsive:STATe {param}')
defclone(self)->'ImpulsiveCls':"""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=ImpulsiveCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group