InsertFrequencySweep

Adds a frequency sweep to a Driven solution-type setup.

UI Access Right-click an analysis setup, then select Add Frequency Sweep....
Parameters
Name Type Description
<SetupName> String Name of the solution setup into which the sweep will be inserted.
<Attributes> Array Structured array.

Array("NAME:<string name of sweep>",

"IsEnabled:=", <boolean>

"RangeType:=", <"LinearStep" | "LinearCount" | "LogScale">,

<LinearStepArray>

"RangeStart:=", "<real>GHz",

"RangeEnd:=", "<real>GHz",

"RangeStep:=", "<real>GHz",

<LinearCountArray>

"RangeStart:=", "<real>GHz",

"RangeEnd:=", "<real>GHz",

"RangeCount:=", <int>,

<LogScaleArray>

RangeStart:=", "<real>GHz",

"RangeEnd:=", "<real>GHz",

"RangeCount:=", <int>,

"RangeSamples:=", <int>,

<SweepTypeArray>

"Type:=", <"Interpolating" |"Fast" | "Discrete">,

<InterpolatingParametersArray>

"SaveFields:=", <boolean>,

"SaveRadFields:=", <boolean>,

"InterpTolerance:=", <real>,

"InterpMaxSolns:=", <int>,

"InterpMinSolns:=", <int>,

"InterpMinSubranges:=", <int>,

"ExtrapToDC:=", <boolean>,

"InterpUseS:=", <boolean>,

"InterpUsePortImped:=", <boolean>,

"InterpUsePropConst:=", <boolean>,

"UseDerivativeConvergence:=", true,

"InterpDerivTolerance:=", <real>,

"UseFullBasis:=", <boolean>,

"EnforcePassivity:=", <boolean>,

"PassivityErrorTolerance:=", <real>)

"EnforceCausality:=", <boolean>,

"UseQ3DForDCSolve:=" , <boolean>,

"SMatrixOnlySolveMode:=", <"Manual">|"Auto">,

"SMatrixOnlySolveAbove:=", "<real><units>"

<FastParametersArray>

"SaveFields:=", <boolean>,

"SaveRadFields:=", <boolean>,

"GenerateFieldsForAllFreqs:=", <boolean>,

"ExtrapToDC:=", <boolean>)

<DiscreteParametersArray>

"SaveFields:=", <boolean>,

SaveRadFields:=", <boolean>,

"ExtrapToDC:=", <boolean>)

Return Value None.

 

Python Syntax InsertFrequencySweep(<SetupName>, <Attributes>)
Python Example

oModule.InsertFrequencySweep("Setup1",

[

"NAME:Sweep1",

"IsEnabled:=" , True,

"RangeType:=" , "LinearCount",

"RangeStart:=" , "2.5GHz",

"RangeEnd:=" , "7.5GHz",

"RangeCount:=" , 401,

"Type:=" , "Interpolating",

"SaveFields:=" , False,

"SaveRadFields:=" , False,

"InterpTolerance:=" , 0.5,

"InterpMaxSolns:=" , 250,

"InterpMinSolns:=" , 0,

"InterpMinSubranges:=" , 1,

"InterpUseS:=" , True,

"InterpUsePortImped:=" , False,

"InterpUsePropConst:=" , True,

"UseDerivativeConvergence:=", False,

"InterpDerivTolerance:=", 0.2,

"UseFullBasis:=" , True,

"EnforcePassivity:=" , True,

"PassivityErrorTolerance:=", 0.0001,

"SMatrixOnlySolveMode:=", "Manual",

"SMatrixOnlySolveAbove:=", "1MHz"

])