Example Code

Allan Variance Code (LV 9.0.1)

Code and Documents

Attachment

Hello,

here is a LabView source code for Allan variance and deviation data analysis (LabView 2009, Version 9.0.1, LabVIEW 7.1.1).

The code calculates, displays and saves the Allan variance/deviation plots of time-domain data series.

The definition of Allan variance is:

"Allan variance is one half of the mean-square of the differences of successive averages of the input array elements of the input array are time-averaged data."

The Allan variance math algorithm is coded according to the algorithm described in:

"Using the Allan variance and power spectral density to characterize DC nanovoltmeters", Th. Witt, IEEE Trans. Instr. Meas. 50, 445 (2001).

The main VI is "Allan_Plots.VI" in the library "Allan-Variance.llb".

The zip-file also contains a test data set "AVAR-test.dat" (ASCII) to show the structure of the expected input data file.

Hansjörg Scherer

12.07.2012

Bogdan Buricea

-Added older 7.1.1 version as well.

7/30/012

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

Contributors