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
- Complex
- Series RLC
- Parallel RLC
- Short or Open circuit
- One-port Touchstone (.s1p) file
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)
Specifying Loading with Individual Touchstone Files
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)
Specifying Loading with a Single Touchstone File
nonActivePortsConfiguration = {}
nonActivePortsConfiguration.Type = "Touchstone"
-- Relative path from Lua settings file location on drive
nonActivePortsConfiguration.FileName = "4_port_load.s4p"