Example Code

Set User LED State On mioDAQ

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 shows how to use the System Config API to set the state of the "USER LED" on the front of a mioDAQ device. mioDAQ device models include USB-64xx model numbers.

Example uses of the USER LED include showing test system status such as running, complete, or "needs attention".

Potential code modification:

  • Use other VIs in the System Config API to programmatically detect the device name of your mioDAQ for more portable code. 
  • Add logic to select between the 7 LED states programmatically

mceclip0.png

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