Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Data Acquisition Using LabVIEW

You're reading from  Data Acquisition Using LabVIEW

Product type Book
Published in Dec 2016
Publisher Packt
ISBN-13 9781782172161
Pages 150 pages
Edition 1st Edition
Languages
Author (1):
Yik Yang Yik Yang
Profile icon Yik Yang

Table of Contents (18) Chapters

Data Acquisition Using LabVIEW
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
1. LabVIEW Basics 2. Most Common Communication Buses 3. Using the DAQ Assistant to Automatically Generate LabVIEW Code 4. DAQ Programming Using LabVIEW 5. Debugging Techniques 6. Real-World DAQ Programming Techniques 7. Real-Time Issues 8. DAQ at a Distance - Network and Distributed Systems 9. Alternate Software for DAQ 10. Non-National Instrument Devices DAQ 11. LabVIEW and Simple Microcontrollers

Debugging - broken arrow


As mentioned previously, when a VI is "seriously!" broken, it does not run and a broken arrow is displayed. Since the error is immediately recognized by LabVIEW, usually in such particular cases, the fix is probably simple (unless a major design error is recognized). A more difficult situation maybe where there are no obvious errors, but the VI does not do what we intend it to do. We will now take a closer look at a version of a VI we used in Chapter 4, DAQ Programming Using LabVIEW:

When we run the preceding VI several times, we will notice a couple of issues with the VI. Note that a displayed array may be extended horizontally or vertically:

  • The array gets longer and longer and new values are appended to the end of the results from the previous run

  • There are blank array elements between the array entries (this was an error with the logic of the VI and we fixed it by adding a check for blank array elements)

To fix the issue, we know that we need to initialize the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}