Example Code

Configuring Nibble DIO for Trigger of the NI 9401

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.


  • Data Acquisition (DAQ)


  • LabVIEW


  • NI DAQmx

Code and Documents


The example will shows how to utilize the nibble DI/O configuration on the 9401 to trigger an analog task.

The VI would walks you  through the instance of utilizing the nible DIO of the 9401. Using the DAQmx functions and trigger, it would then wait a user selected delay and eventually would start the AI acquisition and finish by resetting the DO line to False after the trigger occurs

Steps to implement or execute code
To implement this example:
  1. Configure the channels
  2. (Optional) Specify the rest of the parameters as needed
  3. Run the VI
  4. (Optional) Turn on the Highlight Execution to see the flow of the VI


To execute this example:

  1. Install the required software.
  2. Connect the DAQ hardware that supports the Digital IO and Analog Input features
  3. Confirm the connection with the MAX with TestPanel
  4. Open the VI and refer the Implement Steps

LabVIEW 2012 or compatible
NI-DAQmx 9.0 or compatible

cDAQ with C series Analog Input and Digital IO Module






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

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