To download NI software, including the products shown below, visit ni.com/downloads.
Introduction
This example takes two channels of data with different x axis values and subtracts the data to get the difference displayed on a waveform.
Description
This VI takes two channels of data, here simulated using the random number generator and combines them into a customized waveform graph. The maximum and minimum x axis values are extracted using the array max and min.vi, these values are passed to the ramp pattern.vi . The output of this VI is used in the interpolate 1d.vi along with the original acquired data to output the required data to the build waveform function, which then outputs a waveform. To minus 2 plots from each other the dt values (x axis) normally need to be matching, in this case the align waveforms (single shot).vi takes the data and allows for the subtraction to take place. This method allows for the subtraction without causing an unexpected data output after the subtraction.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.