Example Code

Get cDAQ Module Types in LabVIEW

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 example demonstrates how to retrieve the product types from your cDAQ modules in your cDAQ chassis programatically.

 

 

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. Use DAQmx Device Property Node to retrieve an array of module device names.
  2. Use DAQmx Device Property Node inside of a for loop to retrieve the product type of each device.

 

Additional Information or References Get Module Names.png

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

National Instruments

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