Example Code

Programmatically search for a device using Product Type

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example can programmatically search all of the National Instruments DAQ cards attached to machine for a specific product.
Description
This example uses a DAQmx System property node to access the list of discovered device names, and then a DAQmx Deviceproperty node to determine the product type of each of the discovered devices. If need to use a specific device type (eg. PCI-6221 regardless of the name which MAX has assigned to it

 

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

 

  1. Insert a specific device type. 
  2. 2.Run the program, this VI programmatically search a device which connect to computer.

 

Additional Information or References
VI Block Diagram

 

 

 1.png

 

 

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

 

 

 

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/

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