Tektronix TSP Toolkit Software

Quick Start Guide

Introduction

The Tektronix TSP™ Toolkit is an open-source Microsoft™ Visual Studio Code™ extension that provides support for Tektronix's Test Script Processor (TSP) technology to edit and execute scripts on TSP-enabled Tektronix instruments.

The extension includes language features such as syntax error detection, code navigation, and code-completion suggestions, as well as .tsp command set documentation and hover help.

This guide will show you how to:

? You can download Visual Studio Code from https://code.visualstudio.com/.

Install the TSP Toolkit extension

? Before installing the extension from the Marketplace, select Help > Check for Updates to make sure that you have the most recent version of Visual Studio Code. If you are using Microsoft Windows, be sure to also have the latest Visual C++ Redistributable library installed.

To install the extension from the Visual Studio Code Marketplace:

  1. Select the extensions icon ?. Figure 1: Extensions icon
  2. Select the search icon ?, then enter tektronix.tsp-toolkit in the search field. Figure 2: Searching for the TSP Toolkit
  3. Select Install under the Tektronix TSP Toolkit. Figure 3: Installing the TSP Toolkit
  4. The extension will install. Reload the window if you are prompted.

Set up your workspace

To set up your workspace in Visual Studio Code:

  1. Select the explorer icon ?. Figure 4: Selecting the Explorer
  2. Select File.
  3. Select Open Folder... to select a folder or create a new folder to use as your workspace. Figure 5: Opening a folder

In your workspace, use the New File and New Folder icons ➕ to create new .tsp files and subfolders. Figure 6: New File and New Folder icons

Connect to an instrument

You can connect your TSP-enabled instrument to your computer with a LAN, GPIB, or USB connection. GPIB and USB connections require a VISA driver.

To connect to a TSP-enabled instrument:

  1. Select the TSP icon ? on the left of the screen to open the instrument pane. Figure 7: Selecting the TSP icon
  2. Hover over the instrument you want to connect to, then your instrument, then select Connect ▶️. Figure 8: Selecting the Connect icon

If the connection was successful, a terminal window opens, and your instrument's *IDN? string will be displayed.

Configure a project

You can configure your project to have language features enabled for your TSP instruments and TSP-Link node network.

To configure a project:

  1. Select the TSP icon ? on the left of the screen to open the Instruments pane.
  2. Be sure that the System Configurations pane is selected. Figure 9: System Configurations selected
  3. Select the instrument tree icon ? to fetch the connected instrument and its TSP-Link nodes. Figure 10: Instrument tree icon
  4. If you do not have a connected instrument, select the add icon ➕ to manually add a new system. Figure 11: Adding a new system configuration
  5. Define your test system, then select Save. Figure 12: Defining the system configuration

When your project is configured, you are shown relevant code-completion suggestions, signature help, and command documentation for your connected instruments.

Run a .tsp script

To run a .tsp script:

  1. Open a .tsp script in the editor by clicking on it in the workspace or by selecting File > Open File.
  2. Right-click anywhere within the script editor to display the context menu.
  3. Select Send Script to Terminal to run the script. Figure 13: Running a .tsp script

Using the Terminal

? When scripts or commands are run from the Terminal, errors are only fetched after the requested action completes. No new errors are printed while the operation is in progress.

Once you have established a connection with your instrument, the Terminal can be used to send .tsp commands and run .tsp scripts.

To close the Terminal and disconnect from the instrument, send the .exit command.

Figure 14: TSP Terminal window

Using the debugger

To debug a TSP script using the TSP Toolkit extension:

  1. Add a breakpoint by clicking to the left of a line number. Figure 15: Adding a breakpoint
  2. In the upper-right corner of the script editor, select Debug TSP File. The script will run until the breakpoint is triggered. Figure 16: Starting the debugger
  3. When the breakpoint is triggered, use the debugger controls ⏯️▶️⏹️ to step through the script. Figure 17: Debugger controls
  4. You can navigate to the Debug view at any time by selecting Run and Debug ⚙️. Figure 18: Selecting Run and Debug

