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

I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
What would be the best educational aid(s) for gifted kids/savants?
Heidi Reply
treat them normal, if they want help then give them. that will make everyone happy
Saurabh
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