Switch Executive

Description

This example demonstrates how to use TestStand to integrate and perform switching operations with NI Switch Executive.

Example File Location

<TestStand Public>\Examples\Interfacing with Hardware\Switch Executive\Switch Executive.seq

Highlighted Features

  • NI Switch Executive integration
  • IVI Switch step type
  • Switching panel

Major API

None

Prerequisites

This example assumes you have installed a release or evaluation version of NI Switch Executive. This example also assumes the SwitchExecutiveExample virtual device exists and the SampleMatrix1 and SampleMatrix2 IVI logical names are configured to run in simulation mode.

The virtual device is created when you install NI Switch Executive. If the device and/or logical names have been removed, you can recover them by performing the following steps:

  1. Open the Windows command line and type cd <National Instruments>/switch executive, where <National Instruments> is the NI directory, which is C:\Program Files (x86)\National Instruments by default.
  2. Enter the command SwitchExecutive s to recreate the virtual device and logical names.

How to Use This Example

The sequence performs switching operations using the Switching panel on the Properties tab of the Step Settings pane and the IVI Switch step type. Using the Switching panel, any step can perform switching operations while the step executes or perform switching setup for subsequent steps.

You can monitor IVI switching operations by launching NI I/O Trace prior to running this example. You must enable tracing of calls to the IVI Switch API.

Visit ni.com/ivi for more information about IVI.