Example Code

Using a PXI/PXIe-2515 with an SMU and HSDIO Card

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Modular Instrumentation

    Software

  • LabVIEW

    Driver

  • Other

Code and Documents

Attachment

 

Overview
This example VI utilizes an event structure to handle the user selecting either a SMU or HSDIO device connected to a NI 2515 Switch.

 

Description
This VI runs continuously and reads the events triggered by the user to iterate between events in an event structure until the user selects "STOP." The user, by modifying the device selection, moves the event structure into the "Device Selection": Value Change event. In this event, there is a case structure to handle the selection made by the user. When the user selects "Disconnect," the event structure enters the "Disconnect": Value Change" event where the switch connection is broken. There is also a "Timeout" state that will pass current values along so that errors are handled appropriately.

 

Requirements

Software:

  1. LabVIEW 2012 (or compatible)
  2. NI-Switch

Hardware:

  1. PXIe-2515 Switch
  2. HSDIO Module
  3. SMU Module
  4. Connection Accessories for the PXIe-2515


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "2515 SMU and HSDIO Example 2012 NIVerified.vi"
  3. Run the program

 

Additional Information or References

VI Snippet

   111.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.