Example Code

Create Timing Source with Analog Input Sample Clock Using LabVIEW with DAQmx

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 shows how to use the analog input sample clock to serve as the time source for a timed loop structure.

 
Description

Inside the timed while loop of this VI is an analog output.  In addition, Finished Late Output Node was included, if the code inside the timed while loop takes too long to execute, a true will be passed to the Finished Late? indicator.

Analog Output Sample Clocks are not supported as the timing source for a timed while loop structure.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Select physical channels for analog input and analog output.
  2. Set up the Analog Output Values.
  3. Run the VI.

 

Additional Information or References
VI Snippet

017.png 

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

A_Ryan
AES
National Instruments

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