S-Par 2 Couplers Per Port 1 VST Switching Class
- Updated2024-11-14
- 2 minute(s) read
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.
.gif?_LANG=enus)
Incident Selection
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.
.gif?_LANG=enus)
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.
.gif?_LANG=enus)