Example Code

Bode Diagram Plot Using 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

Code and Documents

Attachment

Overview

This example shows a quick way to create a filtered sine wave and plot its bode diagram plot.


Description
A Bode plot shows the magnitude vs frequency response of a circuit.  This example VI generates a sine wave sweep, sends it though a (software) filter, and plots the frequency response of the filter.  After the sine wave sweep completes the -3dB cutoff frequencies are calculated.  This VI could easily be modified for use with DAQ hardware and a physical circuit.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  • Select the max frequency and filter band width.
  • Run the program

 

Additional Information or References
VI Snippet

3-307.png

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

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