Example Code

Programmatically Determine Card Information in PXI Chassis (slot number, serial number, etc)

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

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Download All

Overview

This VI will programmatically get general information about all the cards in your system that use the VISA, DAQ, or MI drivers.

 

Description

This VI will programmatically get general information about all the cards in your system that use the VISA, DAQ, or MI drivers. This information includes:

  • Device Name
  • Product Type
  • Chassis Number
  • PXI Slot Number
  • Serial Number
  • VISA Resource reference

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

1. Run the VI.
2. Get the DAQmx device name.

 

Additional Information or References

 搜狗截图17年01月07日1745_9.png

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

 

Sarah S.
Applications Engineering
National Instruments

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

Comments
Todd S.
NI Employee (retired)
on

Thanks for posting.  Could you please embed a screenshot so we know what the code looks like?  Also, please rename your attachment to include the version number ("_lvXX.vi" would work).

Todd S.
LabVIEW Community Manager
National Instruments
qploxer
Member
Member
on

nice post... please rate!