Example Code

Principal Component Analysis Using LabVIEW and MathScript

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 example demonstrates the implementation of principal component analysis using a mixed approach between MathScript and LabVIEW.

 

Description

Principal component analysis is an algorithm that decomposes a signal into its N components (depending on the dimension) of the signal. This example creates a 3D surface in LabVIEW. The example then plots this data using only one to three of the components.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)
  • LabVIEW Mathscript RT Module

 

Steps to Implement or Execute Code

1. Run VI.
2. Specify the inputs and components.
3. Observe the 3D graph.

 

Additional Information or Resources

 

2012.PNG

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

 

 

Justin Parker
National Instruments
Product Support Engineer

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

Comments
Brein
Member
Member
on

can i ask a version of your software that will support labview 7.0 ? thanks in advance