# 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.

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.Type = "SeriesRLC" -- or "ParallelRLC"
-- Load specification for short or open circuit
load.Type = "Open" -- or "Short"
load.Index = 4 -- index should match port number
-- Relative path from Lua settings file location on drive

Note: Filename (property) is the relative path from the settings file to the Touchstone file.

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 = {}
-- Relative path from Lua settings file location on drive

table.insert(nonActivePortsConfiguration.Data,load)
nonActivePortsConfiguration = {}
nonActivePortsConfiguration.FileName = "4_port_load.s4p"