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 Cal using Multiple Power Sensors

VBScript

Perform a Guided QSOLT Cal

VBScript

Power Meter Uncertainty

VBScript

Global Delta Match Cal

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

Active (Hot) Parameters

VBScript

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 and Cal an IMD Measurement

VBScript

Create a Swept IMDX 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#

Measurement Setup Converters

C#

Create Modulation File

VBScript

Set Up and Edit a Multitone Signal

None

Display Data Setup

C#

Source Modulation Calibration

Python

Digital Predistortion (DPD)

Direct DPD

None

DPD Modeling

None

DPD Model From File

None

Phase Noise Measurement

Setting Up a Phase Noise Measurement

VBScript

Setting Up a Source

VBScript

Spurious Measurement

VBScript

Integrated Noise Measurement

VBScript

Spot Noise Measurement

VBScript

TDR Measurements

Excel VBA

FCA

Environment

Create and Cal a VMC Measurement

VBScript

Perform a VMC Mixer Characterization

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

Create and Cal a VMC Measurement using Session commands Superseded

VBScript

Create and Cal an SMC Measurement using Session commands Superseded

VBScript

Pulsed App.

Environment

Create a Pulse Profile Measurement

VBScript

Create a Wideband Pulse Measurement

Visual Basic

Create a Narrowband Point-in-Pulse Measurement using DLL

VBScript

Create a Narrowband Pulse Profile Measurement using DLL

VBScript

Pulse Narrowband Setup

Python

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

External Test Set Control (N44xx)

VBScript

Transfer Files using MMEM:TRANSfer

Python

Establish a VISA Session

Visual Basic

Status Reporting

Visual Basic

Create a Custom Power Meter Driver

Visual Basic

GPIB Pass-Through

VBScript

VISA Pass-Through

VBScript

VNA as Controller and Talker/Listener

Visual Basic

Send SCPI commands using a Socket Client

C#

Setup FastCW and FIFO

VBScript

Upload and Download a Segment List

VBScript

Perform Linear Interpolation

VBScript

Set ECal States

VBScript

Getting and Putting Data with ASCII

Python

Getting and Putting Data with Binary

Python