0%

Book Description

Transform physical phenomena into computer-acceptable data using a truly object-oriented language

About This Book

  • Create your own data acquisition system independently using LabVIEW and build interactive dashboards
  • Collect data using National Instrument's and third-party, open source, affordable hardware
  • Step-by-step real-world examples using various tools that illustrate the fundamentals of data acquisition

Who This Book Is For

If you are an engineer, scientist, experienced hobbyist, or student, you will highly benefit from the content and examples illustrated in this book. A working knowledge of precision testing, measurement instruments, and electronics, as well as a background in computer fundamentals and programming is expected.

What You Will Learn

  • Create a virtual instrument which highlights common functionality of LabVIEW
  • Get familiarized with common buses such as Serial, GPIB, and SCPI commands
  • Staircase signal acquisition using NI-DAQmx
  • Discover how to measure light intensity and distance
  • Master LabVIEW debugging techniques
  • Build a data acquisition application complete with an installer and required drivers
  • Utilize open source microcontroller Arduino and a 32-bit Arduino compatible Uno32 using LabVIEW programming environment

In Detail

NI LabVIEW's intuitive graphical interface eliminates the steep learning curve associated with text-based languages such as C or C++. LabVIEW is a proven and powerful integrated development environment to interact with measurement and control hardware, analyze data, publish results, and distribute systems.

This hands-on tutorial guide helps you harness the power of LabVIEW for data acquisition. This book begins with a quick introduction to LabVIEW, running through the fundamentals of communication and data collection. Then get to grips with the auto-code generation feature of LabVIEW using its GUI interface. You will learn how to use NI-DAQmax Data acquisition VIs, showing how LabVIEW can be used to appropriate a true physical phenomenon (such as temperature, light, and so on) and convert it to an appropriate data type that can be manipulated and analyzed with a computer. You will also learn how to create Distribution Kit for LabVIEW, acquainting yourself with various debugging techniques offered by LabVIEW to help you in situations where bugs are not letting you run your programs as intended.

By the end of the book, you will have a clear idea how to build your own data acquisition system independently and much more.

Style and approach

A hands-on practical guide that starts by laying down the software and hardware foundations necessary for subsequent data acquisition-intensive chapters. The book is packed full of specific examples with software screenshots and schematic diagrams to guide you through the creation of each virtual instrument.

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 code file.

Table of Contents

  1. Data Acquisition Using LabVIEW
    1. Data Acquisition Using LabVIEW
    2. Credits
    3. About the Author
    4. Acknowledgments
    5. About the Reviewer
    6. www.PacktPub.com
      1. Why subscribe?
    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. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. LabVIEW Basics
      1. Introduction to LabVIEW
      2. Installing LabVIEW
      3. A basic LabVIEW VI
      4. LabVIEW menu bar icons
      5. Example 1 - counter with a gauge
      6. Creating a project is a must
      7. Chapter highlights
      8. Summary
    9. 2. Most Common Communication Buses
      1. Wired connections and drivers
      2. Serial communication
      3. GPIB
      4. SCPI commands sets
      5. Arduino for LabVIEW driver installation
      6. Arduino photo sensor board
      7. Summary
    10. 3. Using the DAQ Assistant to Automatically Generate LabVIEW Code
      1. Capturing a triangular signal
      2. Devices required
      3. Capturing triangular wave VI
      4. Summary
    11. 4. DAQ Programming Using LabVIEW
      1. Definition of data acquisition
      2. Capture signal generator waveforms
      3. Staircase signal (USB DAQ version)
      4. Staircase signal (Oscilloscope version)
      5. Oscilloscope functions in LabVIEW function pallets
      6. Stepping through voltages
      7. Create serial Read-Write sub VI
      8. Power supply voltage steps
      9. Verify Data Acquired
      10. Power Supply Voltage Steps: Revision 1
      11. Summary
    12. 5. Debugging Techniques
      1. Error conditions
      2. Debugging - broken arrow
      3. Debugging - highlight execution
      4. Debugging - Set Breakpoint
      5. Debugging - Probe, Custom Probe
      6. Summary
    13. 6. Real-World DAQ Programming Techniques
      1. Using event manager
      2. Installing LINX
      3. Acquiring distance measurements using Parallax USR with an Arduino
        1. LabVIEW Program - serial communication through USB
      4. Duty cycle and PWM
        1. Connections
      5. Simultaneous data acquisition - NI DAQ and the Arduino Uno
        1. Connections
        2. LabVIEW block diagram
      6. Summary
    14. 7. Real-Time Issues
      1. Resolving upgradation issues
        1. Compatibility
        2. Deployment strategy
        3. Backward compatibility
        4. Compatibility with another existing software application on a system
        5. In real-time testing
      2. NI's native instruments
        1. Hardware wise
        2. National Instrument's myRIO-1900
    15. 8. DAQ at a Distance - Network and Distributed Systems
      1. Verifying the computer's connection
      2. A distributed test application using GPIB-ENET
        1. Handling errors
      3. Summary
    16. 9. Alternate Software for DAQ
      1. Industry direction
        1. Missing from the LabVIEW arsenal
        2. LabVIEW does not support secure transfer of data or files
        3. Serial terminal emulator software
        4. Tera Term
        5. Measurement computing DASYLab
    17. 10. Non-National Instrument Devices DAQ
      1. Safety
      2. There are two major parts to any power supply
      3. A more correct name
      4. Why such an introduction?
      5. The simplest test
      6. MB-102 MB102 Solderless Breadboard, power supply, and jumper cable
      7. Summary
    18. 11. LabVIEW and Simple Microcontrollers
      1. DAQ devices versus microcontrollers
      2. Using the Arduino as a DAQ with LabVIEW
      3. Installing the Arduino firmware
3.22.100.180