Example Code

Relating the Color between 3D Graphs

Code and Documents

Attachment

Overview

This VI takes two signals from the Simulate Signal VI. One signal is a sine wave with amplitude 1 and one signal is a sine wave amplitude 10. These two signals are individually searched to find their maximum and minimum values. Then, the maximum values are compared to get the overall maximum, and the minimum values are compared to get to the overall minimum value. These two points of data are then added to each original set of data, and the two new groups of data are sent to the Plot Helper VIs. Note that this does change the original sets of data, but this VI is intended to be used for visual comparison, not data manipulation.

The code is documented on the block diagram for easier understanding.

Requirements

Software: LabVIEW 2011 or later

Code Snippet

3D_Graph_Color_Scaling.png

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

Contributors