Example Code

Generate Sine Wave Burst 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 VI generates sine wave burst, to be outputted continuously.

 
Description
This VI creates signal, containing a sine wave burst, which you can output continuously. The user can specify the frequency of the sine wave and the duration of the burst, and based on the total number of samples allocated to the signal, and the duty cycle for the burst, the VI determines the appropriate sampling rate which you should output at in order to achieve the desired sine wave burst. An error is thrown if the number of allocated samples is not enough to characterize the sine wave at the desired frequency.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Set your desired configuration (waveform type, frequency, burst duration, etc…)
  2. Run the VI
  3. Implement however you see fit

 

Additional Information or References
VI Block Diagram

 1.png

 

 

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

 

Matthew R.
Field Applications & Systems Engineer
National Instruments

Certified-LabVIEW-Developer_rgb.jpg

Certified-TestStand-Developer_rgb.jpg


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