[docs]defget_center(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:CENTer \n Snippet: value: float = driver.source.frequency.get_center() \n Sets the center frequency of the sweep. See 'Correlating parameters in sweep mode'. \n :return: center: float Range: 300 kHz to RFmax, Unit: Hz """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:CENTer?')returnConversions.str_to_float(response)
[docs]defset_center(self,center:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:CENTer \n Snippet: driver.source.frequency.set_center(center = 1.0) \n Sets the center frequency of the sweep. See 'Correlating parameters in sweep mode'. \n :param center: float Range: 300 kHz to RFmax, Unit: Hz """param=Conversions.decimal_value_to_str(center)self._core.io.write(f'SOURce<HwInstance>:FREQuency:CENTer {param}')
[docs]defget_frequency(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:FREQuency \n Snippet: value: float = driver.source.frequency.get_frequency() \n No command help available \n :return: frequency: No help available """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:FREQuency?')returnConversions.str_to_float(response)
[docs]defset_frequency(self,frequency:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:FREQuency \n Snippet: driver.source.frequency.set_frequency(frequency = 1.0) \n No command help available \n :param frequency: No help available """param=Conversions.decimal_value_to_str(frequency)self._core.io.write(f'SOURce<HwInstance>:FREQuency:FREQuency {param}')
[docs]defget_manual(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:MANual \n Snippet: value: float = driver.source.frequency.get_manual() \n Sets the frequency and triggers a sweep step manually if SWEep:MODE MAN. \n :return: manual: float You can select any frequency within the setting range, where: STARt is set with [:SOURcehw]:FREQuency:STARt STOP is set with [:SOURcehw]:FREQuency:STOP OFFSet is set with [:SOURcehw]:FREQuency:OFFSet Range: (STARt + OFFSet) to (STOP + OFFSet) , Unit: Hz """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:MANual?')returnConversions.str_to_float(response)
[docs]defset_manual(self,manual:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:MANual \n Snippet: driver.source.frequency.set_manual(manual = 1.0) \n Sets the frequency and triggers a sweep step manually if SWEep:MODE MAN. \n :param manual: float You can select any frequency within the setting range, where: STARt is set with [:SOURcehw]:FREQuency:STARt STOP is set with [:SOURcehw]:FREQuency:STOP OFFSet is set with [:SOURcehw]:FREQuency:OFFSet Range: (STARt + OFFSet) to (STOP + OFFSet) , Unit: Hz """param=Conversions.decimal_value_to_str(manual)self._core.io.write(f'SOURce<HwInstance>:FREQuency:MANual {param}')
# noinspection PyTypeChecker
[docs]defget_mode(self)->enums.FreqMode:"""SCPI: [SOURce<HW>]:FREQuency:MODE \n Snippet: value: enums.FreqMode = driver.source.frequency.get_mode() \n Sets the frequency mode for generating the RF output signal. The selected mode determines the parameters to be used for further frequency settings. \n :return: mode: CW| FIXed | SWEep| LIST | COMBined CW|FIXed Sets the fixed frequency mode. CW and FIXed are synonyms. The instrument operates at a defined frequency, set with command [:SOURcehw]:FREQuency[:CW|FIXed]. SWEep Sets sweep mode. The instrument processes frequency (and level) settings in defined sweep steps. Set the range and current frequency with the commands: [:SOURcehw]:FREQuency:STARt and [:SOURcehw]:FREQuency:STOP, [:SOURcehw]:FREQuency:CENTer, [:SOURcehw]:FREQuency:SPAN, [:SOURcehw]:FREQuency:MANual LIST Sets list mode. The instrument processes frequency and level settings by means of values loaded from a list. To configure list mode settings, use the commands of the 'SOURce:LIST subsystem'. COMBined Sets the combined RF frequency / level sweep mode. The instrument processes frequency and level settings in defined sweep steps. Set the range and current frequency with the commands: [:SOURcehw]:COMBined:FREQuency:STARt and [:SOURcehw]:COMBined:FREQuency:STOP, [:SOURcehw]:COMBined:POWer:STARt and [:SOURcehw]:COMBined:POWer:STOP """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:MODE?')returnConversions.str_to_scalar_enum(response,enums.FreqMode)
[docs]defset_mode(self,mode:enums.FreqMode)->None:"""SCPI: [SOURce<HW>]:FREQuency:MODE \n Snippet: driver.source.frequency.set_mode(mode = enums.FreqMode.COMBined) \n Sets the frequency mode for generating the RF output signal. The selected mode determines the parameters to be used for further frequency settings. \n :param mode: CW| FIXed | SWEep| LIST | COMBined CW|FIXed Sets the fixed frequency mode. CW and FIXed are synonyms. The instrument operates at a defined frequency, set with command [:SOURcehw]:FREQuency[:CW|FIXed]. SWEep Sets sweep mode. The instrument processes frequency (and level) settings in defined sweep steps. Set the range and current frequency with the commands: [:SOURcehw]:FREQuency:STARt and [:SOURcehw]:FREQuency:STOP, [:SOURcehw]:FREQuency:CENTer, [:SOURcehw]:FREQuency:SPAN, [:SOURcehw]:FREQuency:MANual LIST Sets list mode. The instrument processes frequency and level settings by means of values loaded from a list. To configure list mode settings, use the commands of the 'SOURce:LIST subsystem'. COMBined Sets the combined RF frequency / level sweep mode. The instrument processes frequency and level settings in defined sweep steps. Set the range and current frequency with the commands: [:SOURcehw]:COMBined:FREQuency:STARt and [:SOURcehw]:COMBined:FREQuency:STOP, [:SOURcehw]:COMBined:POWer:STARt and [:SOURcehw]:COMBined:POWer:STOP """param=Conversions.enum_scalar_to_str(mode,enums.FreqMode)self._core.io.write(f'SOURce<HwInstance>:FREQuency:MODE {param}')
[docs]defget_multiplier(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:MULTiplier \n Snippet: value: float = driver.source.frequency.get_multiplier() \n Sets the multiplication factor NFREQ:MULT of a subsequent downstream instrument. The parameters offset fFREQ:OFFSer and multiplier NFREQ:MULT affect the frequency value set with the command [:SOURce<hw>]:FREQuency[:CW|FIXed]. The query [:SOURce<hw>]:FREQuency[:CW|FIXed] returns the value corresponding to the formula: fFREQ = fRFout * NFREQ:MULT + fFREQ:OFFSer See 'RF frequency and level display with a downstream instrument'. \n :return: multiplier: float Range: -10000 to 10000 """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:MULTiplier?')returnConversions.str_to_float(response)
[docs]defset_multiplier(self,multiplier:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:MULTiplier \n Snippet: driver.source.frequency.set_multiplier(multiplier = 1.0) \n Sets the multiplication factor NFREQ:MULT of a subsequent downstream instrument. The parameters offset fFREQ:OFFSer and multiplier NFREQ:MULT affect the frequency value set with the command [:SOURce<hw>]:FREQuency[:CW|FIXed]. The query [:SOURce<hw>]:FREQuency[:CW|FIXed] returns the value corresponding to the formula: fFREQ = fRFout * NFREQ:MULT + fFREQ:OFFSer See 'RF frequency and level display with a downstream instrument'. \n :param multiplier: float Range: -10000 to 10000 """param=Conversions.decimal_value_to_str(multiplier)self._core.io.write(f'SOURce<HwInstance>:FREQuency:MULTiplier {param}')
[docs]defget_offset(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:OFFSet \n Snippet: value: float = driver.source.frequency.get_offset() \n Sets the frequency offset fFREQ:OFFSet of a downstream instrument. The parameters offset fFREQ:OFFSer and multiplier NFREQ:MULT affect the frequency value set with the command [:SOURce<hw>]:FREQuency[:CW|FIXed]. The query [:SOURce<hw>]:FREQuency[:CW|FIXed] returns the value corresponding to the formula: fFREQ = fRFout * NFREQ:MULT + fFREQ:OFFSer See 'RF frequency and level display with a downstream instrument'. Note: The offset also affects RF frequency sweep. \n :return: offset: float """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:OFFSet?')returnConversions.str_to_float(response)
[docs]defset_offset(self,offset:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:OFFSet \n Snippet: driver.source.frequency.set_offset(offset = 1.0) \n Sets the frequency offset fFREQ:OFFSet of a downstream instrument. The parameters offset fFREQ:OFFSer and multiplier NFREQ:MULT affect the frequency value set with the command [:SOURce<hw>]:FREQuency[:CW|FIXed]. The query [:SOURce<hw>]:FREQuency[:CW|FIXed] returns the value corresponding to the formula: fFREQ = fRFout * NFREQ:MULT + fFREQ:OFFSer See 'RF frequency and level display with a downstream instrument'. Note: The offset also affects RF frequency sweep. \n :param offset: float """param=Conversions.decimal_value_to_str(offset)self._core.io.write(f'SOURce<HwInstance>:FREQuency:OFFSet {param}')
[docs]defget_span(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:SPAN \n Snippet: value: float = driver.source.frequency.get_span() \n Sets the sapn of the frequency sweep range. See 'Correlating parameters in sweep mode'. \n :return: span: float Full freqeuncy range """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:SPAN?')returnConversions.str_to_float(response)
[docs]defset_span(self,span:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:SPAN \n Snippet: driver.source.frequency.set_span(span = 1.0) \n Sets the sapn of the frequency sweep range. See 'Correlating parameters in sweep mode'. \n :param span: float Full freqeuncy range """param=Conversions.decimal_value_to_str(span)self._core.io.write(f'SOURce<HwInstance>:FREQuency:SPAN {param}')
[docs]defget_start(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:STARt \n Snippet: value: float = driver.source.frequency.get_start() \n Sets the start frequency for the RF sweep. See 'Correlating parameters in sweep mode'. \n :return: start: float Range: 300kHz to RFmax """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:STARt?')returnConversions.str_to_float(response)
[docs]defset_start(self,start:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:STARt \n Snippet: driver.source.frequency.set_start(start = 1.0) \n Sets the start frequency for the RF sweep. See 'Correlating parameters in sweep mode'. \n :param start: float Range: 300kHz to RFmax """param=Conversions.decimal_value_to_str(start)self._core.io.write(f'SOURce<HwInstance>:FREQuency:STARt {param}')
[docs]defget_stop(self)->float:"""SCPI: [SOURce<HW>]:FREQuency:STOP \n Snippet: value: float = driver.source.frequency.get_stop() \n Sets the stop frequency range for the RF sweep. See 'Correlating parameters in sweep mode'. \n :return: stop: float Range: 300kHz to RFmax, Unit: Hz """response=self._core.io.query_str('SOURce<HwInstance>:FREQuency:STOP?')returnConversions.str_to_float(response)
[docs]defset_stop(self,stop:float)->None:"""SCPI: [SOURce<HW>]:FREQuency:STOP \n Snippet: driver.source.frequency.set_stop(stop = 1.0) \n Sets the stop frequency range for the RF sweep. See 'Correlating parameters in sweep mode'. \n :param stop: float Range: 300kHz to RFmax, Unit: Hz """param=Conversions.decimal_value_to_str(stop)self._core.io.write(f'SOURce<HwInstance>:FREQuency:STOP {param}')
defclone(self)->'FrequencyCls':"""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=FrequencyCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group