Example Code

VISA: List all VISA Devices

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 VI demonstrates how to use the VISA Find Resource function with the "?*" command to get the names of all of the VISA devices

 
Description
Here is a brief description of the example:

This VI uses the VISA Find Resource function with the "?*" command to get the names of all of the VISA devices. Then a property node is used to retrieve the VISA device information. That device information is then bundled into a cluster and displayed to on the front panel.

 

Requirements

  1. LabVIEW 2012 (or compatible)
  2. NI-VISA
  3. NI-PXI Devices


Steps to Implement or Execute Code

  1. Configure the VISA expression.
  2. Return the number of match found.
  3. Achieve some parameters, such as Rsrc Name, Model Code, Model Name and so on according to Property node.
  4. Close the VISA.

 

Additional Information or References

VI Snippet

VISA Device Information 2012 NIVerified.png

 

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

 

Justin Parker
National Instruments
Product Support Engineer

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