AddNPortData [component manager]

Adds a component using the specified data.

UI Access Project Menu > Add Model > Add Nport Model
Parameters
Name Type Description
<ComponentDataName> String Name of component to be created
<ComponentDataType> String Should be defined as "NportData"
<name> String Name of the item
<filename> String Path to the file that has the desired data
<numberofports> Integer  
<filelocation> String

Possible values are "UsePath", "PersonalLib", "UserLib", "SysLib", or "Project".

<domain> String Possible values are "time" or "frequency"
<datamode> String Possible values are "EnterData", "Import", or "Link"
<devicename> String  
<ImpedanceTab> Boolean  
<NoiseDataTab> Boolean  
<DCBehaviorTab> Boolean  
<SolutionName> String  
<dcInfo> String

Possible values include "DCOpen", "DCShort", "DCShShort", "DCNone", or "DCEmpty".

<displayformat> String

Possible values are "MagnitudePhase","RealImaginary", or "DbPhase".

<datatype> String Possible values are "SMatrix", "YMatrix", or "ZMatrix"
<ShowRefPin> Boolean  
<RefNodeCheckbox> Boolean  
<ProductOptionsInfo> Array

The parameters differ by product:

HFSS 3D Layout - doesn't support interpolation/DC behavior

"DCOption:=", -1,

"InterpOption:=", -1,

"ExtrapOption:=",-1,

"DataType:=", 0

 

Nexxim

"DCOption:=", <NexximDCOption>,

"InterpOption:=", <NexximInterpOption>,

"ExtrapOption:=", <NexximExtrapOption>,

"DataType:=", 2

<NexximDCOption>:

<int> // 0 : Zero Padding

// 1 : Same as last point

// 2 : Linear extrapolation from last 2 points

// 3 : Constant magnitude, linear phase extrapolation

// 4 : Leave all signal lines open circuited

// 5 : Short all signal lines together

// 6 : Short all signal lines to ground

 

<NexximInterpOption>:

<int> // 0 : Step

// 1 : Linear

 

<NexximExtrapOption>:

<int> // 0 : Zero padding

// 1 : Same as last point

// 2 : Linear extrapolation from last 2 points

// 3 : Constant magnitude, linear phase extrapolation

Circuit

<CircuitDCOption>:

<int> // 0 : Leave all signal lines open circuited

// 1 : Short all signal lines together

// 2 : Short all signal lines to ground

// 3 : Extrapolate from data provided (not recommended)

<CircuitInterpOption>:

<int> // 0 : Linear

// 1 : Cubic spline

// 2 : Rational polynomial

<CircuitExtrapOption>:

<int> // 0 : Same as interpolation

// 1 : Zero padding

// 2 : Same as last point

Return Value

String that includes the composite name of the component. If the name requested conflicts with the name of an existingcomponent, the requested name is altered to be unique. The name returned reflects any change made to be unique.

 

Python Syntax

AddNPortData ([<ComponentDataName>, <ComponentDataType>, <name>, <filename>, <numberofports>, <filelocation>, <LocationType>, <domain>, <datamode>, <devicename>,<ImpedanceTab>,<NoiseDataTab>, <DCBehaviorTab>, <SolutionName>, <displayformat>, <datatype>, <ShowRefPin>, <RefNodeCheckbox>, <ProductOptionsInfo>])

Python Example

oComponentManager.AddNPortData([NAME:ComponentData",

"ComponentDataType:=", "NPortData",

"name:=", "NportData",

"filename:=", "",

"numberofports:=", 2,

"filelocation:=", "UsePath",

"domain:=", "frequency",

"datamode:=", "Import",

"devicename:=", "",

"ImpedenceTab:=", true,

"NoiseDataTab:=", true,

"DCBehaviorTab:=", true,

"SolutionName:=", "",

"displayformat:=", "MagnitudePhase",

"datatype:=", "SMatrix",

"ShowRefPin:=", true,

"RefNodeCheckbox:=", false,

"DCOption:=", 3,

"InterpOption:=", 1,

"ExtrapOption:=", 3,

"DataType:=", 2,

"DCOption:=", 3,

"InterpOption:=", 1,

"ExtrapOption:=", 3,

"DataType:=", 2

])