Active Port Configuration

Set up the Lua settings file for the active ports in a multiport active ports configuration. Each active port in the configuration requires an excitation and a load specification.

Port Excitation Specification

The magnitude and phase for each active ports in the active port configuration are specified as follows:
-- create table to store the source data in 
activePortsConfiguration = {}
-- Source Port1
source = {}
source.Label = "Port1"
source.Index = 1
source.Value = pf.Complex(1,0)
table.insert(activePortsConfiguration,source)

Port Loading Specification

A load table that groups the loading for each port, is added to the active ports configuration. The four loading types for an active port are:
  • Direct connection (no additional loading)
  • Complex load
  • One-port Touchstone network (.s1p)
  • Two-port Touchstone network (.s2p)
-- Load options to attach to active port.
-- Create load table and load data table
activePortsConfiguration.Load ={}
activePortsConfiguration.Load.Data ={}
-- Type = 1 (direct connection or no loading), 
load = {}
load.Type = 1
table.insert(activePortsConfiguration.Load.Data,load)
-- Type = 2 (complex)
load ={}
load.Type = 2 
load.Value = pf.Complex(50,0)
table.insert(activePortsConfiguration.Load.Data,load)
-- Type = 3 (One port Touchstone network)
load = {}
load.Type = 3
-- Relative path from settings file location on drive
load.Filename = "test.s1p"
table.insert(activePortsConfiguration.Load.Data,load)
-- Type = 4 (Two port Touchstone network)
load = {}
load.Type = 4
-- Relative path from settings file location on drive
load.Filename = "example.s2p"
table.insert(activePortsConfiguration.Load.Data,load)
Note: Measurement data includes the reference impedance when determining the port loading.