Example Code

Simple Wave Generator

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
To demonstrate how to do simple random wave generator

Description:
OK. I am kinda going though a Steampunk phase and while learning LabVIEW I created this little desktop gem to go along with that theme. This is just a simple random wave generator that looks pretty nice. It does nothing but create a wavy line. However I had just put the vi into an lprog and created an application so I can have my own desktop icon (from shortcut) and run the app where ever I want.
The screenshots do not show the wiring in the block diagram but it's all there. Also the background for the front panel is much larger than the running vi shows and someone with a little ingenuity can actually just copy the controls a few times ad in some more code and have multiple wavegens running at once.
CPU drain on this app is minimal due to the timing in the true and false cases. change that at your own risk.

Steps to implement or execute code
To implement this example:

  1. Run the VI
  2. (Optional) Turn on the Highlight Execution to see the flow of the VI


To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

 

fp.JPGbd.JPG

**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.