SKIP THE SHIPPING
Use code NOSHIP during checkout to save 40% on eligible eBooks, now through January 5. Shop now.
Register your product to gain access to bonus material or receive a coupon.
Covers the new features of the most recent release of LabView software. Ex.___
Demonstrates how LabVIEW can be used to share data either over the Internet or by using DataSocket or VI Server, as well as when talking to other programs and computers. Ex.___
Provides up-to-date information on current topics. Ex.___
Allows students to learn and use LabVIEW at their own pace, and to graduate to more advanced topics and applications as their professional needs and programming skills increase. Ex.___
Allows students a practical, hands-on approach to every topic. Ex.___
Helps students comprehend the information more quickly and completely. Ex.___
Allows students to work out examples as well as providing solutions to the activities found throughout the book. Ex.___
The #1 step-by-step guide to LabVIEWnow completely updated for LabVIEW 6i.
LabVIEW is the #1 graphical programming language for engineers and scientists worldwide. Now the best-selling, most authoritative introduction to LabVIEW has been fully revised to make LabVIEW programming easier than everand to reflect the latest enhancements in National Instruments' LabVIEW 6i. Designed for non-experts, LabVIEW for Everyone, Second Edition teaches LabVIEW through intuitive, friendly, step-by-step examplesgiving you code that's easy to reuse in your own projects!
Whatever your application, whatever your role, whether you've used LabVIEW or not, LabVIEW for Everyone, Second Edition is the fastest, easiest way to get the results you're after!
About the CD-ROMThe accompanying CD-ROM contains an extensive library of sample code, plus a complete time-limited evaluation version of LabVIEW 6i.
Introduction to LabVIEW: A Programming Environment for Scientists and Engineers
Preface.
FUNDAMENTALS.
1. Introduction—What in the World Is LabVIEW?What Exactly Is LabVIEW, and What Can It Do for Me? Demonstration Examples. Wrap it Up! Additional Activities.
2. Virtual Instrumentation: Hooking Your Computer Up to the Real World.The Evolution of LabVIEW. What Is Data Acquisition? What Is a GPIB? Communication Using the Serial Port. Real-World Applications: Why We Analyze. A Little Bit about PXI and VXI. Connectivity. LabVIEW Add-on Toolkits. Wrap It Up!
3. The LabVIEW Environment: Building Your Own Workbench.Front Panels. Block Diagrams. The Icon and the Connector. Pull-Down Menus. Floating Palettes. The Toolbar. Pop-Up Menus. Help! A Word about SubVIs. Activity 3-2: Front Panel and Block Diagram Basics. Wrap It Up!
4. LabVIEW Foundations.Creating Vis—It's Your Turn Now! Basic Controls and Indicators and the Fun Stuff They Do. Wiring Up. Running Your VI. Useful Tips. Wrap It Up! Additional Activities.
5. Yet More Foundations.Loading and Saving VIs. VI Libraries. Debugging Techniques. Creating SubVIs. Documenting Your Work. A Little about Printing. Activity 5-2: Creating SubVIs—Practice Makes Perfect. Wrap It Up! Additional Activities.
6. Controlling Program Execution with Structures.Two Loops. Shift Registers. Case Structures. Sequence Structures. The Formula Node. Wrap It Up! Additional Activities.
7. LabVIEW's Composite Data: Arrays and Clusters.What Are Arrays? Creating Array Controls and Indicators. Using Auto-Indexing. Two-Dimensional Arrays. Activity 7-1: Building Arrays with Auto-Indexing. Functions for Manipulating Arrays. Activity 7-2: Array Acrobatics. Polymorphism. Activity 7-3: Polymorphism. Compound Arithmetic. All about Clusters. Creating Cluster Controls and Indicators. Cluster Order. Using Clusters to Pass Data to and from SubVIs. Bundling Your Data. Replacing a Cluster Element. Unbundling Your Clusters. Activity 7-4: Cluster Practice. Bundling and Unbundling by Name. Activity 7-5: More Fun with Clusters. Interchangeable Arrays and Clusters. Wrap It Up! Additional Activities.
8. LabVIEW's Exciting Visual Displays: Charts and Graphs.Waveform Charts. Activity 8-1: Temperature Monitor. Graphs. Activity 8-2: Graphing a Sine on a Waveform Graph. XY Graphs. Chart and Graph Components. Activity 8-4: Temperature Analysis. Intensity Charts and Graphs—Color as a Third Dimension. Waveforms. Wrap It Up! Additional Activities.
9. Exploring Strings and File I/O.More about Strings. Using String Functions. Activity 9-1: String Construction. Parsing Functions. Activity 9-2: More String Parsing. File Input/Output. Activity 9-3: Writing to a Spreadsheet File. Activity 9-4: Reading from the Spreadsheet File. Wrap It Up! Additional Activities.
ADVANCED TOPICS.
Introduction to the Advanced Section.Acronyms Unlimited. How to Connect Your Computer to the Real World. Signals. Selecting and Configuring DAQ Measurement Hardware. Activity 10-2: Measurement System Analysis. Installing the Boards. Using a GPIB Board. Getting Ready for Serial Communications. Wrap It Up! Solutions to Activities.
11. DAQ and Instrument Control in LabVIEW.Definitions, Drivers, and Devices. Analog I/O. Digital I/O. Instrument Control in LabVIEW: VISA, GPIB, and Serial. Wrap It Up!
12. Advanced LabVIEW Functions and Structures.Local and Global Variables. Property Nodes. Other LabVIEW Goodies. Calling Code from Other Languages. Fitting Square Pegs into Round Holes: Advanced Conversions and Typecasting. Wrap It Up!
13. Advanced LabVIEW Features.Options, Options. Configuring Your VI. The VI Server. Radices and Units. Automatically Creating a SubVI from a Section of the Block Diagram. A Few More Utilities in LabVIEW. Wrap It Up!
14. Connectivity in LabVIEW.LabVIEW, Networking, and the Internet. An Overview of How the Web Works. Publishing and Controlling VIs on the Web. Sharing Data over the Network: DataSocket. Connectivity to Other Programs and Devices. Enterprise Connectivity—The Big Picture. Wrap It Up!
15. Advanced File I/O, Printing, and Reports.Advanced File I/O. Putting It in Writing: Printing with LabVIEW. Reports from LabVIEW. Wrap It Up!
16. The Art of LabVIEW Programming.Why Worry about the Graphical Interface Appearance. Arranging, Decorating, Grouping, and Locking. Vive l'Art: Importing Pictures. Custom Controls and Indicators. Adding Online Help. Pointers and Recommendations for a “Wow!” Graphical Interface. How Do You Do That in LabVIEW? Memory, Performance, and All That. Programming with Style. Wrap It Up! Concluding Remarks.
Appendix.Resources for LabVIEW.
Glossary.Index.LabVIEW, or Laboratory Virtual Instrument Engineering Workbench, is a graphical programming language that has been widely adopted throughout industry, academia, and research labs as the standard for data acquisition and instrument control software. LabVIEW is a powerful and flexible instrumentation and analysis software system that is multiplatform (predating Java, which makes the same claim)you can run LabVIEW on Windows, MacOS, Linux, Solaris, and HP-UX. Personal computers are much more flexible than standard instruments, and creating your own LabVIEW program, or virtual instrument (VI), is simple. LabVIEW's intuitive user interface makes writing and using programs exciting and fun!
LabVIEW departs from the sequential nature of traditional programming languages and features an easy-to-use graphical programming environment, including all of the tools necessary for data acquisition (DAQ), data analysis, and presentation of results. With its graphical programming language, called "G," you program using a graphical block diagram that compiles into machine code. Ideal for a countless number of science and engineering applications, LabVIEW helps you solve many types of problems in only a fraction of the time and hassle it would take to write "conventional" code.
LabVIEW has found its way into such a broad spectrum of virtual instrumentation applications that it is hard to know where to begin. As its name implies, it began in the laboratory and still remains very popular in many kinds of laboratories--from major research and development laboratories around the world (such as Lawrence Livermore, Argonne, Batelle, Sandia, Jet Propulsion Laboratory, White Sands, and Oak Ridge in the United States and CERN in Europe), to R&D laboratories in many industries, and to teaching laboratories in universities all over the world, especially in the disciplines of electrical and mechanical engineering and physics.
The spread of LabVIEW beyond the laboratory has gone in many directionsup (aboard the space shuttle), down (aboard U.S. Navy submarines), and around the world (from oil wells in the North Sea to factories in New Zealand). And with the latest Internet capabilities, LabVIEW applications are being deployed not only physically in many places but virtually across cyberspace. More and more people are creating web-based control or monitoring of their LabVIEW applications to allow remote access and instant information about what's happening in their lab. Virtual instrumentation systems are known for their low cost, both in hardware and development time, and their great flexibility. Is it any wonder that they are so popular?
Perhaps the best way to describe the expansion (or perhaps explosion) of LabVIEW applications is to generalize it. There are niches in many industries where measurements of some kind are required--most often of temperature, whether it be in an oven, a refrigerator, a greenhouse, a clean room, or a vat of soup. Beyond temperature, users measure pressure, force, displacement, strain, pH, and so on, ad infinitum. Personal computers are used virtually everywhere. LabVIEW is the catalyst that links the PC with measuring things, not only because it makes it easy, but also because it brings along the ability to analyze what you have measured and display it and communicate it halfway around the world if you so choose.
After measuring and analyzing something, the next logical step often is to change (control) something based upon the results. For example, measure temperature and then turn on either a furnace or a chiller. Again, LabVIEW makes this easy to do; monitoring and control have become LabVIEW strengths. Sometimes it is direct monitoring and control, or it may be through communicating with a programmable logic controller (PLC) in what is commonly called supervisory control and data acquisition (SCADA).
You will find descriptions of LabVIEW applications interspersed throughout this book. They are written by users in a very brief style to give you the essence of the application and are chosen from industry segments in which LabVIEW tends to be very popular--automated electronics testing, semiconductor manufacturing, medical instrumentation, automotive testing, and industrial automation applications. Of the multitude of successful LabVIEW applications, these are particularly interesting current examples of virtual instrumentation at its finest!
A few of LabVIEW's many uses include:
LabVIEW for Everyone will help you get LabVIEW up and running quickly and easily and will start you down the road to becoming an expert programmer. The book offers additional examples and activities to demonstrate techniques, identifies other sources of information about LabVIEW, and features descriptions of cool LabVIEW applications. You are invited to open, inspect, use, and modify any of the programs on the accompanying CD-ROM. The CD-ROM includes the 30-day evaluation version of LabVIEW, which allows you to do just about everything the commercial version does.
This book expects you to have basic knowledge of your computer's operating system. If you don't have much computer experience, you may want to spend a little time with your operating system manual and familiarize yourself with your computer. For example, you should know how to access menus, open and save files, make backup disks, and use a mouse.
After reading this book and working through the exercises, you should be able to do the following, and much more, with the greatest of ease:
LabVIEW for Everyone helps you get started quickly with LabVIEW to develop your instrumentation and analysis applications. The book is divided into two main sections: Fundamentals and Advanced Topics.
The Fundamentals section contains nine chapters and teaches you the fundamentals of G programming in LabVIEW. The Advanced Topics section contains six chapters that further develop your skills and introduce helpful techniques and optimizing strategies. We suggest that you work through the beginning section to master the basics; then, if you're short on time, skip around to what you really want to learn in the advanced section.
In both sections, chapters have a special structure to facilitate learning.
Chapter 1 describes LabVIEW and introduces you to some of LabVIEW's features and uses.
In Chapter 2, you will get an overview of virtual instrumentation: how data acquisition, instrument control, and data analysis are performed with LabVIEW. You will also learn about LabVIEW's history and a couple of real-world applications.
In Chapter 3, you will get acquainted with the LabVIEW environment, including the essential parts of a virtual instrument (or VI), the Help window, menus, tools, palettes, and subVIs.
In Chapters 4 and 5, you will become familiar with the basics of G programming in LabVIEW--using controls and indicators (such as numerics, Booleans, and strings); wiring, creating, editing, debugging, and saving VIs; creating subVIs; and documenting your work. You will also begin to understand why G is considered a dataflow programming language.
Chapter 6 describes the basic G programming structures in LabVIEW: while loops, for loops, shift registers, case structures, sequence structures, and formula nodes. It also teaches you how to introduce timing into your programs.
In Chapter 7, you will learn how to use two important data structures--arrays and clusters--in your programs. You will also explore LabVIEW's built-in functions for manipulating arrays and clusters.
Chapter 8 details the variety of charts and graphs available in LabVIEW and teaches you how to use them for animated and informative data presentation. It also introduces the waveform data type.
Chapter 9 discusses string data types, string functions, and tables. It also talks a little about how to save data in and read data from a file, using LabVIEW's easy File I/O VIs.
Chapter 10 teaches you more about data acquisition, GPIB, and serial communication. You will learn a bit of theory and some hardware considerations, and you will find a valuable guide to many common acronyms used in instrumentation. Chapter 10 also discusses software setup for data acquisition hardware.
Chapter 11 discusses a few basics on how to use LabVIEW to acquire data using plug-in DAQ boards and presents a brief overview on communicating with other instruments using GPIB and serial protocols.
Chapter 12 covers some invaluable advanced features such as local and global variables, property nodes, ActiveX, DLLs, data type conversions, and much more.
Chapter 13 shows you how to configure VI behavior and appearance using VI Setup options and how to access front panel controls using the keyboard.
Chapter 14 covers connectivity in LabVIEW and deals with exciting topics such as publishing to the Web from LabVIEW, data sharing with DataSocket, and communication with protocols such as TCP/IP. It also introduces the VI Server.
Chapter 15 describes some good programming techniques that you can use to make your programs run faster, use less memory, port more easily to other platforms, and behave more efficiently overall.
In Chapter 16, you will learn good LabVIEW style and some new tips, such as how to add a customized look to your applications by importing pictures and using the Control Editor.
You will find a glossary, index, and an appendix at the end of the book.
Appendix A lists some resources that can help you with LabVIEW. It also describes add-on toolkits available to enhance LabVIEW's functionality.
LabVIEW for Everyone was the first book published aimed at the beginner LabVIEW user; since then, Prentice-Hall and other publishers have produced over a dozen LabVIEW books on specific topics. This new second edition of LabVIEW for Everyone has been completely updated for LabVIEW 6i. Among the changes from the first edition (which was published at the time of LabVIEW 4.0) are:
If you have the full version of LabVIEW and need instructions on how to install it, please see the release notes that came with your software. If you don't have LabVIEW yet, you can try out the evaluation version on the CD. The evaluation version expires 30 days after you install it.
In addition, you will need to access the Everyone directory from the CD-ROM in the back of this book. It contains the activities in this book and their solutions. You may want to copy the Everyone directory onto your PC so you can save your activity work there as well.
The basic engine of the evaluation software is the same as the full version of LabVIEW, so the system requirements are also about the same.
LabVIEW uses a directory to store temporary files. Some of the temporary files are large, so we recommend that you have several megabytes of disk space available for this temporary directory. The default for the temporary directory is /tmp
on Windows and Unix and inside the trash can on MacOS.
If you would like information on how to purchase LabVIEW, contact National Instruments.
National Instruments
6504 Bridge Point Parkway
Austin, Texas 78730
Telephone: (512) 794-0100
Fax: (512) 794-8411
E-mail:info@ni.com
Web:http://www.ni.com