Example Code

Configuring Nibble DIO for Trigger of the NI 9401

产品和环境

本部分要求填写创建该范例所需的产品和操作系统。

如要下载NI软件(包括以下所示产品),请访问ni.com/downloads

    硬件

  • Data Acquisition (DAQ)

    软件

  • LabVIEW

    驱动程序

  • NI DAQmx

代码和文档

添加附件

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

Description:
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


Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 9.0 or compatible

Hardware
cDAQ with C series Analog Input and Digital IO Module

 

fp.JPG

 

bd.JPG

 

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

NI社区“代码范例交流区”(Example Code Exchange)中的代码范例已获得MIT许可