Example Code

Add Two Waveforms That Start at Different Times 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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This VI returns the superposition of two waveforms.

 
Description
Use this VI to add one waveform to another. The augend input is the base waveform to which the addend is added. Therefore, the augend should have a starting time earlier than the addend. The waveforms do not need to be the same length. However, they must have the same dt. The augend time index is the point on the augend upon which the addend should start adding to.

 

Requirements

Software:

  1. LabVIEW 2014 (or compatible)


Steps to Implement or Execute Code

  1. Supplying this code as a subVI, or by copying the block diagram.

 

Additional Information or References

VI Snippet

 Add Two Waveforms That Start at Different Times 2014 NIVerified.png 

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

Andrew T.
"His job is to shed light, and not to master" - Robert Hunter

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