Example Code

Spectral Analysis with 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 MathScript RT Module
  • LabVIEW

Code and Documents

Attachment

Overview

This code allows the user to applies a Hanning Window to an Input Signal "Acq" and calculates the FFT for the result.

 

Description

MathScript RT node applies a Hanning Window to a Simulated Signal "Acq" and calculates the FFT for the result. The code then trims the second half of the FFT and finally Log Scales the result.

 

Requirements

LabVIEW 2012 (or compatible)

MathScript Module 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Go to Block Diagram and connect a 1D Array Signal to Acq MathScript Node input
  2. Run VI

Additional Information or References

6032.png

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

Sam Shearman

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