InsertSetup [Parametric]

Inserts a new parametric setup.

UI Access Right-click the Optimetrics folder in the project tree, and then click Add> Parametric on the shortcut menu.
Parameters
Name Type Description
<Parametric Params> Array

Array("NAME:<SetupName>", "SaveFields:=",

<SaveField>, <StartingPoint>, "Sim. Setups:=",

<SimSetups>,

<SweepDefs>, <SweepOps>,

Array("NAME:Goals", Array("NAME:Goal",

<OptiGoalSpec>), ... Array("NAME:Goal",

<OptiGoalSpec>))

<SetupName> String Name of the parametric setup.
<SimSetups> Array of Strings An array of Twin Builder solution setup names.
<SweepDefs> Array

Array("NAME:Sweeps",

Array("NAME:SweepDefinition", "Variable:=",

<VarName>, "Data:=", <SweepData>,

"Synchronize:=", <SyncNum>), ...

Array("NAME:SweepDefinition", "Variable:=",

<VarName>, "Data:=", <SweepData>,

"Synchronize:=", <SyncNum>))

<SweepData> String "<SweepType>, <StartV>, <StopV>, <StepV>"
<SweepType> String The type of sweep data.
<SyncNum> Integer SweepDatas with the same value are synchronized.
<SweepOps>  

Array("NAME:Sweep Operations", "<OpType>:=,

Array(<VarValue>, …, <VarValue>), ...

<OpType>:=, Array(<VarValue>, …, <VarValue>))

<OpType> String The sweep operation type.
Return Value None

 

Python Syntax InsertSetup ("OptiParametric", <ParametricParams>)
Python Example

oModule.InsertSetup("OptiParametric",

[

"NAME:ParametricSetup1",

"SaveFields:=", true,

[

"NAME:StartingPoint"

],

"Sim. Setups:=", ["Setup1"],

[

"NAME:Sweeps",

[

"NAME:SweepDefinition",

"Variable:=", "$width",

"Data:=", "LIN 12mm 17mm 2.5mm",

"OffsetF1:=", false,

"Synchronize:=", 0

],

[

"NAME:SweepDefinition",

"Variable:=", "$length",

"Data:=", "LIN 8mm 12mm 2mm",

"OffsetF1:=", false,

"Synchronize:=", 0

]

],

[

"NAME:Sweep Operations"

],

[

"NAME:Goals",

[

"NAME:Goal",

"Solution:=", "Setup1 : LastAdaptive",

"Calculation:=", "returnloss",

"Context:=", ""

[

"NAME:Ranges",

"Range:=",

[

"Var:=", "Freq", "Type:=","s"

"Start:=", "8GHz",

"Stop:=", "8GHz"

]

],

[

"NAME:Goal",

"Solution:=", "Setup1 : LastAdaptive"

"Calculation:=", "reflect",

"Context:=", "",

[

"NAME:Ranges",

"Range:=",

[

"Var:=", "Freq",

"Type:=","s",

"Start:=", "8GHz",

"Stop:=", "8GHz"

]

]

]

]

]

])