AddTraces

Creates a new trace and adds it to the specified report.

UI Access Modify Report > Add Trace.
Parameters
Name Type Description
<ReportName> String Name of Report
<SolutionName> String Name of the solution as listed in the Modify Report dialog box.

<ContextArray>

Array

Context for which the expression is being evaluated. This can be an empty string if there is no context.

Array("Domain:=", <DomainType>)

<DomainType> ex. "Sweep" or "Time"

Array("Context:=", <GeometryType>)

<GeometryType> ex. "Infinite Spheren", "Spheren", "Polylinen"

<FamiliesArray>

Array

Contains sweep definitions for the report.

Array("<VariableName>:= ", <ValueArray>)

<ValueArray>

Array("All") or Array("Value1", "Value2", ..."Valuen")

examples of <VariableName> "Freq", "Theta", "Distance"

<ReportDataArray>

Array

This array contains the report quantity and X, Y, and (Z) axis definitions.

Array("X Component:=", <VariableName>,

"Y Component:=", <VariableName> | <ReportQuantityArray>)

<ReportQuantityArray> ex. Array("dB(S(Port1, Port1))")

Return Value None

 

Python Syntax Add Traces(<ReportName>, <SolutionName>, <ContextArray >, <FamiliesArray>, <ReportDataArray>)
Python Example

oModule.AddTraces("XY Plot1", "Setup1 : Sweep1",

["Domain:=", "Time", "HoldTime:=", 1, "RiseTime:=", 0,

"StepTime:=", 6.24999373748E-012, "Step:=", False,

"WindowWidth:=", 1,

"WindowType:=", 0, "KaiserParameter:=", 1,

"MaximumTime:=", 6.2437437437444E-009],

["Time:=", ["All"], "OverridingValues:=", ["0s", "6.24999373748188e-012s", ... ]], ["X Component:=", "Time",

"Y Component:=", ["TDRZ(WavePort1)"]], [])