Example Code

Create Averaged Reference Value from Initial Data for Comparison

Code and Documents

Attachment

This VI creates an averaged reference value from the initial set of incoming data. The user can manually set the number of data points used to create the averaged reference value. The averaged reference value can be cleared and re-evaluted for a new set of incoming data. The difference is also displayed between the averaged reference value and the current data input.

Block Diagram.JPG

Front Panel.JPG

dK

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

Contributors