Example Code

Variable Frequency Signal Generation 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.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview
The example demonstrates how to create sweep signal that  vary in frequency, amplitude and shape.

Description:
One seemingly simple, and very common DAQ application is to generate a signal which can vary in frequency, amplitude and shape. The following example does just that!

Steps to implement or execute code
To implement this example:

  1. Define the Analog Output channel.
  2. Configure the type, frequency and amplitude.
  3. Run the VI.
  4. (Optional) Turn on the Highlight Execution to see the flow of the VI


Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible

Hardware
cDAQ with C series Analog Output Module

 

2017-10-31_14-27-51.jpg2017-10-31_14-27-36.jpg

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


Regards,

Peter D

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