<< Chapter < Page Chapter >> Page >
Learn about the LabVIEW programming environment, create your first virtual instrument (VI), learn about LabVIEW's dataflow programming paradigm,become acquainted with some of LabVIEW's data types, and review some useful debugging techniques.

Overview

Welcome to the exciting world of LabVIEW for audio and signal processing applications! This module contains five screencast videos, meaning that the videos were captured directly from my computer screen. As I operate the LabVIEW software, I explain each step and discuss what is going on. After you watch each of the videos, you will possess a good idea of some fundamental LabVIEW concepts, including:

  • Front panel and block diagram programming paradigm
  • Dataflow paradigm
  • Data types
  • Broken wires
  • Debugging techniques

A bit of history

In 1986 National Instruments Corporation released the first version of LabVIEW ( Lab oratory V irtual I nstrument E ngineering W orkbench), which was designed to help engineers use a computer (the Apple Macintosh) to control and gather data from electronic instrumentation (voltmeters, oscilloscopes, and the like) all interconnected by the standard General Purpose Instrumentation Bus, or GP-IB. From its inception, LabVIEW programming was graphical in nature. Instead of writing a text file and compiling it to an executable, you connect various elements such as controls , indicators , nodes and subVIs together with wires , and in this way create a block diagram . The controls and indicators reside on the front panel , which looks just a traditional electronic instrument, i.e., it can have knobs, sliders, buttons, and display panels. The complete application is called a virtual instrument , or VI for short.

LabVIEW has since evolved into a complete programming environment; anything that you can imagine can probably be implemented in LabVIEW. Recent versions of LabVIEW have added a full suite of tools for doing signal processing, and since soundcard operations are provided, it becomes natural to develop audio signal processing applications in LabVIEW.

LabVIEW’s interactive front panel offers a unique opportunity to explore signal processing concepts in real time. As you work your way through other modules in this series, you will learn how to implement your own applications whose user interface consists of knobs, sliders and switches that can adjust processing parameters while you listen to the results.

Your first virtual instrument (vi)

Watch the following screencast video to learn how to connect front panel controls and indicators together. You will also learn how to use the While Loop structure to make your VI operate continuously until you press a “STOP” button on the front panel.

[video] Creating your first "VI" (Virtual Instrument)

The dataflow concept

The notion of LabVIEW’s dataflow programming paradigm must be grasped immediately in order for you to make forward progress learning about LabVIEW to create your own applications. Dataflow programming means that valid data must be present at all of the input terminals on a node (or subVI) before that node (or subVI) will produce valid data on its output terminals. Moreover, the node (or subVI) does not continually process its inputs data unless it is embedded in some sort of looping structure.

Click on the following animation of the dataflow concept to watch a screencast video that explains and further explores the dataflow programming concept.

[video] Understanding the LabVIEW "dataflow" paradigm

Data types

LabVIEW supports a broad range of data types , including numeric , Boolean , and string . The following screencast video will acquaint you with the floating point and integer styles of numeric data type, as well as the Boolean data type. The screencast explains the significance of the coercion indicator -- the red dot that flags a mismatch on data types applied to the input of a node or subVI -- as well as data type conversion nodes that you can use to intentionally convert a value from one data type to another.

[video] Datatypes: Numeric and Boolean

Broken wires

Broken wires indicate an error that must be corrected before your VI will run. Broken wires result from a number of causes, and it is important to understand why the wire is broken and how to correct the situation. The following screencast describes broken wires in detail.

[video] Understanding and correcting broken wires

Debugging techniques

As you begin learning LabVIEW so that you can develop your own VIs, you will find the debugging techniques described by the next screencast video helpful. Topics include adding additional indicators, using the Highlight Execution feature, using the Retain Wire Values feature, single-stepping , viewing wire values using probes , and creating breakpoints to pause execution when new data is available on a wire.

[video] Basic debugging techniques

For further study

If you are new to LabVIEW, I recommend the excellent text by Robert H. Bishop, Learning with LabVIEW 8 (Pearson Prentice Hall, 2007, ISBN 0-13-239025-6) . With this text you can learn basic LabVIEW programming techniques and get a better idea of everything that LabVIEW has to offer.

Once you have developed some skill with LabVIEW, consider Peter A. Blume’s text, The LabVIEW Style Book (Prentice Hall 2007, ISBN 0-13-145835-3) . This text covers a wide variety of techniques that will help you to develop robust and well-designed LabVIEW applications.

Don’t forget to check out the on-line documentation that is part of your LabVIEW product installation.

Visit the National Instruments website, including their Academic page and the NI Developer Zone .

Questions & Answers

what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Musical signal processing with labview -- programming techniques for audio signal processing. OpenStax CNX. Jul 18, 2007 Download for free at http://cnx.org/content/col10440/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Musical signal processing with labview -- programming techniques for audio signal processing' conversation and receive update notifications?

Ask