Example Code

Programmatically detect DAQ devices capable of hardware-timed analog output

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

  • Multifunction I/O Device

    Software

  • LabVIEW

    Driver

  • NI-DAQ™mx

Code and Documents

Attachment

Description

This example code shows how to use DAQmx property nodes to programatically detect hardware devices connected to your systems that can perform a hardware-timed analog output task.

Example uses of this code include checking for hardware AO generation compatibility before fully loading or executing functions in your LabVIEW VI or LabVIEW built executible.

Potential code modifications include changing the property nodes to screen for:

  • Maximum input or output rates to automatically adjust measurements (or generation) to the performance of the hardware
  • Hardware device type to adjust capabilities in software to match those available with hardware  (channel counts, number of counters, etc.)

block diagram Find DAQ devices for HW timed AO.png

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