Example Code

Different Output Rates with One Clock Using LabVIEW

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example is used to create a sub-vi that will output the input arrayed data at different rates using one clock on an E or M series DAQ device.


Description
Although E or M series DAQ device will both output at the configured rate, the sub-vi will allow the array to be scaled to output the data at an effectively different rate.  This can come in handy if you need to acquire data at a faster rate than you need to output data when controlling using a NI DAQ card.


Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached sub-vi and drop onto block diagram to use.
  2. Open the VI " Arrayed Sample Rate Adjuster 2012 NIVerified"
  3. Input the sampling rate, desired rate and input array.
  4. Run the program

 

Additional Information or References
VI Snippet

3-186.png

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

Adam
Academic Product Manager
National Intruments

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