Example Code

Phase and Amplitude Alignment of Waveforms

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 executes phase and/or amplitude alignment for two waveforms of the same frequency.


Description
The Two waveforms are simulated based on user inputs of frequency, amplitude, phase, and sampling information. Using mathematics and signal processing functions in LabVIEW, the example computes the phase and/or amplitude difference, adjusts the waveform, and then displays the final waveform.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Press the run arrow
  1. Run VI

 

Additional Information or References
VI Block Diagram

 

 Block Diagram.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.