CfgSIwaveACSetup#
- class pyedb.configuration.cfg_setup.CfgSIwaveACSetup(/, **data: Any)#
Bases:
CfgSetupACRepresent one SIwave AC setup entry.
Overview#
Add a frequency sweep to this SIwave AC setup. |
Import detail#
from pyedb.configuration.cfg_setup import CfgSIwaveACSetup
Attribute detail#
Method detail#
- CfgSIwaveACSetup.add_frequency_sweep(name: CfgSetupAC | str, sweep_type: str = 'interpolation', start=None, stop=None, step_or_count=None, distribution: str = 'linear_count', **kwargs)#
Add a frequency sweep to this SIwave AC setup.
- Parameters:
- name
CfgFrequencySweeporstr Either a pre-built
CfgFrequencySweepobject (round-trip use) or a name string for a new sweep.- sweep_type
str,optional Sweep interpolation type. Accepted values:
"interpolation"(default) or"discrete".- start
strorfloat,optional Inline range start frequency, e.g.
"1kHz". When provided, stop and step_or_count are also required.- stop
strorfloat,optional Inline range stop frequency, e.g.
"1GHz".- step_or_count
str,float,orint,optional Point count (for
"linear_count"/"log_count") or step size (for"linear_scale"/"log_scale").- distribution
str,optional Frequency distribution. Default is
"linear_count". Accepted values and aliases:"linear_count"/"linearcount"/"linear count""log_count"/"logcount"/"log count""linear_scale"/"linearscale"/"linear scale""log_scale"/"logscale"/"log scale""single"
- **kwargs
Additional keyword arguments forwarded to
CfgFrequencySweepwhen name is a string.
- name
- Returns:
CfgFrequencySweepThe newly created (or passed-through) sweep object.
Examples
Inline (single call):
>>> siwave_ac.add_frequency_sweep( ... "sw1", ... start="1kHz", ... stop="1GHz", ... step_or_count=100, ... distribution="log_count", ... )
Chained ranges:
>>> sw = siwave_ac.add_frequency_sweep("sw2", sweep_type="interpolation") >>> sw.add_linear_count_frequencies("1MHz", "500MHz", 50)