S-Par 2 Couplers Per Port 1 VST Switching (Scan Mode) Class

This class is the base class for 2 couplers per port 1 VST, solid state switch setup. To implement your own switching class, inherit from this class and override the following two functions. This switching configuration should enable scanning of the switches automatically with a trigger input so that the switching path can be updated as needed.

Update Scan Status.vi

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

Scanning Status

Specifies the status to set on the switches. Select from the following options.

Idle Specifies that no switching is needed. The internal status should be initialized as Idle.
Port 1 SOL Scans the two couplers on Port 1, mainly for SOL calibration of Port 1.
Port 2 SOL Scans the two couplers on Port 2, mainly for SOL calibration of Port 2.
Through/DUT Scans the 2 port measurements for through calibration or DUT measurements.

Status Changed

Returns TRUE when a change in the scanning status occurs after this VI is called. Returns FALSE when the scanning status is unchanged after this VI is called.

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.