Non-Active Port Configuration

Set up the load configuration to modify the load attached to a non-active port. There are three load configuration types: individual (single port definition), multiport single Touchstone (one Touchstone file for all the ports), and multiple single port Touchstone files (one file for each port). Only one configuration type can be used per calculation.

Specifying Individual Loading for Non-Active Ports

A load configuration table is used to store the individual port loading in for the non-active ports and the type property of the table is set to Individual. Each load is inserted in the Data table of the load configuration. An individual port load is defined as one of the following types:
  • Complex
  • Series RLC
  • Parallel RLC
  • Short or Open circuit
  • One-port Touchstone (.s1p) file
Below is an example of how the load types can be defined
nonActivePortsConfiguration = {}
nonActivePortsConfiguration.Type = "Individual"
nonActivePortsConfiguration.Data = {}
-- Load specification for complex series load 
load = {}
load.Label = "Port_1"
load.Index = 1
load.Type = "Complex"
load.Value = pf.Complex(150,20)
table.insert(nonActivePortsConfiguration.Data,load)
-- Load specification for series RLC load
load = {}
load.Label = "Port_2"
load.Index = 2
load.Type = "SeriesRLC" -- or "ParallelRLC"
load.R = 30
load.L = 20e-9
load.C = 5e-12
table.insert(nonActivePortsConfiguration.Data,load)
-- Load specification for short or open circuit
load = {}
load.Label = "Port_3"
load.Index = 3
load.Type = "Open" -- or "Short"
table.insert(nonActivePortsConfiguration.Data,load)
load = {}
load.Label = "Port_3"
load.Index = 4 -- index should match port number
load.Type = "Touchstone1port" 
-- Relative path from Lua settings file location on drive
load.Filename = "test_file.s1p"
table.insert(nonActivePortsConfiguration.Load.Data,load)
Note: Filename (property) is the relative path from the settings file to the Touchstone file.

Specifying Loading with Individual Touchstone Files

A nonActivePortsConfiguration table is used to store the individual port loading in for the non-active ports and the type property of the table is set to Individual_Touchstone_files. Each load is inserted in the Data table of the load configuration. For the individual Touchstone files type configuration, it is assumed that each load is a single .s1p file.
nonActivePortsConfiguration = {}
nonActivePortsConfiguration.Type = "Individual_Touchstone_files"
nonActivePortsConfiguration.Data = {}
load = {}
load.Label = "Port_1"
load.Index = 1
-- Relative path from Lua settings file location on drive
load.FileName = "test_file.s1p"
table.insert(nonActivePortsConfiguration.Data,load)
 
load = {}
load.Label = "Port_2"
load.Index = 2
-- Relative path from Lua settings file location on drive
load.FileName = "test_file.s1p"
table.insert(nonActivePortsConfiguration.Data,load)
Note: Filename (property) is the relative path from the settings file to the Touchstone file.

Specifying Loading with a Single Touchstone File

A nonActivePortsConfiguration table is used to store the port loading for the non-active ports and the type property of the table is set to Touchstone. For the Touchstone configuration type, it is assumed that all the loads are defined in a single Touchstone file.
nonActivePortsConfiguration = {}
nonActivePortsConfiguration.Type = "Touchstone"
-- Relative path from Lua settings file location on drive
nonActivePortsConfiguration.FileName = "4_port_load.s4p"