Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Data Acquisition Using LabVIEW

You're reading from   Data Acquisition Using LabVIEW Transform physical phenomena into computer-acceptable data using a truly object-oriented language

Arrow left icon
Product type Paperback
Published in Dec 2016
Publisher Packt
ISBN-13 9781782172161
Length 150 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Behzad Ehsani Behzad Ehsani
Author Profile Icon Behzad Ehsani
Behzad Ehsani
Yik Yang Yik Yang
Author Profile Icon Yik Yang
Yik Yang
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. LabVIEW Basics FREE CHAPTER 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

LabVIEW menu bar icons

A few words about menu bar icons are necessary. Note that actual menus and submenus do the main work and one must be familiarized with the functionality of many menus and their subsequent submenus and panels. The following are the absolutely necessary items a user must be familiar with to begin work in LabVIEW.

LabVIEW menu bar icons

  • The Run button will commence execution of a VI given that a minimum of code is provided at least in the Block Diagram window. A few points must be noted:
    • A program may have enough code and this button may be pressed but there may not be anything obvious or present in any of the open windows
    • A program or a VI may run perfectly fine and extremely fast, as fast as the speed of the computer that LabVIEW is running on (given all operating system delays, background programs and processes, and so on) without anything noticeable to the human eye. Care must be taken to spot insert alerts, delays, or indicators if needs be.

LabVIEW menu bar icons

  • When a program is successfully running (independent of the actual intended objective of the VI) these four Icons change shape from their idle state appearance. Note that there may be unintentional loops that will appear as "successful running program to LabVIEW" such as a while loop that does not have correct exit condition(s), typically called an endless loop. In such a case (where even milliseconds of delay is not implemented), LabVIEW would get hold of all processors on the computer and may lock the computer such that no buttons on LabVIEW or, for that matter, even keyboard and mouse clicks would be effective. In these cases, depending on the operating system in use, a user may have to temporarily shut down the computer to be able to escape from the locked-up situation. LabVIEW precompiles as objects are placed on the programming windows; this is an important fact that a user must keep in mind and although it is an obvious benefit, it may unintentionally work against the user if proper care is not taken while designing and implementing a project.

LabVIEW menu bar icons

  • The broken link error changes the shape of the Run button. The Run button will change shape to this form if:
    • Not enough inputs and/or outputs are correctly wired
    • There are connections errors
    • An unwired object is placed in any of the two main windows of a VI

LabVIEW menu bar icons

  • The Run continuously state is shown as follows.

LabVIEW menu bar icons

  • The Run continuously (active) button (two looping arrows) will execute a VI over and over even though the actual VI logic has not provisioned to run more than once. Used with caution, this button is a good way of running/testing a code segment (such as a subVI) which may be planned to be incorporated in a looped project.

LabVIEW menu bar icons

  • The Stop button.

LabVIEW menu bar icons

  • The Pause button.

LabVIEW menu bar icons

  • The highlight execution button may be the quickest and the most useful way of debugging or simply viewing the actual sequence of execution of each object and the value carried by a wire or output of a function. When evoked prior to clicking the Run button, LabVIEW slows down the execution of program such that a moving dot, and most likely several moving dots on different wires, on the currently executing wire is traceable by human eye and speed.

LabVIEW menu bar icons

  • Debug tools, start single stepping(s) and step out.

LabVIEW menu bar icons

  • Arrange tools. LabVIEW is graphical programming environment (although scripts may be used inside a few functions) and, as such, proper arranging of graphical representation of each object is essential to a readable and manageable source code. These buttons are very helpful in arranging and aligning groups of objects.

LabVIEW menu bar icons

  • There are many occasions that an object must move to the back or to the front of a layered segment; the Reorder button arranges buttons with respect to layers rather than the position of an object in a given layer. Mostly used in the decorative aspect of a Front Panel window.

LabVIEW menu bar icons

  • Any VI is created by manually placing an object onto its respective window and probably resizing it (such as a for loop or a while loop) and all objects need to be manually wired. Even on a simple VI, this  process may get overwhelmingly complicated and it is very hard to trace each wire from where it starts to where it ends. Clean Up can actually help to automatically rearrange a complete VI or a selected segment of the code. However, save the code before applying automatic Clean Up to your code since there exist situations where a Clean Up may make the Block Diagram prettier but may also cause the code to be harder to read and/or add or remove any of its objects. With little experience and continuous and periodic applications of Clean Up, this could become a very useful tool.

LabVIEW menu bar icons

  • Activating the Help button and hovering over any object will automatically open a window with very helpful information about that object, related documents, and even links to examples and usage information.

LabVIEW menu bar icons

  • The Connector pane icon object is used to connect wires to input of this subVI and/or have access to its output(s) if either case does exist.

LabVIEW menu bar icons

  • Icon editing tool, by default, any new VI has this icon and only the subsequent numbers on the bottom right of the icon are enumerated. By clicking on this tool, an Icon editor subprogram is launched where users can create and edit their own icons or import previously created icons.

LabVIEW menu bar icons

  • When a VI is created, the actual file is represented by this icon, which can also be modified by an editor.
You have been reading a chapter from
Data Acquisition Using LabVIEW
Published in: Dec 2016
Publisher: Packt
ISBN-13: 9781782172161
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 $19.99/month. Cancel anytime
Banner background image