You are previewing LabVIEW Graphical Programming Cookbook.
O'Reilly logo
LabVIEW Graphical Programming Cookbook

Book Description

For advanced LabVIEW users, this book is packed with practical recipes designed to immerse you in graphical programming, covering everything from animation creation to working with external applications.

In Detail

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.

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.

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.

What You Will Learn

  • Learn how to create animation
  • Acquire knowledge on multi-thread programming
  • Understand how to perform data acquisition
  • Empower yourself in the art of handling errors
  • Discover how to use common architectures
  • Study how to handle different file types
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. LabVIEW Graphical Programming Cookbook
      1. Table of Contents
      2. LabVIEW Graphical Programming Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      8. 1. Understanding the LabVIEW Environment
        1. Introduction
        2. Configuring essentials
          1. How to do it...
          2. How it works...
        3. Configuring quick drop
          1. How to do it...
          2. How it works...
          3. See also
        4. Using debug tools
          1. How to do it...
          2. How it works...
        5. Creating custom probe
          1. How to do it...
          2. How it works...
        6. Compiling EXE
          1. How to do it...
          2. How it works...
        7. Debugging EXE
          1. How to do it...
          2. How it works...
        8. Compiling a standalone application
          1. How to do it
          2. How it works...
      9. 2. Customizing the User Interface
        1. Introduction
        2. Customizing controls
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        3. Adding a menu for runtime
          1. How to do it…
          2. How it works…
        4. Creating a dialog
          1. How to do it…
          2. How it works…
          3. See also
        5. Sizing the dialog automatically
          1. How to do it…
          2. How it works…
          3. See also
        6. Using 2D picture control
          1. How to do it…
          2. How it works…
        7. Updating controls with an action engine
          1. How to do it…
          2. How it works…
          3. See also
        8. Creating a simple animation
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Creating subpanels
          1. How to do it…
          2. How it works…
          3. See also
      10. 3. Working with Common Architectures
        1. Introduction
        2. Working with a case structure
          1. How to do it...
          2. How it works...
        3. Working with an event structure
          1. How to do it...
          2. How it works...
          3. See also
        4. Working with loops
          1. How to do it...
          2. How it works...
          3. See also
        5. Using the state machine architecture
          1. How to do it...
          2. How it works...
          3. See also
        6. Using the master slave architecture
          1. How to do it...
          2. How it works...
        7. Using the producer consumer architecture
          1. How to do it...
          2. How it works...
        8. Creating a SubVI
          1. How to do it...
          2. How it works...
        9. Creating an action engine
          1. How to do it...
          2. How it works...
          3. See also
        10. Calling a VI by reference
          1. How to do it...
          2. How it works...
        11. Calling a VI dynamically
          1. How to do it...
          2. How it works...
          3. See also
        12. Creating a reentrant VI
          1. How to do it...
          2. How it works...
      11. 4. Managing Data
        1. Introduction
        2. Using error terminals
          1. How to do it…
          2. How it works…
        3. Using the flat sequence structure
          1. How to do it…
          2. How it works…
        4. Using the feedback node
          1. How to do it…
          2. How it works…
        5. Reusing memory
          1. How to do it…
          2. How it works…
        6. Manipulating an array
          1. How to do it…
          2. How it works…
        7. Using rendezvous
          1. How to do it…
          2. How it works…
        8. Using semaphore
          1. How to do it…
          2. How it works…
          3. See also
      12. 5. Passing Data
        1. Introduction
        2. Using a type-def cluster
          1. How to do it…
          2. How it works…
        3. Using an event structure to pass data
          1. How to do it…
          2. How it works…
        4. Using a queue to pass data
          1. How to do it…
          2. How it works…
        5. Using a notifier to pass data
          1. How to do it…
          2. How it works…
        6. Using a shared variable to pass data
          1. How to do it…
          2. How it works…
        7. Using Simple TCP/IP Messaging to pass data
          1. How to do it…
          2. How it works…
          3. See also
      13. 6. Error Handling
        1. Introduction
        2. Passing an error
          1. How to do it...
          2. How it works...
        3. Handling an error with an error file
          1. How to do it...
          2. How it works...
          3. See also
        4. Handling an error with a centralized VI
          1. How to do it...
          2. How it works...
        5. Creating an error queue
          1. How to do it...
          2. How it works...
      14. 7. Working with Files
        1. Introduction
        2. Working with INI files
          1. How to do it…
          2. How it works…
        3. Working with XML files
          1. How to do it…
          2. How it works…
          3. See also
        4. Working with ASCII files
          1. How to do it…
          2. How it works…
        5. Working with binary files
          1. How to do it…
          2. How it works…
        6. Working with TDMS files
          1. How to do it…
          2. How it works…
        7. Using Telnet and FTP with files
          1. How to do it…
          2. How it works…
        8. Working with a database
          1. How to do it…
          2. How it works…
      15. 8. Understanding Data Acquisition
        1. Introduction
        2. Using MAX
          1. How to do it…
          2. How it works…
        3. Working with VISA
          1. How to do it…
          2. How it works…
        4. Using VISA servers
          1. How to do it…
          2. How it works…
        5. Controlling an oscilloscope
          1. How to do it…
          2. How it works…
        6. Using a simple DAQ device
          1. How to do it…
          2. How it works…
        7. Using a CompactDAQ
          1. How to do it…
          2. How it works…
      16. 9. Simplifying Code
        1. Introduction
        2. Using polymorphic VI
          1. How to do it...
          2. How it works...
        3. Simplifying logic selection
          1. How to do it...
          2. How it works...
        4. Using an array for computation
          1. How to do it...
          2. How it works...
        5. Formatting into string
          1. How to do it...
          2. How it works...
        6. Speedy array search
          1. How to do it...
          2. How it works...
        7. Using relative paths in EXE
          1. How to do it...
          2. How it works...
      17. 10. Working with External Code and Applications
        1. Introduction
        2. Compiling a DLL
          1. How to do it...
          2. How it works...
        3. Using a .NET DLL
          1. How to do it...
          2. How it works...
        4. Debugging a .NET DLL
          1. How to do it...
          2. How it works...
        5. Using a C-based DLL
          1. How to do it...
          2. How it works...
        6. Using ActiveX
          1. How to do it...
          2. How it works...
        7. Building a web service
          1. How to do it...
          2. How it works...
        8. Using SMTP to send e-mail
          1. How to do it...
          2. How it works...
      18. Index