SCPI Example Programs


Getting Started

Environment

Controlling the VNA Using Microsoft Excel

Visual Basic

Controlling the VNA Using C#

C#

Controlling the VNA Using Python

Python

Controlling the VNA Using Python and IVI-COM

Python/IVI-COM

Controlling the VNA Using VB.NET

VB.NET

Controlling the VNA Using C++

C++

Transfer a VNA State File to an External PC Using C#

C#

Setup Measurements

Environment

Catalog Measurements

Python

Create a Measurement and Read Data

C#

Create a Balanced Measurement

VBScript

Create a FOM Measurement

Python

Channels, Windows, and Measurements

Python

Setup Sweep Parameters

Visual Basic

Setup the Display

Visual Basic

Setup a Measurement

Visual C++

Triggering the Analyzer

VBScript

Setup RxLeveling

VBScript

Setup Phase Control

VBScript

Configure an External Source

VBScript

Configure a PMAR Device

VBScript

Setup Markers

VBScript

Setup PNOP and PSAT Markers

VBScript

Plotting S-Parameter Measurement

Python

4 S-Parameter Measurement

Python

Create a FOM Measurement with Error Handling

Python

Read a Measurement Using Binary Block Transfer

Python

Shared Memory Example

C#

Shared Memory Exampe (using "CAL" arguement)

C#

Calibrations   See Calibrating the VNA Using SCPI

Environment

Calibrate All Channels

VBScript

Guided 2-Port or 4-Port Cal

VBScript

Guided 2-Port Comprehensive Cal

VBScript

Guided ECal

VBScript

Guided Mechanical

VBScript

Guided 1-port Mechanical Cal on Port 2

VBScript

Guided TRL

VBScript

Guided Unknown Thru or TRL Cal (apply Delta Match Cal)

VBScript

Perform a Guided QSOLT Cal

VBScript

Power Meter Uncertainty

VBScript

Unguided ECal

VBScript

Unguided 2-port Mechanical Cal

VBScript

Unguided 1-port Mechanical Cal on Port 2

VBScript

Unguided 2-port Cal on a 4-Port VNA

Visual Basic

Unguided Thru Response Cals

VBScript

Perform a CalAllChannels Calibration

VBScript

Perform Unguided Cal on Multiple Channels

VBScript

Perform an ECal User Characterization

VBScript

Perform an ECAL Confidence Check

Visual Basic

Perform a Source and Receiver Power Cal

VB/VBS

Perform a Simple Source Power Cal

VBScript

Perform a Source Power Cal with TWO Sensors

VBScript

Dynamic Uncertainty

VBScript

Upload a Source Power Cal

Visual Basic

Perform a Sliding Load Cal

Visual Basic

Load Error Terms during a Cal Sequence

None

Create a New Cal Kit

Python

Modify a Calibration Kit

Visual Basic

Fixture Simulator

Environment

Create fixturing function (impedance conversion and port matching)

None

Create fixturing function (2-port deembed, port extension, port matching, impedance conversion)

None

Create fixuring function (port impedance conversion and port extension)

None

Applications

Environment

Create and Cal a Noise Figure Measurement

VBScript

Create and Cal Noise Figure with External Switches

VBScript

Create and Cal an NFX Measurement

VBScript

Setup Noise Figure Port Mapping

VBScript

Create and Cal a GCA Measurement

VBScript

Setting Up GCA Parallel Measurement

Create and Cal a GCX Measurement

VBScript

Create an iTMSA Measurement

VBScript

Create a Diff I/Q Measurement

VBScript

Create a Spectrum Analyzer Measurement

VBScript

Create a Multi-Dimensional Sweep for a Spectrum Analyzer Channel

VBScript

Modulation Distortion Measurement

Measurement Setup

C#

Create Modulation File

VBScript

Set Up and Edit a Multitone Signal

None

Display Data Setup

C#

Source Modulation Calibration

Python

TDR Measurements

Excel VBA

FCA

Create and Cal a VMC Measurement

VBScript

VBScript

Create and Cal an SMC Measurement

VBScript

Setup an FCA Segment Sweep

VBScript

Create and Cal Multiple SMC Channels

VBScript

Create an SMC Fixed Output Measurement

VBScript

Create SMC Embedded LO Measurement

VBScript

Perform an SMC Phase Ref Cal

VBScript

Use an Existing Power Cal During an SMC Cal

VBScript

Pulsed App.

Environment

Create a Pulse Profile Measurement

VBScript

Create a Wideband Pulse Measurement

Visual Basic

Automatic Fixture Removal (AFR)

Environment

AFR Using One Differential 2X THRU

VBScript

AFR Using One Differential OPEN

VBScript

AFR Using One Single-Ended 2X THRU

VBScript

AFR Using One Single-Ended OPEN

VBScript

Source Modulation

Environment

Noise Power Ratio (NPR) Correction

None

Miscellaneous

Environment

SRQ Example

Python

Poll for Sweep Complete

Python

Getting and Putting Data

Visual Basic

Transfer Files using MMEM:TRANSfer

Python

Establish a VISA Session

Visual Basic

Status Reporting

Visual Basic

GPIB Pass-Through

VBScript

VNA as Controller and Talker/Listener

Visual Basic

Upload and Download a Segment List

VBScript

Set ECal States

VBScript

Getting and Putting Data with ASCII

Python