Example Code

USB Interrupt Pipe using VISA

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

  • Other

    Software

  • LabVIEW

    Driver

  • NI VISA

Code and Documents

Attachment

Download All

Overview
This example VI shows how to use the USB Interrupt Pipe utilizing LabVIEW VISA commands.


Description 

This example VI shows how to use the USB Interrupt Pipe utilizing LabVIEW VISA commands. You must have a VISA Driver for your device and the RAW USB device must show up in Measurement and Automation Explorer. The example VI will then be able to work if the device supports an Interrupt Pipe.

Requirements

Software

  1. LabVIEW 2012 or later
  2. NI-VISA Driver

Hardware

  1. RAW USB Device

 

Steps to Implement or Execute Code

  1. Choose correct USB RAW VISA resource name.
  2. Set Timeout to wait for Interrupt (ms).
  3. Run the VI.

 

NOTE: You must first get your interrupt pipe USB device recognized by Windows and attach VISA to it as a driver using the VISA Driver Development Wizard. The USB RAW name should show up in MAX, and you should be able to select it below.  Running this VI will cause the VI to wait for an interrupt from the device and then return the interrupt data once it occurs.

 

Additional Information or References

VI Snippet
1111.png

 

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

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