Example Code

Triggered Digital Input and Output Running at Different Rates

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

Overview
This VI starts a hardware timed digital output and input task running at different rates using a dummy analog input task.

Description:
This examples was developed for an M series device, two counters are used to generate the sample clocks for the I/O tasks.

Steps to implement or execute code
To implement this example:
  1. Configure the front panel.
  2. Run the VI

To execute this example:

  1. Install the required software.
  2. Connect the DAQ hardware
  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 16.0 or compatible

Hardware
cDAQ with C series or compatible DAQ devices

 

2017-10-30_13-41-56.jpg2017-10-30_13-41-03.jpg

**This document has been updated to meet the current required format for the NI Code Exchange.**
Sean Ferguson
Application Engineering Specialist | RF and Reconfigurable Test

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