Example Code

Build a Multi-Tone Signal Based on Device's Available Onboard Memory

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

  • Modular Instrumentation

    Software

  • LabVIEW

    Driver

  • Other

Code and Documents

Attachment

Overview

Builds a signal comprised of multiple tones that will be downloaded to an arbitrary waveform generator.

 

Description

This code was created to build a signal comprised of multiple tones that will be downloaded to an arbitrary waveform generator. The important part about the functionality of this VI is that it can take the size of the onboard memory as an input and calculates the minimum number of cycles of each of the waveforms that will fit in that onboard memory size. There is a subVI that makes these calculations that is also included in the zipped folder.

 

Requirement

Software:
    Labview 2012 (or compatible)

 

Steps to Implement or Execute Code

Unzip the attached folder and add Multi-Tone Waveform Generation.vi to your VI's block diagram. Ensure that f1_f2_f3.vi is also included in your project or project folder.

 

Additional Information or References

Block Diagram

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