S-Par 2 Couplers Per Port 1 VST Switching Class

This class is the base class for 2 couplers per port 1 VST setup. To implement your own switching class, inherit from this class and override the following two functions.

Connect.vi

This member VI is used to make the connection based on the direction of the incident and the coupler selection.

Incident Selection

Specifies whether the incident is from port 1 or port 2.

Coupler Selection

Specifies the coupler to measure.

Close Object.vi

This member VI is used to close all the sessions opened for the switches or DIO modules to control external switches.

Initialize

Other than these two functions, you may also need to create an initialize function to create a new switching object, as shown in the following example. You will need to open the sessions for all the modules used for switching, check if the configuration is valid, and create a data value reference for the class object so that it can be used in the S-parameter Measurement API.