Book Image

LabVIEW Graphical Programming Cookbook

By : Yik Yang
Book Image

LabVIEW Graphical Programming Cookbook

By: Yik Yang

Overview of this book

<p>LabVIEW is a graphical programming development environment for problem solving, accelerated productivity, and continual innovation. It integrates all the tools that engineers and scientists need to build a wide range of applications in a short amount of time. It offers unprecedented integration with existing legacy software, IP, and hardware, while capitalizing on the latest computing technologies.</p> <p>LabVIEW Graphical Programming Cookbook is a concise and fast paced guide to help you gain a comprehensive understanding of the different features and programming practices in LabVIEW. All the concepts in the book are described with the help of examples. This book also shows you how to pass data using STM, in addition to helping you understand different ways to handle errors.</p> <p>You will start by learning about LabVIEW settings, and then, the different features of LabVIEW using the front panel and block diagram. For the front panel, a variety of tips on creating a user interface are provided. For the block diagram, different architectures such as master slave architecture and state machine architecture are demonstrated, along with how data is passed among different sections of the code. Finally, the book shows you different ways to work with external code in DLL format and external applications.</p>
Table of Contents (17 chapters)
LabVIEW Graphical Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

LabVIEW is a graphical programming language by National Instrument. Mainly, it is used in test and automation fields for instrument control, data acquisition, and so on. In this book, we will cover different areas in LabVIEW programming with practical examples that follow sound coding standard and design rules.

What this book covers

Chapter 1, Understanding the LabVIEW Environment, covers common settings and functions in the LabVIEW environment.

Chapter 2, Customizing the User Interface, covers different functions used in creating an UI.

Chapter 3, Working with Common Architectures, covers common architectures in LabVIEW.

Chapter 4, Managing Data, covers how to use memory efficiently and control the data flow.

Chapter 5, Passing Data, covers different methods of passing data.

Chapter 6, Error Handling, covers different methods of error handling.

Chapter 7, Working with Files, covers how to work with different file types.

Chapter 8, Understanding Data Acquisition, covers acquiring data with different types of instruments.

Chapter 9, Simplifying Code, covers ways to simplify code.

Chapter 10, Working with External Code and Applications, covers how to use external code and application within LabVIEW.

What you need for this book

The examples in this chapter are written in the LabVIEW 2012 development environment, but they also work in LabVIEW 2013. The development environment comes in different packages. The highest package is the developer suite. Some examples in this book require toolkits included in the developer suite. It is more economical to buy the developer suite than to buy the toolkits individually. To purchase the developer suite, visit www.ni.com.

Who this book is for

The book is intended for readers who know the basic features of LabVIEW to advanced LabVIEW programmers.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " Create the main VI that calls Coordinates.vi."

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: " Right-click on the picture ring and select Add Item."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.