To add expressions to the Watch pane:

  1. Select the add icon ➕ in the top right corner. Figure 19: Adding to the Watch pane
  2. Enter the variable, command, or expression you wish to monitor, then press <Enter>.
  3. You can also highlight the expression within the script, then right-click and select Add to Watch. Figure 20: Selecting Add to Watch

Using automated (beta) TSP script generation

? This feature is only compatible with the Tektronix MP5000 Series SMU and PSU modules.

To create a TSP script using the Script Generation UI:

  1. From the Explorer pane, select the Script Generation panel.
  2. Select ➕ to view the TSP Toolkit Script Generation user interface. Figure 21: Selecting the View Script Generation UI
  3. Use the UI controls to configure the source and measure settings. The waveform previews can be used to verify that the settings will give the desired sourcing behavior. Figure 22: Using the Script Generation user interface to configure an IV test
  4. When you are finished adjusting parameters, select Open Script. Figure 23: Opening the script
  5. The generated script will be displayed in a new editor tab. You can run, save, or edit the script.

Downloading and using TSP example scripts

Example TSP Scripts are available for download on the TSP GitHub Repository.

To download and use a script:

  1. Select either the Application_Specific or Instrument_Examples folder to find .tsp scripts. Figure 24: GitHub .tsp script site
  2. Navigate the folders to find example scripts organized by instrument and application.
  3. You can click on a script to view the code within GitHub. Select the download icon ⬇️ to copy the script to your computer. Figure 25: Downloading a script
  4. When the download is finished, copy the script to your TSP Toolkit Workspace file location. Figure 26: Script in Workspace

Additional resources and tutorials

PDF preview unavailable. Download the PDF instead.

077187801 Sept 2025 TSPQSG Microsoft Word for Microsoft 365

Related Documents

Preview Tektronix PCIe PLL BW Transmitter Test Application Help
Explore the Tektronix PCIe PLL BW Transmitter Test Application Help guide. This document details how to perform Phase-Locked Loop (PLL) Bandwidth and Peaking tests for PCIe devices, following PCI Express specifications. Learn about setup, calibration, key features, and programmatic commands for accurate electronic testing with Tektronix and Anritsu equipment.
Preview Tektronix 3 Series Mixed Domain Oscilloscope Help (MD032, MD034)
User guide for the Tektronix 3 Series Mixed Domain Oscilloscope (MD032, MD034), detailing features, operation, configuration, and troubleshooting for this advanced test and measurement instrument.
Preview PCIe6.0 (CEM) Receiver Test Application Help - Tektronix
Comprehensive guide for the Tektronix PCIe6.0 (CEM) Receiver Test Application, detailing setup, calibration, testing procedures, and programmatic commands for PCIe6.0 device validation.
Preview Tektronix Clarius USB Tx Compliance Testing Application Help - USB4v2 Testing Guide
Comprehensive guide to using the Tektronix Clarius USB Tx Compliance Testing solution for USB4v2 and USB4 Gen4 verification. Learn about installation, configuration, testing, and reporting.
Preview USB4 v2 Receiver Test Application Help - Tektronix
Comprehensive guide to the Tektronix USB4 v2 Receiver Test Application, detailing setup, operation, calibration (Case 1, Case 2, Aggressor), and TER testing for USB4 v2 Gen 4 compliance. Learn about key features, required equipment, and programmatic commands for efficient receiver testing.
Preview 디지털 설계 디버깅 가이드
디지털 설계를 디버깅하기 위한 포괄적인 가이드로, 노이즈, 전송 라인 효과, 그라운드 바운스, 누화, 셋업 및 홀드 위반, 버스 경합, 글리치 및 지터 분석과 같은 주제를 다룹니다.
Preview Tektronix 372 Semiconductor Workbench User Manual
Comprehensive user manual for the Tektronix 372 Semiconductor Workbench, detailing its features for semiconductor device characterization, including setup, operation, measurement, analysis, and programming.
Preview Tektronix WVR5200 Waveform Rasterizer User Manual - Comprehensive Guide
User manual for the Tektronix WVR5200 Waveform Rasterizer. Covers setup, operation, and advanced features for monitoring SDI video and embedded audio signals, including waveform, vector, audio, and data analysis.