Example Code

Create Chirp Pattern 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 VI uses the Chirp Pattern VI and builds a Chirp Waveform

 

Description

A chirp is a signal in which the frequency continuously increases (up-chirp) or decreases (down-chirp) with time as shown in the picture below. It is commonly used in sonar and radar applications, but has other applications such as stimulus response analysis and spread spectrum communications.
LabVIEW has a built-in function named Chirp Pattern.vi that creates a continuous normalized sweep from a start frequency to a stop frequency. It can be found on the Block Diagram under the Functions Palette»Signal Processing»Signal Generation.
In order to output a chirp signal properly using a Data Acquisition device, you’ll need to normalize the start and stop frequencies of the chirp signal to the sampling rate of your device by dividing the frequencies by the sampling rate. In this way, the Chirp Pattern.vi will create a signal that when output at the sampling rate of your board, will be accurately represented in the physical world

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

  1. Enter Number of Samples, Amplitude, f1, f2 and Sample Rate in the Chirp Pattern Control
  2. Run the VI 

Additional Information or References

VI Block Diagram

Create Chirp Pattern LV2012 NI Verified BD.jpg

Chirp signal

 

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

ColeR
Field Engineer

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

Comments
Todd S.
NI Employee (retired)
on

Added "LabVIEW" to the tags so it would show up on the front page.  Also, could you include a screen shot or two to give us an idea of what the code looks like before we download?  Thanks!

Todd S.
LabVIEW Community Manager
National Instruments
rashp8
Member
Member
on

Can someone please tell me about its spectrum analysis. I am getting a single peak after spectral measurement. But chirp spectrum different.

Sonti_11532
Member
Member
on

The code is for either Up-Chirp or Down-Chirp. What about Chirp UP-Down combination?? If you can demonstrate this code with in given Pulse Width that would be better.

 

Thanks,

SNR