Example Code

Example Code:Harmonic components of the graphical display

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

Code and Documents

Attachment

Download All

Overview

Coding that exemplifies how to generate a graph of the harmonics vs the THD percentage of a simulated signal.

 

Description

Visual aid is always a plus to analyze data. On this code we will generate an XY Graph with THD information for all the different harmonics.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Set the frequency, amplitude and the amount of desired harmonics.
2. Run the VI.

 

 Additional Information or References

THD-2前面版.png

                                                                      Front panel

 Capture.PNG

                                                                     Block diagram

" 一天到晚游泳的鱼"

labview@263.net

我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview

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

Comments
zaim4
Member
Member
on

do they count automatically the THD value..??becasue basd on my understanding...for first harmnic..it is a fundamental amplitude..not THD value..then, we need to calculate it based on the THD calculation...am i right??