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.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview:
Demonstrates on configuring waveform chart on the fly.

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

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

 

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