Example Code

On The Fly Waveform Configuration 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.


  • Data Acquisition (DAQ)


  • LabVIEW


  • NI DAQmx

Code and Documents


Demonstrates on configuring waveform chart on the fly.

When this VI is running, the user is abled to configure waveform chart to be generated simply by regulating the front panel controls. Monitor the waveform charts on the right side of the front panel to verify the generated waveform.

LabVIEW 2012 or compatible.
NI-DAQmx 15.5.1 or compatible.

Steps to Implement or Execute Code:

  1. Connect the Analog Output channel to Analog Input Channel of the same device or to another device. This VI can be run using simulated device
    created in NI-MAX.
  2. Specify all control values on the front panel under the tab control.
  3. Run this VI and you may regulate the Amplitude and Frequency controls to see the changes on the charts. 

Front Panel.PNG



**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.